[jBPM Development] - jbpm 5.4.0 - NullPointerException completing workItem. is this bug not resolved yet ?
by Feki Ahmed
Feki Ahmed [https://community.jboss.org/people/bardelman] created the discussion
"jbpm 5.4.0 - NullPointerException completing workItem. is this bug not resolved yet ?"
To view the discussion, visit: https://community.jboss.org/message/799849#799849
--------------------------------------------------------------
i think that i have the same issue then in https://community.jboss.org/message/790056#790056 here which seems to be a bug in jbpm 5.4.
i had the same exception when trying to complete a workitem after a session reload,
By the way, i coudn't get a processInstance using :processInstance = ksession.getProcessInstance(processInstance.getId()); from the reloaded Session, i also wish to know why.
even the ksession.getProcessInstances() is empty !)
i have to mention that the task status is "completed" in the database even when this exception happens but the process do not continue to the next task.
this is the log for it the exception:
(SingleSessionCommandService.java:400) ERROR org.drools.persistence.SingleSessionCommandService - Could not commit session
java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.setProcess(ProcessInstanceImpl.java:62)
at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.readProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:375)
at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:142)
at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:91)
at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:206)
at org.drools.common.AbstractWorkingMemory.getProcessInstance(AbstractWorkingMemory.java:1116)
at org.drools.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:297)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:117)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:150)
at ManagedBeans.JbpmAPIUtil.StartAndCompleteTask(JbpmAPIUtil.java:372)
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 org.apache.el.parser.AstValue.invoke(AstValue.java:264)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
at com.sun.faces.facelets.tag.jsf.core.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxHandler.java:450)
at javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:113)
at javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:106)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:760)
at javax.faces.component.UICommand.broadcast(UICommand.java:300)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1770)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Thanks for help !!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799849#799849]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 1 month
[Clustering Development] - getting [emerg] create_mem_node /etc/httpd/logs/manager.node failed: Permission denied Configuration Failed when starting apache on rhel 6 after mod_cluster is added
by Claudianus Adjai
Claudianus Adjai [https://community.jboss.org/people/claudianus] created the discussion
"getting [emerg] create_mem_node /etc/httpd/logs/manager.node failed: Permission denied Configuration Failed when starting apache on rhel 6 after mod_cluster is added"
To view the discussion, visit: https://community.jboss.org/message/778630#778630
--------------------------------------------------------------
Hello all -
I am getting the following error when I try to start apache on rhel 6.
[emerg] create_mem_node /etc/httpd/logs/manager.node failed: Permission denied
Configuration Failed
Note that apache was working fine before I uploaded mod_cluster modules and configured it. I also had mod_jk configured and working with apache before this, which I disabled.
I am trying to run apache with mod_cluster 1.2.0.Final on rhel 6 x64.
I am also starting apache as root (starting it as a regular user causes permission denied error).
Finally, note that I tried to run it both with SELinux enabled and disabled and the outcome seems to be the same.
My mod_cluster conf looks like below
+LoadModule slotmem_module modules/mod_slotmem.so+
+LoadModule manager_module modules/mod_manager.so+
+LoadModule proxy_cluster_module modules/mod_proxy_cluster.so+
+LoadModule advertise_module modules/mod_advertise.so+
+#Listen 192.168.10.91:8008+
+<VirtualHost 192.168.10.91:8008>+
+ <Directory />+
+ Order deny,allow+
+ Deny from all+
+ Allow from 127.0.0.1+
+ Allow from 192.168.10.+
+ </Directory>+
+ <Location /mod_cluster-manager>+
+ SetHandler mod_cluster-manager+
+ Order deny,allow+
+ Deny from all+
+ Allow from 127.0.0.1+
+ Allow from 192.168.10.+
+ </Location>+
+ ManagerBalancerName mycluster+
+ KeepAliveTimeout 60+
+ MaxKeepAliveRequests 0+
+ ServerAdvertise On+
+ EnableMCPMReceive+
+</VirtualHost>+
I commented out the Listen directive because I put it in the main http.conf file (having it in this file does not change the outcome) and the above mod_cluster.conf file is located under my /etc/http/conf.d/ folder.
I also saw that there is a bug related to this error but under Windows OS.
What am I missing?
Thanks
C
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/778630#778630]
Start a new discussion in Clustering Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 1 month
[jBPM Development] - Couldn't retrieve the node name for the process instance
by neeraj sharma
neeraj sharma [https://community.jboss.org/people/nsharm28] created the discussion
"Couldn't retrieve the node name for the process instance"
To view the discussion, visit: https://community.jboss.org/message/787574#787574
--------------------------------------------------------------
Hi,
When i am trying to retreive the node name for particular process instance. I am getting following Error.
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:68)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getWorkflowProcess(WorkflowProcessInstanceImpl.java:181)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getNodeContainer(WorkflowProcessInstanceImpl.java:69)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:103)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.getNodeName(NodeInstanceImpl.java:79)
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.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167)
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:139)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:38)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:126)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:186)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:164)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
below is the LOC, to get nodename
*System.out.println(("Node name "+((org.jbpm.workflow.instance.WorkflowProcessInstance)instance).getNodeInstances().iterator().next().getNodeName()));*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787574#787574]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 1 month
[jBPM Development] - What is the best way to work with sessions and processes while using persistance
by Feki Ahmed
Feki Ahmed [https://community.jboss.org/people/bardelman] created the discussion
"What is the best way to work with sessions and processes while using persistance"
To view the discussion, visit: https://community.jboss.org/message/798036#798036
--------------------------------------------------------------
Hi,
Actually, i m a newbie in jbpm so please comment/criticize any wrong thing u think i m doing.
In order to work on processes with human tasks nodes and use persistance, i had the choice between creating a session for each process or to create a session for many processes in the same time.
i choosed the first solution as i can free the memory by disposing the session(with ksession.dipose()) before creating another one and reload it with the JPAKnowledgeService.loadStatefulKnowledgeSession(idsession,kbase, config, env); method when i need it again.
if i was working with the second solution, i create a session and i start processes with ksession.startProcess(..) but i don't know how to stop/pause those process instances in order to free memory ( i m working with jbpm 5.0.0) ..
Another problem happened is that processes in loaded session (in the first solution) seems being not actives (i coudn't get tasks from loaded sessions) and i think maybe becose the session was disposed .. (it was my topic for my previous asked question in here https://community.jboss.org/thread/221356?tstart=0
i also want to know if there is a way to get the persisted sessions list from database without implementing my own logic to do that , i think jbpm already have this logic.
cheers !
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/798036#798036]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 1 month