Re: svn commit: r471567 - in /incubator/cayenne/main/trunk: ./ core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/remote/hessian/service / tutorials/quick-start-rop/cayenne-rop-client-tutorial/ tutorials/quick-start-rop/cayenne-rop-server-tutorial/

From: Tore Halset (halse..vv.ntnu.no)
Date: Mon Nov 06 2006 - 10:23:59 EST

  • Next message: Tore Halset: "Re: svn commit: r471567 - in /incubator/cayenne/main/trunk: ./ core/cayenne-jdk1.4/src/main/java/org/apache/cayenne/remote/hessian/service / tutorials/quick-start-rop/cayenne-rop-client-tutorial/ tutorials/quick-start-rop/cayenne-rop-server-tutorial/"

    Hello.

    That exception is expected. In fact OptimisticLockingTst
    testFailRetrieveDeletedRow would fail if commitChanges did not throw
    that exception.

    There must be some other reason for your build to fail. I do a simple
    "mvn" in core/cayenne-jdk1.4 at the end of the output look like this:

    [INFO] Installing /Users/halset/projects/ext/cayenne/svn/trunk/core/
    cayenne-jdk1.4/target/cayenne-jdk1.4-3.0-incubating-SNAPSHOT-
    javadoc.jar to /Users/halset/.m2/repository/org/apache/cayenne/core/
    cayenne-jdk1.4/3.0-incubating-SNAPSHOT/cayenne-jdk1.4-3.0-incubating-
    SNAPSHOT-javadoc.jar
    [INFO]
    ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Total time: 58 seconds
    [INFO] Finished at: Mon Nov 06 16:11:58 CET 2006
    [INFO] Final Memory: 7M/15M
    [INFO]
    ------------------------------------------------------------------------

      - Tore.

    On Nov 6, 2006, at 15:47 , Aristedes Maniatis wrote:

    > Unfortunately I cannot current build cayenne in order to test it. I
    > get a range of errors such as this one:
    >
    > Nov 6, 2006 11:04:06 PM org.apache.cayenne.access.QueryLogger logQuery
    > INFO: UPDATE SIMPLE_LOCKING_TEST SET DESCRIPTION = ? WHERE
    > LOCKING_TEST_ID = ? AND NAME = ?
    > Nov 6, 2006 11:04:06 PM org.apache.cayenne.access.QueryLogger
    > logQueryParameters
    > INFO: [bind: 'second update', 1, 'LockTest1']
    > Nov 6, 2006 11:04:06 PM org.apache.cayenne.access.QueryLogger
    > logQueryError
    > INFO: *** error.
    > org.apache.cayenne.access.OptimisticLockException: [v.3.0-
    > incubating-SNAPSHOT ] Optimistic Lock Failure, SQL: [UPDATE
    > SIMPLE_LOCKING_TEST SET DESCRIPTION = ? WHERE LOCKING_TEST_ID = ?
    > AND NAME = ?], WHERE clause bindings: [NAME='LockTest1',
    > LOCKING_TEST_ID=1]
    > at
    > org.apache.cayenne.access.jdbc.BatchAction.runAsIndividualQueries
    > (BatchAction.java:199)
    > at org.apache.cayenne.access.jdbc.BatchAction.performAction
    > (BatchAction.java:81)
    > at org.apache.cayenne.access.DataNodeQueryAction.runQuery
    > (DataNodeQueryAction.java:57)
    > at org.apache.cayenne.access.DataNode.performQueries
    > (DataNode.java:236)
    > at
    > org.apache.cayenne.access.DataDomainFlushAction.runQueries
    > (DataDomainFlushAction.java:226)
    > at org.apache.cayenne.access.DataDomainFlushAction.flush
    > (DataDomainFlushAction.java:148)
    > at org.apache.cayenne.access.DataDomain.onSyncFlush
    > (DataDomain.java:774)
    > at org.apache.cayenne.access.DataDomain$2.transform
    > (DataDomain.java:745)
    > at org.apache.cayenne.access.DataDomain.runInTransaction
    > (DataDomain.java:800)
    > at org.apache.cayenne.access.DataDomain.onSync
    > (DataDomain.java:742)
    > at org.apache.cayenne.access.DataContext.flushToParent
    > (DataContext.java:1158)
    > at org.apache.cayenne.access.DataContext.commitChanges
    > (DataContext.java:1065)
    > at
    > org.apache.cayenne.access.OptimisticLockingTst.testFailSimpleLocking
    > (OptimisticLockingTst.java:276)
    > 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:585)
    > 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 sun.reflect.GeneratedMethodAccessor38.invoke(Unknown
    > Source)
    > at sun.reflect.DelegatingMethodAccessorImpl.invoke
    > (DelegatingMethodAccessorImpl.java:25)
    > at java.lang.reflect.Method.invoke(Method.java:585)
    > at org.apache.maven.surefire.junit.JUnitTestSet.execute
    > (JUnitTestSet.java:210)
    > at
    > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest
    > Set(AbstractDirectoryTestSuite.java:135)
    > at
    > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
    > (AbstractDirectoryTestSuite.java:122)
    > at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    > 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:585)
    > at
    > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess
    > (SurefireBooter.java:225)
    > at org.apache.maven.surefire.booter.SurefireBooter.main
    > (SurefireBooter.java:747)
    >
    >
    > Right now I haven't the time to investigate these errors, and
    > perhaps they are in my setup here, although I have previously
    > compiled Cayenne successfully. This was svn version 471701
    >
    >
    > Ari Maniatis
    >
    >
    >
    >
    > -------------------------->
    > ish
    > http://www.ish.com.au
    > Level 1, 30 Wilson Street Newtown 2042 Australia
    > phone +61 2 9550 5001 fax +61 2 9550 4001
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Nov 06 2006 - 10:25:04 EST