Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
JbpmHandlerProxy errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Not JbpmHandlerProxy

    Turns out its not JbpmHandlerProxy errors. I tried to implement a bean class in a node and tied to action. I got similar errors, but they are from dom4j. I tried to pass a variable to my bean which has getters and setters which implements the actionhandler.

    I get
    [FieldInstantiator] couldn't parse bean configuration :
    <name>abc</name>

    With a whole bunch of stack trace. Lets see what i can come up with. Meanwhile if anyone else has seen this please post your thoughts.

    Comment

    Working...
    X