[jboss-user] [JBoss jBPM] - Re: JBPM 3.2 - Mailing process - NullPointerException during

ygiriyap do-not-reply at jboss.com
Wed Apr 4 17:47:42 EDT 2007


I added a new hibernate mapping file for MailAction class.

org.jbpm.graph.action.MailAction.hbm.xml
<?xml version="1.0"?>
  | <!DOCTYPE hibernate-mapping PUBLIC
  |       "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  |           "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  | 
  | <hibernate-mapping default-access="field" >
  |   <subclass name="org.jbpm.graph.action.MailAction" discriminator-value="M" extends="org.jbpm.graph.def.Action">
  |   </subclass>
  | 
  | </hibernate-mapping>

Now I could successfully deploy the process.


Wait ... BUT !!!!

When I try to instantiate the mailing process ... am getting NullPointerException

  | 42156 [http-8080-Processor25] ERROR org.jbpm.webapp.bean.ProcessBean  - Failed to start process: org.jbpm.graph.def.DelegationException
  | org.jbpm.graph.def.DelegationException
  |         at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:367)
  |         at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:358)
  |         at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:261)
  |         at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
  |         at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
  |         at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
  |         at org.jbpm.graph.def.Node.enter(Node.java:302)
  |         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.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  |         at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5e7dd3fd.enter(<generated>)
  |         at org.jbpm.graph.def.Transition.take(Transition.java:151)
  |         at org.jbpm.graph.def.Node.leave(Node.java:393)
  |         at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
  |         at org.jbpm.graph.def.Node.leave(Node.java:357)
  |         at org.jbpm.graph.node.TaskNode.execute(TaskNode.java:190)
  |         at org.jbpm.graph.def.Node.enter(Node.java:318)
  |         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.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  |         at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5e7dd3fd.enter(<generated>)
  |         at org.jbpm.graph.def.Transition.take(Transition.java:151)
  |         at org.jbpm.graph.def.Node.leave(Node.java:393)
  |         at org.jbpm.graph.node.StartState.leave(StartState.java:70)
  |         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.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
  |         at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5e7dd3fd.leave(<generated>)
  |         at org.jbpm.graph.exe.Token.signal(Token.java:194)
  |         at org.jbpm.graph.exe.Token.signal(Token.java:165)
  |         at org.jbpm.webapp.bean.ProcessBean.startInstance(ProcessBean.java:162)
  |         at org.jbpm.webapp.bean.ProcessBean$StartInstanceListener.processAction(ProcessBean.java:123)
  |         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
  |         at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
  |         at javax.faces.component.UICommand.broadcast(UICommand.java:368)
  |         at javax.faces.component.UIData.broadcast(UIData.java:854)
  |         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
  |         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:248)
  |         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:252)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  |         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  |         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
  |         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  |         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  |         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  |         at java.lang.Thread.run(Unknown Source)
  | Caused by: java.lang.NullPointerException
  |         at org.jbpm.mail.Mail.send(Mail.java:98)
  |         at org.jbpm.mail.Mail.execute(Mail.java:63)
  |         at org.jbpm.graph.def.Action.execute(Action.java:122)
  |         at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:247)
  | 

This error is being thrown from ... GraphElement.executeAction method.
log.error("action threw exception: " + exception.getMessage(), exception);


Mail support being one of the major features of JBPM 3.2, should have enough documentation and make it easy to implement.

Please let me know any pointers to solve this.

Many thanks.
--Yash

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034801#4034801

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034801



More information about the jboss-user mailing list