[jboss-user] [jBPM Users] - Re: Signaling executions for processes that containt tasks d

LMarinkov do-not-reply at jboss.com
Fri Sep 11 09:45:18 EDT 2009


Here is the error for the AvgDurationTest class. Sorry the log that i posted was for the unit test that i wrote. But the error in both tests is the same!

-------------------------------------------------------------------------------
  | Test set: org.jbpm.test.history.AvgDurationTest
  | -------------------------------------------------------------------------------
  | Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.764 sec <<< FAILURE!
  | testAvgDuration(org.jbpm.test.history.AvgDurationTest)  Time elapsed: 2.717 sec  <<< ERROR!
  | org.hibernate.NonUniqueResultException: query did not return a unique result: 2
  | 	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:844)
  | 	at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)
  | 	at org.jbpm.pvm.internal.hibernate.DbSessionImpl.findTaskByExecution(DbSessionImpl.java:383)
  | 	at org.jbpm.jpdl.internal.activity.TaskActivity.signal(TaskActivity.java:116)
  | 	at org.jbpm.jpdl.internal.activity.TaskActivity.signal(TaskActivity.java:102)
  | 	at org.jbpm.pvm.internal.model.op.Signal.perform(Signal.java:68)
  | 	at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:637)
  | 	at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:597)
  | 	at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:398)
  | 	at org.jbpm.pvm.internal.cmd.SignalCmd.execute(SignalCmd.java:61)
  | 	at org.jbpm.pvm.internal.cmd.SignalCmd.execute(SignalCmd.java:35)
  | 	at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
  | 	at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
  | 	at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
  | 	at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
  | 	at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.signalExecutionById(ExecutionServiceImpl.java:84)
  | 	at org.jbpm.test.history.AvgDurationTest.executeProcess(AvgDurationTest.java:79)
  | 	at org.jbpm.test.history.AvgDurationTest.testAvgDuration(AvgDurationTest.java:54)
  | 	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:164)
  | 	at org.jbpm.test.BaseJbpmTestCase.runTest(BaseJbpmTestCase.java:80)
  | 	at junit.framework.TestCase.runBare(TestCase.java:130)
  | 	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:120)
  | 	at junit.framework.TestSuite.runTest(TestSuite.java:230)
  | 	at junit.framework.TestSuite.run(TestSuite.java:225)
  | 	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.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
  | 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
  | 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
  | 	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  | 	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:345)
  | 	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254770#4254770

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254770



More information about the jboss-user mailing list