Re: Junit sometimes failes

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Thu Sep 10 2009 - 09:03:14 EDT

  • Next message: Michael Gentry: "Re: Junit sometimes failes"

    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
    



    This archive was generated by hypermail 2.0.0 : Thu Sep 10 2009 - 09:04:23 EDT