cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] [Created] (CAY-1749) NPE on simple nested context commit
Date Sun, 21 Oct 2012 09:30:11 GMT
Andrus Adamchik created CAY-1749:

             Summary: NPE on simple nested context commit
                 Key: CAY-1749
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library
    Affects Versions: 3.1B2
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik

An odd problem happens when building on Jenkins. E.g. this build (Java 7, HSQLDB) :,jdk=JDK%201.7%20%28latest%29,label=Ubuntu/781/

results in the following exception:
Test set: org.apache.cayenne.access.NestedDataContextWriteTest
Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.151 sec <<< FAILURE!
testAddRemove(org.apache.cayenne.access.NestedDataContextWriteTest)  Time elapsed: 0.012 sec
 <<< ERROR!
	at org.apache.cayenne.access.ObjectStore.postprocessAfterCommit(
	at org.apache.cayenne.access.DataContext.flushToParent(
	at org.apache.cayenne.access.DataContext.commitChanges(
	at org.apache.cayenne.access.NestedDataContextWriteTest.testAddRemove(

The code is as vanilla and single threaded as it gets:

        DataContext context = createDataContext();
        ObjectContext child = runtime.getContext(context);

        Artist a = child.newObject(Artist.class);
        child.commitChanges(); // this is line 632 that causes exception

It appears that ObjectStore.objectMap somehow gets corrupted... Sure enough it is only reproducible
on Jenkins, and never - locally.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message