[JBoss jBPM] - subprocess tescase problem
by btl_ayd
Hi I want to execute this code but when I try it I have this error.
here is my poarent process xml code:
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2" name="ana">
|
|
|
| <process-state name="subprocess">
| <sub-process name="cocuk" version="1"/>
|
| </process-state>
| <end-state name="end"></end-state>
| </process-definition>
here is my child xml code:
anonymous wrote :
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2" name="cocuk">
| <start-state name="start">
|
|
| </start-state>
|
|
|
|
| <end-state name="end"></end-state>
| </process-definition>
ana my tescase code:
anonymous wrote :
| public class Subproces extends TestCase {
|
| public void testBasicScenario() {
| ProcessDefinition superProcessDefinition = ProcessDefinition.parseXmlResource("ana/processdefinition.xml");
| ProcessDefinition subProcessDefinition = ProcessDefinition.parseXmlResource("cocuk/processdefinition.xml");
| ProcessState processState = (ProcessState) superProcessDefinition.getNode("subprocess");
| processState.setSubProcessDefinition(subProcessDefinition);
|
| ProcessInstance superProcessInstance = new ProcessInstance(superProcessDefinition);
| superProcessInstance.signal();
| Token superToken = superProcessInstance.getRootToken();
| assertSame(processState, superToken.getNode());
| ProcessInstance subProcessInstance = superToken.getSubProcessInstance();
| assertSame(subProcessDefinition, subProcessInstance.getProcessDefinition()); Token subToken = subProcessInstance.getRootToken();
|
| assertSame(subProcessDefinition.getNode("state"), subToken.getNode());
|
| subToken.signal();
|
| assertSame(subProcessDefinition.getNode("end"), subToken.getNode());
| assertTrue(subToken.hasEnded());
| assertTrue(subProcessInstance.hasEnded());
|
| assertSame(superProcessDefinition.getNode("end"), superToken.getNode());
| assertTrue(superToken.hasEnded());
| assertTrue(superProcessInstance.hasEnded());
|
|
| }
|
| }
|
when I run it this error has been occured:
org.jbpm.JbpmException: token 'Token(/)' can't be signalled cause it is currently not positioned in a node
at org.jbpm.graph.exe.Token.signal(Token.java:134)
at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270)
at com.sub.sub.testBasicScenario(sub.java:24)
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: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 org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158122#4158122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158122
17 years, 10 months
[EJB 3.0] - Transaction not active exception
by green804
Hi,
I'm new to using EJB3 and RMI. I am using annotations. We recently launched our application in production, and the user login and registration is hanging. We did not see these issues in dev or testing. We have a tomcat app that talks to the JBoss app using RMI. We are using Jboss clustered in production.
I'm hoping someone can help answer the following:
1. What might be causing an error like this? What does the error mean?
2. Could the JBoss clustering be the source of this problem? I saw something about adding @cluster to the bean. Do I need this?
3. Is there a configuration in JBoss that we need to set to fix this problem?
I've included the stack trace below.
[ERROR] [2008-06-13 00:18:59,567] Servlet.service() for servlet ULRServlet threw exception
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1372)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
at org.jboss.remoting.Client.invoke(Client.java:1550)
at org.jboss.remoting.Client.invoke(Client.java:530)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
at $Proxy96.getUserData(Unknown Source)
I would appreciate any help on this. I'm trying to go on vacation, but I need this issue resolved. :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158118#4158118
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158118
17 years, 10 months