FAQ
Hi,

I see sometimes a failure of one JUnit test (about one failing schedule to
five correct).
This is a test
DataContextSharedCacheTest.testSnapshotEvictedAndObjectsHollowedForInvalidate
junit.framework.AssertionFailedError: expected:<5> but was:(DataContextSharedCacheTest.java:616)

I do not know when it started, but I'm sure it happens at least in revision
794661 - month ago, or earlier. Did someone have same problems and could
have a look?

Search Discussions

  • Andrus Adamchik at Aug 26, 2009 at 3:08 pm

    On Aug 26, 2009, at 5:36 PM, Andrey Razumovsky wrote:

    DataContextSharedCacheTest
    .testSnapshotEvictedAndObjectsHollowedForInvalidate
    I remember this test (or maybe another test method in the same test
    class) failing maybe 1 time out of 50 for many years for me. So this
    may not be anything new... Without checking, I think there's a race
    condition there - execution and condition checking is done in separate
    threads.

    Andrus
  • Andrey Razumovsky at Sep 10, 2009 at 1:04 pm
    Hi,

    Now I always see failure of DataContextFlattenedAttributesTest (trace
    below). I wonder why Hudson cannot see it.. Anybody had such problems?

    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT ñåí 10 2009
    13:51:41] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound1(DataContextFlattenedAttributesTest.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at
    org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at
    org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
    org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1 ON
    (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 32 more



    --
    Andrey
  • Michael Gentry at Sep 10, 2009 at 1:23 pm
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg
  • Andrey Razumovsky at Sep 10, 2009 at 1:35 pm
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey
  • Michael Gentry at Sep 10, 2009 at 1:47 pm
    I wouldn't think so, but I don't have a Windows setup to try to build
    on. From the stack trace, it appears to be in DB code, not GUI code:

    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1 ON
    (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]

    Also, I just did a search through the
    DataContextFlattenedAttributesTest output in my console and didn't see
    "SELECT t0.ARTIST_ID, t0.PAINTING_ID" anywhere in it (or in any other
    test). So the SQL/test that mine ran appears different than yours.

    mrg


    On Thu, Sep 10, 2009 at 9:34 AM, Andrey
    Razumovskywrote:
    Strange.. could it be it's because I'm on Windows?
  • Kevin Menard at Sep 12, 2009 at 10:06 pm
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey
  • Kevin Menard at Sep 14, 2009 at 1:00 pm
    Other than the regular JPA test failures, I had no problems on Windows XP.

    --
    Kevin


    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey
  • Andrey Razumovsky at Sep 14, 2009 at 1:12 pm
    Weird.. Thanks. By the way I stopped getting JPA failures with Maven 2.2.0

    2009/9/14 Kevin Menard <nirvdrum@gmail.com>
    Other than the regular JPA test failures, I had no problems on Windows XP.

    --
    Kevin


    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey


    --
    Andrey
  • Kevin Menard at Sep 15, 2009 at 2:08 am
    Per your suggestion, I upgraded to maven 2.2.1. That did not fix the
    JPA tests. I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and
    that did fix the JPA issues. However, now I'm seeing these test
    failures:

    Tests in error:
    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    I'd have to dig into it more. The stack traces are below:

    -------------------------------------------------------------------------------
    Test set: org.apache.cayenne.access.DataContextFlattenedAttributesTest
    -------------------------------------------------------------------------------
    Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.188
    sec <<< FAILURE!
    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.015 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound1(DataContextFlattenedAttributesTest.java:117)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more

    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.032 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound2(DataContextFlattenedAttributesTest.java:154)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID) WHERE
    t2.ARTIST_NAME = ?]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more



    --
    Kevin



    On Mon, Sep 14, 2009 at 9:11 AM, Andrey Razumovsky
    wrote:
    Weird.. Thanks. By the way I stopped getting JPA failures with Maven 2.2.

    2009/9/14 Kevin Menard <nirvdrum@gmail.com>
    Other than the regular JPA test failures, I had no problems on Windows XP.

    --
    Kevin


    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey


    --
    Andrey
  • Andrey Razumovsky at Sep 15, 2009 at 4:56 pm
    Seems it worked all before revision 811957. I'll try to figure out too, it
    is quite big

    2009/9/15 Kevin Menard <nirvdrum@gmail.com>
    Per your suggestion, I upgraded to maven 2.2.1. That did not fix the
    JPA tests. I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and
    that did fix the JPA issues. However, now I'm seeing these test
    failures:

    Tests in error:

    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    I'd have to dig into it more. The stack traces are below:


    -------------------------------------------------------------------------------
    Test set: org.apache.cayenne.access.DataContextFlattenedAttributesTest

    -------------------------------------------------------------------------------
    Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.188
    sec <<< FAILURE!

    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.015 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at
    org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound1(DataContextFlattenedAttributesTest.java:117)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more


    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.032 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at
    org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound2(DataContextFlattenedAttributesTest.java:154)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID) WHERE
    t2.ARTIST_NAME = ?]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more



    --
    Kevin



    On Mon, Sep 14, 2009 at 9:11 AM, Andrey Razumovsky
    wrote:
    Weird.. Thanks. By the way I stopped getting JPA failures with Maven 2.2.0
    2009/9/14 Kevin Menard <nirvdrum@gmail.com>
    Other than the regular JPA test failures, I had no problems on Windows
    XP.
    --
    Kevin


    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey


    --
    Andrey


    --
    Andrey
  • Kevin Menard at Sep 15, 2009 at 5:14 pm
    "I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and that did fix
    the JPA issues. "

    I don't know what that means. But, I changed my JDK in JAVA_HOME and
    my JPA test failures went away. I don't know know how the version of
    maven fit into that due to the confounding variables.

    --
    Kevin


    On Mon, Sep 14, 2009 at 10:07 PM, Kevin Menard wrote:
    Per your suggestion, I upgraded to maven 2.2.1.  That did not fix the
    JPA tests.  I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and
    that did fix the JPA issues.  However, now I'm seeing these test
    failures:

    Tests in error:
    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    I'd have to dig into it more.  The stack traces are below:

    -------------------------------------------------------------------------------
    Test set: org.apache.cayenne.access.DataContextFlattenedAttributesTest
    -------------------------------------------------------------------------------
    Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.188
    sec <<< FAILURE!
    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.015 sec  <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound1(DataContextFlattenedAttributesTest.java:117)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more

    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.032 sec  <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound2(DataContextFlattenedAttributesTest.java:154)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID) WHERE
    t2.ARTIST_NAME = ?]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more



    --
    Kevin



    On Mon, Sep 14, 2009 at 9:11 AM, Andrey Razumovsky
    wrote:
    Weird.. Thanks. By the way I stopped getting JPA failures with Maven 2.2.0

    2009/9/14 Kevin Menard <nirvdrum@gmail.com>
    Other than the regular JPA test failures, I had no problems on Windows XP.

    --
    Kevin


    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey


    --
    Andrey
  • Andrey Razumovsky at Sep 15, 2009 at 6:51 pm
    I've already seen that Cayenne is sometimes disregarding to things like file
    separators (e.g. using '/' rather than File.separatorChar) etc.. Something
    like that could have caused the problem

    2009/9/15 Kevin Menard <nirvdrum@gmail.com>
    "I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and that did fix
    the JPA issues. "

    I don't know what that means. But, I changed my JDK in JAVA_HOME and
    my JPA test failures went away. I don't know know how the version of
    maven fit into that due to the confounding variables.

    --
    Kevin


    On Mon, Sep 14, 2009 at 10:07 PM, Kevin Menard wrote:
    Per your suggestion, I upgraded to maven 2.2.1. That did not fix the
    JPA tests. I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and
    that did fix the JPA issues. However, now I'm seeing these test
    failures:

    Tests in error:
    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    I'd have to dig into it more. The stack traces are below:

    -------------------------------------------------------------------------------
    Test set: org.apache.cayenne.access.DataContextFlattenedAttributesTest
    -------------------------------------------------------------------------------
    Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.188
    sec <<< FAILURE!
    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.015 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at
    org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound1(DataContextFlattenedAttributesTest.java:117)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more

    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.032 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at
    org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound2(DataContextFlattenedAttributesTest.java:154)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID) WHERE
    t2.ARTIST_NAME = ?]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more



    --
    Kevin



    On Mon, Sep 14, 2009 at 9:11 AM, Andrey Razumovsky
    wrote:
    Weird.. Thanks. By the way I stopped getting JPA failures with Maven
    2.2.0
    2009/9/14 Kevin Menard <nirvdrum@gmail.com>
    Other than the regular JPA test failures, I had no problems on Windows
    XP.
    --
    Kevin


    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey


    --
    Andrey


    --
    Andrey
  • Dave Dombrosky at Sep 24, 2009 at 7:07 am
    Is anyone still looking into this? I'm also getting the exceptions in
    DataContextFlattenedAttributesTest using rev 811957 or later.

    I would like to use the latest trunk code because of some bugs that
    were recently fixed, but this error is preventing me from building the
    source. It surprises me that this issue seems to be platform
    dependent. Definitely a strange issue...

    -Dave
    Seems it worked all before revision 811957. I'll try to figure out too, it
    is quite big

    2009/9/15 Kevin Menard <nirvdrum@gmail.com>
    Per your suggestion, I upgraded to maven 2.2.1. That did not fix the
    JPA tests. I think changed by JDK in JAVA_HOME from 1.5 to 1.6 and
    that did fix the JPA issues. However, now I'm seeing these test
    failures:

    Tests in error:

    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)

    I'd have to dig into it more. The stack traces are below:


    -------------------------------------------------------------------------------
    Test set: org.apache.cayenne.access.DataContextFlattenedAttributesTest

    -------------------------------------------------------------------------------
    Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.188
    sec <<< FAILURE!

    testSelectCompound1(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.015 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at
    org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound1(DataContextFlattenedAttributesTest.java:117)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID)]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more


    testSelectCompound2(org.apache.cayenne.access.DataContextFlattenedAttributesTest)
    Time elapsed: 0.032 sec <<< ERROR!
    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Sep 15
    2009 03:01:18] Query exception.
    at
    org.apache.cayenne.access.DataDomainQueryAction.nextQueryException(DataDomainQueryAction.java:545)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.nextQueryException(UnitTestDomainQueryAction.java:36)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:281)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQuery(DataDomainQueryAction.java:418)
    at
    org.apache.cayenne.access.DataDomainQueryAction.access$000(DataDomainQueryAction.java:65)
    at
    org.apache.cayenne.access.DataDomainQueryAction$2.transform(DataDomainQueryAction.java:391)
    at
    org.apache.cayenne.access.DataDomain.runInTransaction(DataDomain.java:850)
    at
    org.apache.cayenne.access.DataDomainQueryAction.runQueryInTransaction(DataDomainQueryAction.java:388)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.runQueryInTransaction(UnitTestDomainQueryAction.java:54)
    at
    org.apache.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:117)
    at
    org.apache.cayenne.access.UnitTestDomainQueryAction.execute(UnitTestDomainQueryAction.java:48)
    at
    org.apache.cayenne.access.UnitTestDomain.onQuery(UnitTestDomain.java:63)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:333)
    at
    org.apache.cayenne.util.ObjectContextQueryAction.execute(ObjectContextQueryAction.java:96)
    at
    org.apache.cayenne.access.DataContext.onQuery(DataContext.java:1278)
    at
    org.apache.cayenne.access.DataContext.performQuery(DataContext.java:1267)
    at
    org.apache.cayenne.access.DataContextFlattenedAttributesTest.testSelectCompound2(DataContextFlattenedAttributesTest.java:154)
    Caused by: java.sql.SQLException: Column not found: T3.PAINTING_ID in
    statement [SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID,
    t0.ESTIMATED_PRICE, t1.TEXT_REVIEW, t0.PAINTING_TITLE, t2.ARTIST_NAME,
    t3.GALLERY_NAME, t3.PAINTING_ID FROM PAINTING t0 JOIN PAINTING_INFO t1
    ON (t0.PAINTING_ID = t1.PAINTING_ID) JOIN ARTIST t2 ON (t0.ARTIST_ID =
    t2.ARTIST_ID) JOIN GALLERY t3 ON (t0.GALLERY_ID = t3.GALLERY_ID) WHERE
    t2.ARTIST_NAME = ?]
    at org.hsqldb.jdbc.Util.throwError(Unknown Source)
    at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
    at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:281)
    at
    org.apache.cayenne.conn.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:287)
    at
    org.apache.cayenne.access.TransactionConnectionDecorator.prepareStatement(TransactionConnectionDecorator.java:186)
    at
    org.apache.cayenne.access.trans.QueryAssembler.createStatement(QueryAssembler.java:196)
    at
    org.apache.cayenne.access.jdbc.SelectAction.performAction(SelectAction.java:70)
    at
    org.apache.cayenne.access.DataNodeQueryAction.runQuery(DataNodeQueryAction.java:87)
    at
    org.apache.cayenne.access.DataNode.performQueries(DataNode.java:274)
    ... 39 more



    --
    Kevin



    On Mon, Sep 14, 2009 at 9:11 AM, Andrey Razumovsky
    wrote:
    Weird.. Thanks. By the way I stopped getting JPA failures with Maven 2.2.0
    2009/9/14 Kevin Menard <nirvdrum@gmail.com>
    Other than the regular JPA test failures, I had no problems on Windows
    XP.
    --
    Kevin



    On Sat, Sep 12, 2009 at 6:05 PM, Kevin Menard <nirvdrum@gmail.com>
    wrote:
    I'll test on my Windows VM this weekend for you.

    --
    Kevin



    On Thu, Sep 10, 2009 at 9:34 AM, Andrey Razumovsky
    wrote:
    Strange.. could it be it's because I'm on Windows?

    2009/9/10 Michael Gentry <mgentry@masslight.net>
    I just did:

    svn update; mvn clean; mvn -P mac install

    It all built for me.

    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 3 minutes 27 seconds
    [INFO] Finished at: Thu Sep 10 09:20:25 EDT 2009


    mrg


    --
    Andrey


    --
    Andrey


    --
    Andrey
  • Aristedes Maniatis at Sep 24, 2009 at 7:15 am

    On 24/09/09 5:07 PM, Dave Dombrosky wrote:
    Is anyone still looking into this? I'm also getting the exceptions in
    DataContextFlattenedAttributesTest using rev 811957 or later.

    I would like to use the latest trunk code because of some bugs that
    were recently fixed, but this error is preventing me from building the
    source. It surprises me that this issue seems to be platform
    dependent. Definitely a strange issue...
    In the meantime, you can build with "-Dmaven.test.skip=true" at the end of your maven commands. Or else just grab the built jars from our hudson CI server (details on the download page).

    Ari


    --

    -------------------------->
    Aristedes Maniatis
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
  • Andrey Razumovsky at Sep 24, 2009 at 8:31 am
    Okay, I fixed it. The problem was that order of HashMap iteration is
    different in jdk5 and 6. In fact, it worked fine in jdk 5 only by
    coincidence

    2009/9/24 Aristedes Maniatis <ari@maniatis.org>
    On 24/09/09 5:07 PM, Dave Dombrosky wrote:

    Is anyone still looking into this? I'm also getting the exceptions in
    DataContextFlattenedAttributesTest using rev 811957 or later.

    I would like to use the latest trunk code because of some bugs that
    were recently fixed, but this error is preventing me from building the
    source. It surprises me that this issue seems to be platform
    dependent. Definitely a strange issue...
    In the meantime, you can build with "-Dmaven.test.skip=true" at the end of
    your maven commands. Or else just grab the built jars from our hudson CI
    server (details on the download page).

    Ari


    --

    -------------------------->
    Aristedes Maniatis
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A


    --
    Andrey
  • Dave Dombrosky at Sep 24, 2009 at 7:40 pm
    Thanks Andrey! That was a good catch.

    Ari: I actually tried skipping the tests earlier, but that led to a
    build error somewhere else. The tests are there for a reason though,
    so it's probably best that I waited for a fix. I couldn't just
    download the CI jars because I have a patch I apply to partially fix
    CAY-1111.

    -Dave

    On Thu, Sep 24, 2009 at 4:30 AM, Andrey Razumovsky
    wrote:
    Okay, I fixed it. The problem was that order of HashMap iteration is
    different in jdk5 and 6. In fact, it worked fine in jdk 5 only by
    coincidence

    2009/9/24 Aristedes Maniatis <ari@maniatis.org>
    On 24/09/09 5:07 PM, Dave Dombrosky wrote:

    Is anyone still looking into this?  I'm also getting the exceptions in
    DataContextFlattenedAttributesTest using rev 811957 or later.

    I would like to use the latest trunk code because of some bugs that
    were recently fixed, but this error is preventing me from building the
    source.  It surprises me that this issue seems to be platform
    dependent.  Definitely a strange issue...
    In the meantime, you can build with "-Dmaven.test.skip=true" at the end of
    your maven commands. Or else just grab the built jars from our hudson CI
    server (details on the download page).

    Ari


    --

    -------------------------->
    Aristedes Maniatis
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A


    --
    Andrey

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedAug 26, '09 at 2:37p
activeSep 24, '09 at 7:40p
posts17
users6
websitecayenne.apache.org

People

Translate

site design / logo © 2021 Grokbase