Page 1 of 1

Workflow Decision Node not working.

PostPosted:Sat Jul 19, 2014 11:51 am
by mohasinmujawar56
I am using OpenKM 6.3.0 Community Edition on Windows 7. I have followed the steps shown in Workflow tutorial Lesson 12 for creating a workflow for Invoice processing. When I deployed it on server and started the Workflow it throws an exception:
error.png
error.png (5.33 KiB) Viewed 5505 times
When I looked at the tomcat server log it shows:
error1.png
error1.png (58.01 KiB) Viewed 5505 times
I am using latest jBoss build and jBPM 3 for workflow creation.
When I checked workflow diagram in administration section it stuck at decision node.
What will be the problem?

Re: Workflow Decision Node not working.

PostPosted:Sun Jul 20, 2014 4:26 pm
by jllort
I would like to see the stacktrace error. Go to catalina.log into tomcat/logs and copy all the stack trace log error.

Re: Workflow Decision Node not working.

PostPosted:Mon Jul 21, 2014 5:18 am
by mohasinmujawar56
The full log error is:
Code: Select all
2014-07-19 17:12:12,479 [http-bio-192.168.1.98-8020-exec-21] INFO  com.openkm.util.FormUtils$LocalResolver- resolveEntity(publicId=-//OpenKM//DTD Workflow Forms 2.1//EN, systemId=http://www.openkm.com/dtd/workflow-forms-2.1.dtd) => NULL
2014-07-19 17:12:22,838 [http-bio-192.168.1.98-8020-exec-21] WARN  org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog- Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
2014-07-19 17:12:22,852 [http-bio-192.168.1.98-8020-exec-21] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/OpenKM]- Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.openkm.frontend.client.service.OKMWorkflowService.runProcessDefinition(java.lang.String,java.lang.String,java.util.List) throws com.openkm.frontend.client.OKMException' threw an unexpected exception: java.lang.UnsupportedClassVersionError: com/sample/decision/InvoiceDecision : Unsupported major.minor version 51.0
	at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.UnsupportedClassVersionError: com/sample/decision/InvoiceDecision : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
	at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:111)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	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:597)
	at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
	at org.jbpm.instantiation.Delegation_$$_javassist_7.getInstance(Delegation_$$_javassist_7.java)
	at org.jbpm.graph.node.Decision.execute(Decision.java:100)
	at org.jbpm.graph.def.Node.enter(Node.java:390)
	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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
	at org.jbpm.graph.def.Node_$$_javassist_118.enter(Node_$$_javassist_118.java)
	at org.jbpm.graph.def.Transition.take(Transition.java:167)
	at org.jbpm.graph.def.Node.leave(Node.java:479)
	at org.jbpm.graph.node.StartState.leave(StartState.java:82)
	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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
	at org.jbpm.graph.def.Node_$$_javassist_118.leave(Node_$$_javassist_118.java)
	at org.jbpm.graph.exe.Token.signal(Token.java:223)
	at org.jbpm.graph.exe.Token.signal(Token.java:150)
	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:490)
	at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:406)
	at com.openkm.module.common.CommonWorkflowModule.runProcessDefinition(CommonWorkflowModule.java:278)
	at com.openkm.module.db.DbWorkflowModule.runProcessDefinition(DbWorkflowModule.java:208)
	at com.openkm.api.OKMWorkflow.runProcessDefinition(OKMWorkflow.java:113)
	at com.openkm.servlet.frontend.WorkflowServlet.runProcessDefinition(WorkflowServlet.java:106)
	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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
	... 44 more
I can't send you the full log. But the above piece of log occurs whenever I am trying to start invoice workflow.

Re: Workflow Decision Node not working.

PostPosted:Wed Jul 23, 2014 10:14 am
by jllort
What version are you using for compilation and what for execution. I think the problem could be there.

Re: Workflow Decision Node not working.

PostPosted:Thu Jul 24, 2014 5:02 am
by mohasinmujawar56
I am using JBoss 7 for Workflow creation, compilation and Execution. I have installed jBPM3 in jBoss and for OpenKM I am using 6.3.0 Community Edition and Eclipse Juno for OpenKM compilation. Tomcat bundle provided by OpenKM team for execution of OpenKM 6.3.0
The same problem occurs when I assigned a task to a user and as soon as the user completes the task by clicking button the same error occurs. I have created workflow without any decision nodes. But still it is showing the same error.

Re: Workflow Decision Node not working.

PostPosted:Sat Jul 26, 2014 6:39 pm
by jllort
The question is, when you run OpenKM ( Tomcat ) which JDK version are you using? When you compile from Eclipse Juno which JDK version are you using? I suspect you're using a newer version when you compile than when you execute into Tomcat. I think this is the problem shown in log.

Re: Workflow Decision Node not working.

PostPosted:Mon Aug 25, 2014 7:28 am
by mohasinmujawar56
I was using JDK 1.7 for Workflow creation and JDK 1.6 for Tomcat. After reading above solution I have uninstalled both versions and installed JDK 1.6. Now I am using JDK 1.6 alone for both Workflow creation and for running Tomcat but still it is showing the same error as described above. Please help me on this and sorry for late replying for the issue.

Re: Workflow Decision Node not working.

PostPosted:Wed Aug 27, 2014 6:55 pm
by jllort
With OpenKM 6.3 you should use jdk 1.7 ( for workflow and tomcat )