1 Reply Latest reply on Jul 2, 2008 11:46 AM by kukeltje

    jbpm sen mail error

      Hi I use jbpm 3.2.1 version.I want to send mail.I made necessary configuration.On the testcase my application execute well and can send mail.But when I deployed project on jboss and run it this error has been occured:

      2008-07-01 14:53:09,016 ERROR [org.jbpm.graph.def.GraphElement] action threw exception: couldn't send email
      org.jbpm.JbpmException: couldn't send email
       at org.jbpm.mail.Mail.send(Mail.java:149)
       at org.jbpm.mail.Mail.send(Mail.java:113)
       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:255)
       at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
       at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
       at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
       at org.jbpm.graph.def.GraphElement$$FastClassByCGLIB$$7a7d6aa6.invoke(<generated>)
       at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
       at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
       at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$7e22fdfe.fireEvent(<generated>)
       at org.jbpm.graph.exe.Token.signal(Token.java:191)
       at org.jbpm.graph.exe.Token.signal(Token.java:157)
       at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:56)
       at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
       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.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.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       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:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:810)
      Caused by:
      javax.mail.SendFailedException: Sending failed;
       nested exception is:
       class javax.mail.MessagingException: Exception reading response;
       nested exception is:
       java.net.SocketException: Connection reset
       at javax.mail.Transport.send0(Transport.java:218)
       at javax.mail.Transport.send(Transport.java:80)
       at org.jbpm.mail.Mail.send(Mail.java:147)
       ... 43 more
      
      and here is my processdefinition.xml for sendin mail.
      

      
      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition
       xmlns="urn:jbpm.org:jpdl-3.2"
       name="simple">
       <start-state name="start">
       <transition name="to_state" to="first">
       <action name="action" class="com.sample.action.MessageActionHandler">
       <message>Going to the first state!</message>
       </action>
       </transition>
       </start-state>
       <state name="first" >
       <event type="before-signal">
       <mail name="mail" to="baydin@kipas.com.tr" subject="dnetjeÅŸr" text="http://localhost:8080/jbpm-console"></mail>
       <action name="action1" class="com.sample.action.MessageActionHandler">
       <message>BETUL AYDIN BU BÄ°R DENEME</message>
       </action>
       </event>
       <transition name="to_end" to="end">
       <action name="action" class="com.sample.action.MessageActionHandler">
       <message>About to finish!</message>
       </action>
       </transition>
       </state>
       <end-state name="end"></end-state>
      </process-definition>