Re: Regression failures

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Mar 30 2003 - 15:21:17 EST

  • Next message: Andrus Adamchik: "Re: stored procedure unittests failing on oracle"

    > Looking at PrimarykeyHelper:311 I think indexedDbEntities might be out
    > of
    > sync, or something like that.

    You are absolutely right. With the PrimaryKeyHelper cached in
    DataDomain, it wasn't refreshed when the new entities were added. I
    fixed the regression tests, but this is a bigger problem of maintaining
    consistent data structures. Map events will help us fix that, for now
    we should probably call PrimaryKeyHelper.reset() explicitly every time
    new map is added.

    Andrus

    On Sunday, March 23, 2003, at 10:43 AM, Holger Hoffstätte wrote:

    >
    > I wanted to try the regression app and got it running via ant.
    > Unfortunately some commits regularly fail (the same error over and over
    > again, both against Oracle 8i and 9i):
    >
    > [java] Schema 2 generating.
    > [java] schema recording in C:\TEMP\schema-1048432461030
    > [java] Commit 1 starting.
    > [java] free memory before gc, MB: 54
    > [java] free memory after gc, MB: 58
    > [java] Commit 1 failed.
    > [java] java.lang.ClassCastException: There were nulls in the arguments
    > for
    > this method: compare(null, null)
    > [java] at
    > org.apache.commons.collections.comparators.ComparableComparator.compare
    > (Unknown
    > Source)
    > [java] at
    > org.objectstyle.cayenne.access.util.PrimaryKeyHelper$DbEntityComparator
    > .compare(PrimaryKeyHelper.java:311)
    > [java] at
    > org.objectstyle.cayenne.access.util.PrimaryKeyHelper$ObjEntityComparato
    > r.compare(PrimaryKeyHelper.java:322)
    > [java] at java.util.Arrays.mergeSort(Arrays.java:1237)
    > [java] at java.util.Arrays.mergeSort(Arrays.java:1244)
    > [java] at java.util.Arrays.mergeSort(Arrays.java:1244)
    > [java] at java.util.Arrays.sort(Arrays.java:1185)
    > [java] at java.util.Collections.sort(Collections.java:151)
    > [java] at
    > org.objectstyle.cayenne.access.ContextCommit.createPrimaryKeys(ContextC
    > ommit.java:510)
    > [java] at
    > org.objectstyle.cayenne.access.ContextCommit.commit(ContextCommit.java:
    > 139)
    > [java] at
    > org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.ja
    > va:708)
    > [java] at
    > org.objectstyle.cayenne.regression.Main.execute(Main.java:202)
    > [java] at
    > org.objectstyle.cayenne.regression.AntMain.main(AntMain.java:91)
    >
    > Looking at PrimarykeyHelper:311 I think indexedDbEntities might be out
    > of
    > sync, or something like that. Does anybody know what this is about?
    >
    > Holger
    >



    This archive was generated by hypermail 2.0.0 : Sun Mar 30 2003 - 15:25:44 EST