9 Replies Latest reply on Oct 28, 2008 9:43 AM by Tom Baeyens

    build failing ?

    Tom Baeyens Master

      i did a fresh checkout and ran mvn clean test with this result. does anyone else experience this problem too ?

      Results :
      
      Failed tests:
       testSubProcessLogs(org.jbpm.graph.node.ProcessStateDbTest)
       testFindTaskInstancesByActorId(org.jbpm.db.TaskMgmtSessionDbTest)
      
      Tests in error:
       testRecursiveProcessDefinition(org.jbpm.graph.node.ProcessStateDbTest)
       testDynamicProcessBinding(org.jbpm.graph.node.ProcessStateDbTest)
       testUnboundSubProcess(org.jbpm.graph.node.ProcessStateDbTest)
       testMessageLogMessage(org.jbpm.logging.log.ProcessLogDbTest)
       testProcessLogDate(org.jbpm.logging.log.ProcessLogDbTest)
       testProcessLogToken(org.jbpm.logging.log.ProcessLogDbTest)
       testParentChildRelation(org.jbpm.logging.log.ProcessLogDbTest)
       testSimpleAvailableTransitions(org.jbpm.jpdl.exe.AvailableTransitionsDbTest)
       testSuperStateAvailableTransitions(org.jbpm.jpdl.exe.AvailableTransitionsDbTest)
       testTaskMgmtInstanceTaskInstances(org.jbpm.taskmgmt.exe.TaskMgmtInstanceDbTest)
       testTaskMgmtInstanceSwimlaneInstances(org.jbpm.taskmgmt.exe.TaskMgmtInstanceDbTest)
       testDeleteProcessInstance(org.jbpm.db.DeleteProcessInstanceDbTest)
       testDeleteProcessInstanceWithTask(org.jbpm.db.DeleteProcessInstanceDbTest)
       testDeleteProcessInstanceWithSubProcessInstance(org.jbpm.db.DeleteProcessInstanceDbTest)
       testDeleteProcessInstanceWithConcurrentPathsOfExecution(org.jbpm.db.DeleteProcessInstanceDbTest)
       testDefaultConfiguration(org.jbpm.DefaultConfigurationTest)
       testSituation1(org.jbpm.jpdl.patterns.Wfp13MiWithoutSynchronizationTest)
       testSituation2(org.jbpm.jpdl.patterns.Wfp13MiWithoutSynchronizationTest)
       testSituation3(org.jbpm.jpdl.patterns.Wfp13MiWithoutSynchronizationTest)
       testSituation4(org.jbpm.jpdl.patterns.Wfp13MiWithoutSynchronizationTest)
       testFindTaskInstancesByActorIds(org.jbpm.db.TaskMgmtSessionDbTest)
       testLoadTaskInstance(org.jbpm.db.TaskMgmtSessionDbTest)
       testTaskMgmtFinderMethods(org.jbpm.db.TaskMgmtSessionDbTest)
       testComments(org.jbpm.graph.exe.CommentDbTest)
       testCommentsOnDifferentTokens(org.jbpm.graph.exe.CommentDbTest)
       testTaskInstanceComment(org.jbpm.graph.exe.CommentDbTest)
       testCommentToTokenAndTaskInstance(org.jbpm.graph.exe.CommentDbTest)
       testTaskCommentAndLoadProcessInstance(org.jbpm.graph.exe.CommentDbTest)
       testParallelSplit(org.jbpm.jpdl.patterns.Wfp02ParallelSplitTest)
       testBudgetHignerThenThousand(org.jbpm.jpdl.exe.DecisionHandlerTest)
       testBudgetBetweenHundredAndThousand(org.jbpm.jpdl.exe.DecisionHandlerTest)
       testSmallBudget(org.jbpm.jpdl.exe.DecisionHandlerTest)
       testActionLog(org.jbpm.graph.log.ActionLogDbTest)
       testActionExceptionLog(org.jbpm.graph.log.ActionLogDbTest)
       testTakeSuperStateTransition(org.jbpm.graph.exe.SuperStateTest)
       testTransitionToSuperState(org.jbpm.graph.exe.SuperStateTest)
       testTaskAssignment(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testMultiActorTaskAssignment(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testAssignmentHandlerContext(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testAssignmentHandlerWithNullActorId(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testStartTaskSwimlaneAssignmentTest(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testActorId(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActors(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testActorIdsAndPooledActors(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testTaskAssignmentEvent(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testActorIdPropertyExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testActorIdMethodExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActorsStringArrayPropertyExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActorsCollectionPropertyExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActorsStringPropertyExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActorStringArrayMethodExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActorCollectionMethodExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testPooledActorCommaSeparatedStringMethodExpression(org.jbpm.taskmgmt.exe.TaskAssignmentTest)
       testSimpleMergeScenario1(org.jbpm.jpdl.patterns.Wfp05SimpleMergeTest)
       testSimpleMergeScenario2(org.jbpm.jpdl.patterns.Wfp05SimpleMergeTest)
       testImplicitMergeScenario1(org.jbpm.jpdl.patterns.Wfp05SimpleMergeTest)
       testImplicitMergeScenario2(org.jbpm.jpdl.patterns.Wfp05SimpleMergeTest)
       testStartDate(org.jbpm.jbpm1106.JBPM1106Test)
       testStartTime(org.jbpm.jbpm1106.JBPM1106Test)
       testProcessDeleteWithTaskNotification(org.jbpm.graph.node.TaskNotificationDbTest)
       testSynchronizingMergeScenario1(org.jbpm.jpdl.patterns.Wfp07SynchronizingMergeTest)
       testSynchronizingMergeScenario2(org.jbpm.jpdl.patterns.Wfp07SynchronizingMergeTest)
       testSynchronizingMergeScenario3(org.jbpm.jpdl.patterns.Wfp07SynchronizingMergeTest)
       testSynchronizingMergeScenario4(org.jbpm.jpdl.patterns.Wfp07SynchronizingMergeTest)
       testEndEvent(org.jbpm.graph.node.EndStateTest)
       testTokenName(org.jbpm.graph.exe.TokenDbTest)
       testTokenStartAndEndDate(org.jbpm.graph.exe.TokenDbTest)
       testTokenNode(org.jbpm.graph.exe.TokenDbTest)
       testTokenProcessInstance(org.jbpm.graph.exe.TokenDbTest)
       testTokenParent(org.jbpm.graph.exe.TokenDbTest)
       testTokenChildren(org.jbpm.graph.exe.TokenDbTest)
       testAvailableTransitions(org.jbpm.graph.exe.TokenDbTest)
       testSetTransientVariable(org.jbpm.context.exe.TransientVariableTest)
       testGetTransientVariable(org.jbpm.context.exe.TransientVariableTest)
       testGetUnpersistableTransientVariable(org.jbpm.context.exe.TransientVariableTest)
       testSuspend(org.jbpm.graph.exe.SuspendAndResumeDbTest)
       testResume(org.jbpm.graph.exe.SuspendAndResumeDbTest)
       testAprioriRuntimeKnowledgeScenario1(org.jbpm.jpdl.patterns.Wfp15MiWithAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario2(org.jbpm.jpdl.patterns.Wfp15MiWithAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario3(org.jbpm.jpdl.patterns.Wfp15MiWithAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario4(org.jbpm.jpdl.patterns.Wfp15MiWithAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario1(org.jbpm.jpdl.patterns.Wfp16MiWithoutAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario2(org.jbpm.jpdl.patterns.Wfp16MiWithoutAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario3(org.jbpm.jpdl.patterns.Wfp16MiWithoutAPrioriRuntimeKnowledgeTest)
       testAprioriRuntimeKnowledgeScenario4(org.jbpm.jpdl.patterns.Wfp16MiWithoutAPrioriRuntimeKnowledgeTest)
       testCompositeLogs(org.jbpm.logging.exe.CompositeLogTest)
       testVarUpdate(org.jbpm.taskmgmt.exe.TaskVariableAccessDbTest)
       testProcessInstanceEndLog(org.jbpm.graph.log.ProcessLogsTest)
       testProcessInstanceStartLog(org.jbpm.graph.log.ProcessLogsTest)
       testFindRoot(org.jbpm.graph.exe.TokenNameTest)
       testTaskDecriptionExpression(org.jbpm.jpdl.el.TaskExpressionTest)
       testTaskActorIdExpression(org.jbpm.jpdl.el.TaskExpressionTest)
       testPooledActorsExpression(org.jbpm.jpdl.el.TaskExpressionTest)
       testEndState(org.jbpm.graph.node.EndStateDbTest)
       testLocking(org.jbpm.optimisticlocking.LockingTest)
       testUncaughtException(org.jbpm.graph.exe.ExceptionHandlingTest)
       testUncaughtRuntimeException(org.jbpm.graph.exe.ExceptionHandlingTest)
       testUncaughtError(org.jbpm.graph.exe.ExceptionHandlingTest)
       testSimpleCatchAll(org.jbpm.graph.exe.ExceptionHandlingTest)
       testCatchOnlyTheSpecifiedException(org.jbpm.graph.exe.ExceptionHandlingTest)
       testDontCatchTheNonSpecifiedException(org.jbpm.graph.exe.ExceptionHandlingTest)
       testCatchWithTheSecondSpecifiedExceptionHandler(org.jbpm.graph.exe.ExceptionHandlingTest)
       testTwoActionsInOneExceptionHandler(org.jbpm.graph.exe.ExceptionHandlingTest)
       testProcessDefinitionExceptionHandling(org.jbpm.graph.exe.ExceptionHandlingTest)
       testSuperStateExceptionHandling(org.jbpm.graph.exe.ExceptionHandlingTest)
       testSetOnTaskInstanceGetOnProcess(org.jbpm.taskmgmt.exe.TaskVariablesTest)
       testSetOnProcessGetOnTaskInstance(org.jbpm.taskmgmt.exe.TaskVariablesTest)
       testSetLocally(org.jbpm.taskmgmt.exe.TaskVariablesTest)
       testCopyWithController(org.jbpm.taskmgmt.exe.TaskVariablesTest)
       testDeployProcess(org.jbpm.jbpm522.JBPM522Test)
       testDeployBadProcess(org.jbpm.jbpm522.JBPM522Test)
       testDeployProcesses(org.jbpm.jbpm522.JBPM522Test)
       testDeployProcessesIncludingBad(org.jbpm.jbpm522.JBPM522Test)
      
      Tests run: 988, Failures: 2, Errors: 113, Skipped: 0
      
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] There are test failures.
      
      Please refer to C:\test\trunk\modules\core\target\surefire-reports for the individual test results.
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1 minute 23 seconds
      [INFO] Finished at: Tue Oct 21 13:03:30 CEST 2008
      [INFO] Final Memory: 13M/33M
      [INFO] ------------------------------------------------------------------------


        • 1. Re: build failing ?
          Alejandro Guizar Master

          Nope. Perhaps you need to install the modules first.

          aguizar@popolvuh:~/jbpm3/trunk$ mvn -Pskiptests install


          I do get a couple failures, tough. Does anybody know about these?

          Results :
          
          Failed tests:
           testProcessClassLoaderAsContextClassLoader(org.jbpm.jpdl.par.ProcessArchiveDeploymentDbTest)
          
          Tests in error:
           testExecuteResourceUsingProcess(org.jbpm.jpdl.par.ProcessArchiveDeploymentDbTest)
          
          Tests run: 1005, Failures: 1, Errors: 1, Skipped: 0


          By the way, cheers on our 1000th test!

          • 2. Re: build failing ?
            Tom Baeyens Master

            this a fresh checkout worked for me.

            but what you're seeing is something related to java 6 and classloading, i think.

            probably related to this: https://jira.jboss.org/jira/browse/JBPM-1448

            • 3. Re: build failing ?
              Ronald van Kuijk Master

              The specific tests Alex talks about works here locally on Java 6 (openjdk, linux) with from both maven and as a plain unittest (for the latter to work from eclipse I have to have run the part of the testsuite from maven first... strange)

              The url it tries to use is:

              processresource://resourceprocess/classes/classes/org/jbpm/jpdl/par/classresource.txt

              2x classes, hmmm.... (added this comment to this jira issue as well)

              • 4. Re: build failing ?
                Alejandro Guizar Master

                I am using linux and openjdk 6 as well. These two tests fail when run with all others (mvn test) but not when run separately (mvn -Dtest=ProcessArchiveDeploymentDbTest test).

                • 5. Re: build failing ?
                  Ronald van Kuijk Master

                  I'l try that tomorrow, now it is time to go to sleep (02:33 am)

                  • 6. Re: build failing ?
                    Tom Baeyens Master

                    i got those process archive tests working now also on jdk 6.

                    the problem was that i checked if the ProcessClassLoader found a certain class by loading the class in a process archive, then removing the class from the file system (cause there it is in the test classpath) and then deploying the archive and then using the class.

                    the 2 tests were somehow interfering. i don't know the cause. but it turned out that the test classloader already loaded the action handler before the test began. so the even though the actionhandler was loaded with the process classloader, it was already found previously by the parent of the process classloader before.

                    ps. kukeltje, are you already back awake ? well... in case your were, i'm sure that after reading the previous explanation you have been put back to sleep for another couple of days :-)

                    • 7. Re: build failing ?
                      Ronald van Kuijk Master

                      :-P.... I could reproduce what Alex wrote but was trying to set up hudson locally at the same time... but gave it to little effort... (you know sports etc...)

                      And yes, sleep was indeed something I was deprived of the days before... Ahhh... time for my siesta

                      • 8. Re: build failing ?
                        Bernd Ruecker Master

                        Strange... So you would say it is fixed now?

                        And it was (just) a problem in the test, not the code, right?

                        • 9. Re: build failing ?
                          Tom Baeyens Master

                          yes. it was a problem of interference between two tests.

                          no problem in the code.