cancel
Showing results for 
Search instead for 
Did you mean: 

unable to run 5.0rc1 examples

parul_vipparthi
Champ on-the-rise
Champ on-the-rise
hello

I upgraded to activiti 5.0rc1 today. but i am not able to run examples. when i run org.activiti.examples.taskforms.TaskformTest.java, I get the exeption

org.activiti.engine.ActivitiException: Query return 8 results instead of max 1
   at org.activiti.engine.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:134)
   at org.activiti.engine.impl.AbstractQuery.execute(AbstractQuery.java:113)
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:22)
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:36)
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
   at org.activiti.engine.impl.AbstractQuery.singleResult(AbstractQuery.java:87)
   at org.activiti.examples.taskforms.TaskFormsTest.testTaskFormsWithVacationRequestProcess(TaskFormsTest.java:51)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at junit.framework.TestCase.runTest(TestCase.java:168)
   at org.activiti.engine.impl.test.PvmTestCase.runTest(PvmTestCase.java:75)
   at junit.framework.TestCase.runBare(TestCase.java:134)
   at org.activiti.engine.impl.test.ActivitiInternalTestCase.runBare(ActivitiInternalTestCase.java:132)
   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.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
   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)

All examples worked fine with 5.0 beta

Am I wrong somewhere??

Thank you
parul
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Are you using an existing database to rune these examples against? Seems like there are multiple ProcessDefinitions deployed, when this test only expects a single one.

parul_vipparthi
Champ on-the-rise
Champ on-the-rise
yes i ran demo.setup on existing database., got it now
Thank you for a quick reply.

parul