6 Replies Latest reply on Jan 6, 2009 3:40 PM by Mita Bhushan

    Could not send mail

    Sanjay Kumar Newbie

      Hello everybody,

      I m using jbpm 3.2.2 and appserver is JBOSS. i m using mail node to send a mail after submitting a form. when i m submitting form it is giving Error completing task: An exception of type "org.jbpm.JbpmException" was thrown. The message is: couldn't send email.
      Is this any configuration error or anything else.
      Thanks

        • 1. Re: Could not send mail
          Ananth Sreepathi Newbie

          Hey,
          Ensure that you have configured your mail server properties properly in the jbpm.cfg.xml
          the properties like need to be configured at an minimum. also ensure that the mail id's you are using are configured/created in your mail server.

          <string name="jbpm.mail.smtp.host" value="localhost" />
          <string name="jbpm.mail.from.address" value="xyz@abc.com" />
          

          If this is set then every thing should work fine.
          Thnaks

          • 2. Re: Could not send mail
            Ronald van Kuijk Master

            and besides that... ALWAYS post FULL stacktraces

            • 3. Re: Could not send mail
              Sanjay Kumar Newbie

              I m getting this exception on portal.
              10:11:44,772 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 org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke()
              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.Action$$EnhancerByCGLIB$$87e8dfa2.execute()
              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 org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
              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$$8e7ee646.enter()
              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.TaskNode.leave(TaskNode.java:209)
              at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
              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$$8e7ee646.leave()
              at org.jbpm.graph.exe.Token.signal(Token.java:195)
              at org.jbpm.graph.exe.Token.signal(Token.java:140)
              at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke()
              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.exe.Token$$EnhancerByCGLIB$$bdd853c2.signal()
              at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:485)
              at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:399)
              at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(CompleteTaskActionListener.java:47)
              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 org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormButtonBase.java:56)
              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:595)
              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:150)
              ... 60 more

              if any one has an idea about it.please post solution for this .
              Thanks

              • 4. Re: Could not send mail
                Ananth Sreepathi Newbie

                 

                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)


                It looks like your server is not running or the IP mentioned in the config file could not be resolved.
                Try validating your settings again.

                Thanks

                • 5. Re: Could not send mail
                  Ronald van Kuijk Master

                  or a flaky firewall, or ....

                  • 6. Re: Could not send mail
                    Mita Bhushan Newbie

                    I am getting a same error could you get it to work