-
Apr 26th, 2010, 12:36 PM
#1
JbpmHandlerProxy errors
I have a simple workflow that am trying to trigger a spring bean for action.
<node name="node2">
<event type="node-enter">
<action name="test" class="org.springmodules.workflow.jbpm31.JbpmHandl erProxy" config-type="bean">
<targetBean>
notifyMessage
</targetBean>
</action>
</event>
<transition to="Assign Draft User"></transition>
</node>
notifyMessage is a class that implements ActionHandler that has a execute method-> for now just prints a message.
I'm unable to understand what am I doing wrong here. Currently on springmodules 0.9 and spring 2.3 jbpm 3.2.8 and using flex for frontend via spring remoting.
If i do not use JbpmHandlerProxy and call the class directly it works fine. I've tried different factory keys
Left factory key blank. Still same error.
My application context bean org.springframework.context.support.ClassPathXmlAp plicationContext is called main-context. I tried this as my factory key.
My jbpm config bean is org.springmodules.workflow.jbpm31.LocalJbpmConfigu rationFactoryBean
is called jbpmConfig. I tried to pass this as my factory key.
Need help.
Still keeps throwing below errors.
12:27:25,644 ERROR [STDERR] java.lang.ExceptionInInitializerError
12:27:25,644 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
12:27:25,644 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
12:27:25,644 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
12:27:25,644 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
12:27:25,644 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:355)
12:27:25,644 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:308)
12:27:25,644 ERROR [STDERR] at org.jbpm.instantiation.FieldInstantiator.newInstan ce(FieldInstantiator.java:117)
12:27:25,644 ERROR [STDERR] at org.jbpm.instantiation.FieldInstantiator.instantia te(FieldInstantiator.java:53)
12:27:25,644 ERROR [STDERR] at org.jbpm.instantiation.Delegation.instantiate(Dele gation.java:164)
12:27:25,644 ERROR [STDERR] at org.jbpm.instantiation.Delegation.getInstance(Dele gation.java:126)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.Action.execute(Action.java:136)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.executeAction(Grap hElement.java:280)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.executeActions(Gra phElement.java:237)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.fireAndPropagateEv ent(GraphElement.java:207)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.GraphElement.fireEvent(GraphEle ment.java:190)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.Node.enter(Node.java:358)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.Transition.take(Transition.java :151)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.def.Node.leave(Node.java:453)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.node.StartState.leave(StartState.ja va:78)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:214)
12:27:25,644 ERROR [STDERR] at org.jbpm.graph.exe.Token.signal(Token.java:143)
12:27:25,644 ERROR [STDERR] at com.bpmresources.dao.ProcessFormDAO.getNewProcessI nstance(ProcessFormDAO.java:52)
12:27:25,644 ERROR [STDERR] at com.bpmresources.dao.TestProcess.doStepsStartAddIn stitution(TestProcess.java:80)
12:27:25,644 ERROR [STDERR] at com.bpmresources.dao.TestProcess$$FastClassByCGLIB $$a336f355.invoke(<generated>)
12:27:25,644 ERROR [STDERR] at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy. java:149)
12:27:25,644 ERROR [STDERR] at org.springframework.aop.framework.Cglib2AopProxy$C glibMethodInvocation.invokeJoinpoint(Cglib2AopProx y.java:700)
12:27:25,644 ERROR [STDERR] at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :149)
12:27:25,644 ERROR [STDERR] at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:106)
12:27:25,644 ERROR [STDERR] at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
12:27:25,644 ERROR [STDERR] at org.springframework.aop.framework.Cglib2AopProxy$D ynamicAdvisedInterceptor.intercept(Cglib2AopProxy. java:635)
12:27:25,644 ERROR [STDERR] at com.bpmresources.dao.TestProcess$$EnhancerByCGLIB$ $25d2c764.doStepsStartAddInstitution(<generated>)
12:27:25,644 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
12:27:25,644 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
12:27:25,644 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
12:27:25,644 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
12:27:25,644 ERROR [STDERR] at flex.messaging.services.remoting.adapters.JavaAdap ter.invoke(JavaAdapter.java:421)
12:27:25,644 ERROR [STDERR] at flex.messaging.services.RemotingService.serviceMes sage(RemotingService.java:183)
12:27:25,644 ERROR [STDERR] at flex.messaging.MessageBroker.routeMessageToService (MessageBroker.java:1503)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.AbstractEndpoint.serviceM essage(AbstractEndpoint.java:884)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.amf.MessageBrokerFilter.i nvoke(MessageBrokerFilter.java:121)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.amf.LegacyFilter.invoke(L egacyFilter.java:158)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.amf.SessionFilter.invoke( SessionFilter.java:44)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.amf.BatchProcessFilter.in voke(BatchProcessFilter.java:67)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.amf.SerializationFilter.i nvoke(SerializationFilter.java:146)
12:27:25,644 ERROR [STDERR] at flex.messaging.endpoints.BaseHTTPEndpoint.service( BaseHTTPEndpoint.java:278)
12:27:25,644 ERROR [STDERR] at flex.messaging.MessageBrokerServlet.service(Messag eBrokerServlet.java:322)
12:27:25,644 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
12:27:25,644 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:235)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:230)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:173)
12:27:25,644 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:182)
12:27:25,644 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:84)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:104)
12:27:25,644 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionV alve.invoke(CachedConnectionValve.java:157)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:543)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:109)
12:27:25,644 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:241)
12:27:25,644 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:844)
12:27:25,644 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.process(Http11Protocol.java:583)
12:27:25,644 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447)
12:27:25,644 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
12:27:25,644 ERROR [STDERR] Caused by: java.lang.NullPointerException
12:27:25,660 ERROR [STDERR] at org.jbpm.instantiation.ProcessClassLoader.getProce ssDefinition(ProcessClassLoader.java:57)
12:27:25,660 ERROR [STDERR] at org.jbpm.instantiation.ProcessClassLoader.findReso urce(ProcessClassLoader.java:63)
12:27:25,660 ERROR [STDERR] at java.lang.ClassLoader.getResource(ClassLoader.java :978)
12:27:25,660 ERROR [STDERR] at java.lang.ClassLoader.getResourceAsStream(ClassLoa der.java:1168)
12:27:25,660 ERROR [STDERR] at org.apache.commons.logging.LogFactory$3.run(LogFac tory.java:597)
12:27:25,660 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
12:27:25,660 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getResourceA sStream(LogFactory.java:593)
12:27:25,660 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getFactory(L ogFactory.java:237)
12:27:25,660 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFa ctory.java:351)
12:27:25,660 ERROR [STDERR] at org.springmodules.workflow.jbpm31.JbpmHandlerProxy .<clinit>(JbpmHandlerProxy.java:49)
12:27:25,660 ERROR [STDERR] ... 66 more
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules