0 Replies Latest reply on Aug 28, 2008 3:11 AM by vinod kakkanat

    Cannot send mail from jBPM 3.2.2

    vinod kakkanat Newbie

      hi
      am using the mail node for sending a mail. It does not work.
      What are the configurations that needs to be done for the mail node to work.
      Is there any configurations required in any of the XML files. I am using Lotus Notes for sending and receiving mails.
      Is there any out of the box feature of jBPM 3.2.2 for sending mails.



      11:13:38,314 ERROR [GraphElement] action threw exception: couldn't send email
      org.jbpm.JbpmException: couldn't send email
       at org.jbpm.mail.Mail.send(Mail.java:152)
       at org.jbpm.mail.Mail.send(Mail.java:116)
       at org.jbpm.mail.Mail.execute(Mail.java:63)
       at org.jbpm.graph.def.Action.execute(Action.java:122)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(Ja
      vassistLazyInitializer.java:173)
       at org.jbpm.graph.def.Action_$$_javassist_63.execute(Action_$$_javassist
      _63.java)
       at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
       at org.jbpm.graph.node.MailNode.execute(MailNode.java:29)
       at org.jbpm.graph.def.Node.enter(Node.java:319)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(Ja
      vassistLazyInitializer.java:173)
       at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.ja
      va)
       at org.jbpm.graph.def.Transition.take(Transition.java:151)
       at org.jbpm.graph.def.Node.leave(Node.java:394)
       at org.jbpm.graph.node.StartState.leave(StartState.java:70)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(Ja
      vassistLazyInitializer.java:173)
       at org.jbpm.graph.def.Node_$$_javassist_49.leave(Node_$$_javassist_49.ja
      va)
       at org.jbpm.graph.exe.Token.signal(Token.java:195)
       at org.jbpm.graph.exe.Token.signal(Token.java:140)
       at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActi
      onListener.java:52)
       at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmAc
      tionListenerWrapper.java:82)
       at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
       at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:
      746)
       at javax.faces.component.UICommand.broadcast(UICommand.java:368)
       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
      
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7
      52)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
      ionPhase.java:97)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       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(Appl
      icationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:525)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:241)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:580)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      7)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.mail.MessagingException: Exception reading response;
       nested exception is:
       java.net.SocketException: Connection reset
       at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java
      :1611)
       at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
       at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:41
      2)
       at javax.mail.Service.connect(Service.java:288)
       at javax.mail.Service.connect(Service.java:169)
       at javax.mail.Service.connect(Service.java:118)
       at javax.mail.Transport.send0(Transport.java:188)
       at javax.mail.Transport.send(Transport.java:118)
       at org.jbpm.mail.Mail.send(Mail.java:150)
       ... 59 more
      Caused by: java.net.SocketException: Connection reset
       at java.net.SocketInputStream.read(SocketInputStream.java:168)
       at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
       at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
       at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java
      :1589)
       ... 67 more




      Where should i define the SMTP Server ??


      Thanks in advance