[JBoss jBPM] - Two Ears, JBPM Enerprise Question
by bradsdavis
I have two ears, and several clusters at my environment.
We have the following scenario:
JBPM is used in two EARs, and we are upgrading from 3.1 to 3.2.3.
The EARs can be deployed on the same cluster, the same node of a given cluster, or in two separate clusters.
We would like to take advantage of the new timer and asynchronous continuation services in JBPM.
Questions:
To take advantage of the Enterprise features in JBPM 3.2+, should I install the jbpm-enterprise-bundle.ear, or should I incorporate the pieces into my existing EARs?
The problems I see with incorporating the services into my EARs is that I would have several services running, and I may need to rename the services to allow the EAR deployments in the same server node.
The problem I see with breaking out my workflows and action handlers into Process Archives is that the Process Archive, to my understanding, can not include libraries. Therefore, there is no way to make reference to the local/remote interfaces in my action handlers.
Also, I am wondering if I use the out of the box jbpm-enterprise-bundle.ear, it will pick up jobs from the database for the EARs, whether they are deployed to a given node or not.
If I decide to move the timer and asynchronous services into my EARs, will they need to be separate into separate data sources, or does JBPM include the service name and filter on the service name internally?
Thanks for the insight.
Brad
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197410#4197410
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197410
15 years, 6 months
[JBoss jBPM] - nulpointer in slightly complicated process
by erciped
Hi
I have a process definition as shown in the link below.
http://www.freeimagehosting.net/uploads/4963a9f1b7.jpg
When I run it with all nodes set to "async" and all joins with lock="UPGRADE" and with multiple or single job executors I get a nullpointer exception. It fails wwhen exectuting the action in F.
Below is the stack trace. Has anyone experienced this before or is the graph too complicated. I can post the acual process definition xml if you want it and maybe a test case
org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:267) 2008-12-18 12:10:31,617 [JbpmJobExecutor:1] ERROR - action threw exception: null
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:145)
at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:126)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.instantiation.Delegation_$$_javassist_4.getInstance(Delegation_$$_javassist_4.java)
at org.jbpm.graph.def.Action.execute(Action.java:128)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Action_$$_javassist_61.execute(Action_$$_javassist_61.java)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:256)
at org.jbpm.graph.def.Node.execute(Node.java:334)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.graph.def.Node_$$_javassist_47.execute(Node_$$_javassist_47.java)
at org.jbpm.job.ExecuteNodeJob.execute(ExecuteNodeJob.java:27)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.job.Job_$$_javassist_52.execute(Job_$$_javassist_52.java)
at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:166)
at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:60)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197330#4197330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197330
15 years, 6 months
[JBoss jBPM] - Re: jBPM 3.3.0GA and Oracle causing StaleObjectStateExceptio
by jjrs
Hi Ronald,
I really appreciate all suggestions (it doesn't matter if they are a final solution or just a hack to make it work).
I have just tried to introduce a delay of 8 seconds in one of the actions of the parallel nodes, and I still get the SOE.
I believe the issue is related with the version column of the father node (token table). The moment a child node is created it will have a reference to the parent node, if we have two children they will have an identical copy/reference to the parent. The parent node is updated from both children when they arrive to the join, so I believe it doesn't matter the order or the delay between them, as the copy of one of the child will be out of date the moment is finished (the other node will have updated it when it finishes and arrives to the join) and therefore get the SOE.
I have done a small test changing manually the value of the version column of the parent token, if I decrease it by 1, after one of the child has finished and the other is waiting, I don't get the SOE.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197309#4197309
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197309
15 years, 6 months
[JBoss jBPM] - Not able to save/evaluate the values provided with websale p
by rinkigoyal
Hello everyone,
I downloaded JBOSS AS 4.2.2 and deploy JBPM ear file on it by jbpm-installer-3.3.0.GA.jar installer.
While installing JBOM by jbpm-installer-3.3.0.GA.jar, I provide the path for server the path where JBOSS AS is installed.
I am able to start the server and see the JBPM console by " http://localhost:8080/jbpm-console/" URL.
By default, some of the process are available as example.
I tried using the process definition "websale ".
I logged in as manager and create a instance of above process.
When it comes to task named "Create enw web Sale order", we have to provide the values for fields "item,quantity,address".
On providing the data for the above fileds, click on evaluate button ......
Following exception is showing:
"Error completing task: An exception of type
"org.jbpm.graph.def.DelegationException" was thrown. The message is: Cannot open connection
Closing the database context failed: An exception of type org.hibernate.exception.GenericJDBCException was thrown, with the message: Cannot open connection "
and exception is shown in stack trace as due to non creation of timer.
the atsck trace is as follows:
13:49:49,141 ERROR [GraphElement] action threw exception: Failed to create timer
javax.ejb.TransactionRolledbackLocalException: Failed to create timer
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:527)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:65)
at $Proxy63.createTimer(Unknown Source)
at org.jbpm.scheduler.ejbtimer.EntitySchedulerService.createTimer(EntitySchedulerService.java:45)
at org.jbpm.scheduler.def.CreateTimerAction.execute(CreateTimerAction.java:80)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:256)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
at org.jbpm.taskmgmt.exe.TaskInstance.create(TaskInstance.java:156)
at org.jbpm.taskmgmt.exe.TaskMgmtInstance.createTaskInstance(TaskMgmtInstance.java:196)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.taskmgmt.exe.TaskMgmtInstance_$$_javassist_7.createTaskInstance(TaskMgmtInstance_$$_javassis
at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:168)
at org.jbpm.graph.def.Node.enter(Node.java:314)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java)
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:389)
at org.jbpm.graph.node.StartState.leave(StartState.java:70)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.graph.node.StartState_$$_javassist_44.leave(StartState_$$_javassist_44.java)
at org.jbpm.graph.exe.Token.signal(Token.java:192)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
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:585)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.graph.exe.Token_$$_javassist_64.signal(Token_$$_javassist_64.java)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:471)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:385)
at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(CompleteTaskActionListener.java:47)
at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormButtonBase.java:56)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.ejb.EJBException: Failed to create timer
at org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:262)
Please help me in solve the above problem.
Thanks in advance,
rinki goyal
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197284#4197284
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197284
15 years, 6 months