0 Replies Latest reply on Jun 4, 2011 8:25 AM by trickydicky

    Clean and install on jbpm-5.1.0.CR1-src.zip fails

    trickydicky

      Hello everybody

       

      I had problems doing a clean install on the jbpm-5.1.0 code. It fails on the JPA Persistence test. Today I downloaded the CR1 source and it failed on the same test. I am using Eclipse. A lot of tests go wrong, but in principle they all seem to have the same cause.

       

      Anybody knows about this and has a solution?

       

      The error message:

       

      -------------------------------------------------------------------------------

      Test set: org.jbpm.persistence.session.PersistentStatefulSessionTest

      -------------------------------------------------------------------------------

      Tests run: 12, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 9.516 sec <<< FAILURE!

      testUserTransactions(org.jbpm.persistence.session.PersistentStatefulSessionTest)  Time elapsed: 0.656 sec  <<< FAILURE!

      junit.framework.AssertionFailedError: expected:<4> but was:<2>

                at junit.framework.Assert.fail(Assert.java:47)

                at junit.framework.Assert.failNotEquals(Assert.java:283)

                at junit.framework.Assert.assertEquals(Assert.java:64)

                at junit.framework.Assert.assertEquals(Assert.java:195)

                at junit.framework.Assert.assertEquals(Assert.java:201)

                at org.jbpm.persistence.session.PersistentStatefulSessionTest.testUserTransactions(PersistentStatefulSessionTest.java:198)

                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:168)

                at junit.framework.TestCase.runBare(TestCase.java:134)

                at junit.framework.TestResult$1.protect(TestResult.java:110)

                at junit.framework.TestResult.runProtected(TestResult.java:128)

                at junit.framework.TestResult.run(TestResult.java:113)

                at junit.framework.TestCase.run(TestCase.java:124)

                at junit.framework.TestSuite.runTest(TestSuite.java:232)

                at junit.framework.TestSuite.run(TestSuite.java:227)

                at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)

                at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)

                at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)

                at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

       

       

      testPersistenceWorkItems(org.jbpm.persistence.session.PersistentStatefulSessionTest)  Time elapsed: 0.704 sec  <<< FAILURE!

      junit.framework.AssertionFailedError: expected:<1> but was:<0>

                at junit.framework.Assert.fail(Assert.java:47)

                at junit.framework.Assert.failNotEquals(Assert.java:283)

                at junit.framework.Assert.assertEquals(Assert.java:64)

                at junit.framework.Assert.assertEquals(Assert.java:195)

                at junit.framework.Assert.assertEquals(Assert.java:201)

                at org.jbpm.persistence.session.PersistentStatefulSessionTest.testPersistenceWorkItems(PersistentStatefulSessionTest.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:597)

                at junit.framework.TestCase.runTest(TestCase.java:168)

                at junit.framework.TestCase.runBare(TestCase.java:134)

                at junit.framework.TestResult$1.protect(TestResult.java:110)

                at junit.framework.TestResult.runProtected(TestResult.java:128)

                at junit.framework.TestResult.run(TestResult.java:113)

                at junit.framework.TestCase.run(TestCase.java:124)

                at junit.framework.TestSuite.runTest(TestSuite.java:232)

                at junit.framework.TestSuite.run(TestSuite.java:227)

                at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)

                at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)

                at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)

                at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)

       

       

      testPersistenceRuleSet(org.jbpm.persistence.session.PersistentStatefulSessionTest)  Time elapsed: 0.672 sec  <<< FAILURE!

      junit.framework.AssertionFailedError: Expected: <null> but was: WorkflowProcessInstance1 [processId=org.drools.test.TestProcess,state=1]

                at junit.framework.Assert.fail(Assert.java:47)

                at junit.framework.Assert.assertTrue(Assert.java:20)

                at junit.framework.Assert.assertNull(Assert.java:233)

                at junit.framework.Assert.assertNull(Assert.java:226)

                at org.jbpm.persistence.session.PersistentStatefulSessionTest.testPersistenceRuleSet(PersistentStatefulSessionTest.java:438)

                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:168)

                at junit.framework.TestCase.runBare(TestCase.java:134)

                at junit.framework.TestResult$1.protect(TestResult.java:110)

                at junit.framework.TestResult.runProtected(TestResult.java:128)

                at junit.framework.TestResult.run(TestResult.java:113)

                at junit.framework.TestCase.run(TestCase.java:124)

                at junit.framework.TestSuite.runTest(TestSuite.java:232)

                at junit.framework.TestSuite.run(TestSuite.java:227)

                at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)

                at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)

                at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)

                at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)

                at org.apache.maven.surefire.Surefire.run(Surefire.java:180)

                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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)

                at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)