[JBoss jBPM] - Error while attempting to send mail
by sagyer
Hello,
I am trying to send a mail from my jbpm workflow using the mail-node.
Here is my processdefinition.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="SendMail">
|
| <start-state name="start-state1">
| <transition to="mail-node1"></transition>
| </start-state>
|
| <mail-node name="mail-node1" to="sagar.yerunkar(a)lntinfotech.com">
| <subject>TestJBPM</subject>
| <text>Sent using a mail node.</text>
| <transition to="end-state1"></transition>
| </mail-node>
|
| <end-state name="end-state1"></end-state>
|
| </process-definition>
|
I have added the element :
| <string name="mail.smtp.host" value="172.25.8.13" />
|
to config/jbpm.cfg.xml
I get the error below :
| 2008-08-28 15:01:57,649 DEBUG [org.hibernate.loader.Loader] done entity load
| 2008-08-28 15:01:57,728 DEBUG [org.jbpm.mail.Mail] sending email to '[sagar.yerunkar(a)lntinfotech.com]' about '
| TestJBPM
| '
| 2008-08-28 15:01:58,993 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: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(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.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(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java)
| 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(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
| at org.jbpm.graph.def.Node_$$_javassist_49.leave(Node_$$_javassist_49.java)
| 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(SignalActionListener.java:52)
| 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: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:752)
| at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.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(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| 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:412)
| 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
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.exceptionHandlers#11
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache miss
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.loader.Loader] loading collection: [org.jbpm.graph.def.Node.exceptionHandlers#11]
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.SQL] select exceptionh0_.NODE_ as NODE7_1_, exceptionh0_.ID_ as ID1_1_, exceptionh0_.GRAPHELEMENTINDEX_ as GRAPHELE6_1_, exceptionh0_.ID_ as ID1_9_0_, exceptionh0_.EXCEPTIONCLASSNAME_ as EXCEPTIO2_9_0_, exceptionh0_.TYPE_ as TYPE3_9_0_, exceptionh0_.GRAPHELEMENT_ as GRAPHELE4_9_0_ from JBPM_EXCEPTIONHANDLER exceptionh0_ where exceptionh0_.NODE_=?
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.loader.Loader] result set contains (possibly empty) collection: [org.jbpm.graph.def.Node.exceptionHandlers#11]
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.engine.loading.CollectionLoadContext] 1 collections were found in result set for role: org.jbpm.graph.def.Node.exceptionHandlers
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.engine.loading.CollectionLoadContext] Caching collection: [org.jbpm.graph.def.Node.exceptionHandlers#11]
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Caching: org.jbpm.graph.def.Node.exceptionHandlers#11
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.engine.loading.CollectionLoadContext] collection fully initialized: [org.jbpm.graph.def.Node.exceptionHandlers#11]
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.engine.loading.CollectionLoadContext] 1 collections initialized for role: org.jbpm.graph.def.Node.exceptionHandlers
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.engine.StatefulPersistenceContext] initializing non-lazy collections
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.loader.Loader] done loading collection
| 2008-08-28 15:01:58,993 DEBUG [org.jbpm.JbpmContext] closing jbpmContext org.jbpm.JbpmContext@e4436
| 2008-08-28 15:01:58,993 DEBUG [org.jbpm.svc.Services] executing default save operations
| 2008-08-28 15:01:58,993 DEBUG [org.jbpm.svc.save.HibernateSaveOperation] saving process instance
| 2008-08-28 15:01:58,993 DEBUG [org.jbpm.svc.save.SaveLogsOperation] flushing logs to logging service.
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.event.def.AbstractSaveEventListener] executing identity-insert immediately
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.SQL] insert into JBPM_LOG (ID_, INDEX_, DATE_, TOKEN_, PARENT_, TRANSITION_, CLASS_) values (null, ?, ?, ?, ?, ?, 'S')
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
| 2008-08-28 15:01:58,993 DEBUG [org.hibernate.SQL] call identity()
|
I also tried changing src/jpdl/org/jbpm/default.jbpm.cfg.xml as well to modify the relevant element to
<string name="mail.smtp.host" value="172.25.8.13" />
I have tried sending a mail using java code using this smtp address. It works.
I am using jBPM version 3.2.2
Kindly help.
Sagar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173018#4173018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173018
16 years, 3 months
[JBoss jBPM] - jBPM newbie: Help needed in getting it up.
by aayush2008
Hello everyone,
I will appreciate your help in this.
I have downloaded jBPM 3.2.1 today, and unzipped the folder on my machine. Then from the command line, i issued a command: run.bat -c jbpm
The server started running, and everything seemed fine, UNTIL .........
I got this error:
15:12:43,389 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/core.taglib.xml
15:12:43,467 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-simple.taglib.xml
15:12:43,514 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-nav.taglib.xml
15:12:43,530 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tf.taglib.xml
15:12:43,577 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
15:12:43,702 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-compat.taglib.xml
15:12:43,717 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
15:12:43,764 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tfl-compat.taglib.xml
15:12:43,780 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tfl.taglib.xml
15:12:43,780 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tf-compat.taglib.xml
15:12:43,827 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-data.taglib.xml
15:12:43,858 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
15:12:43,873 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
15:12:43,889 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-action.taglib.xml
15:12:43,920 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/identity.taglib.xml
15:12:43,967 ERROR [STDERR] Aug 28, 2008 3:12:43 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/Documents%20and%20Settings/aayush.bhatnagar/Desktop/jbpm-jpdl-3.2.3/server/server/jbpm/tmp/deploy/tmp1424jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
Any clues guys ? Whats with those facelets ? ;)
Regards
Aayush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173015#4173015
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173015
16 years, 3 months
[JBoss jBPM] - Re: problem with the MailNode:transition doesn't have destin
by jalovic
Hi all,
I've tried to get around this problem by using the Mail-Action and right now i'm in another problem,when i execute the method signal mi don't get any error neither any success for sending e-mail.
Here is my new processdefinition
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="conge_workflow">
|
|
| <start-state name="saisie_demande">
| <transition to="approbation_SH" name="demande_saisie">
| <mail to="XXX" name="notification_initiateur">
| <subject>
| test
| </subject>
| <text>
| Salam.
| </text>
| </mail>
| </transition>
| </start-state>
|
|
| <fork name="fork1">
| <transition to="notifier_SH_refus_DH"></transition>
| <transition to="notifier_initiateur_refus_DH" name=""></transition>
| </fork>
|
| <join name="join1">
| <transition to="refus_conge"></transition>
| </join>
|
| <state name="approbation_SH">
| <transition to="notifier_initiateur_refus_SH" name="NO"></transition>
| <transition to="validation_DH" name="OK"></transition>
| </state>
|
| <state name="validation_DH">
| <transition to="fork1" name="NO"></transition>
| <transition to="notifier_initiateur_accept" name="OK"></transition>
| </state>
|
| <state name="notifier_initiateur_refus_SH">
| <transition to="refus_conge"></transition>
| </state>
|
| <state name="notifier_SH_refus_DH">
| <transition to="join1"></transition>
| </state>
|
| <state name="notifier_initiateur_refus_DH">
| <transition to="join1"></transition>
| </state>
|
| <state name="notifier_initiateur_accept">
| <transition to="acceptation_conge"></transition>
| </state>
|
|
| <end-state name="acceptation_conge"></end-state>
|
| <end-state name="refus_conge"></end-state>
|
|
| </process-definition>
|
and here is where i call signal
| private void deployProcessDefinition() {
|
|
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource("/ressources/jbpm/conge-workflow/processdefinition.xml");
|
|
| JbpmContext jbpmContext = jbpmConfig.createJbpmContext();
| System.out.println("#### jbpmConfig.createJbpmContext() OK ");
|
| try {
|
|
| // Deploy the process definition in the database
| jbpmContext.deployProcessDefinition(processDefinition);
| System.out.println("#### jbpmContext.deployProcessDefinition(processDefinition) OK ");
|
| // create a process instance
| processInstance = processDefinition.createProcessInstance();
| System.out.println("#### processDefinition.createProcessInstance() OK ");
|
| Token token = processInstance.getRootToken();
| System.out.println("#### processInstance.getRootToken() OK ");
|
|
|
| ////////////////////////////////////////
| token.signal("demande_saisie");
| ////////////////////////////////////////
|
| System.out.println(processInstance.getRootToken().getNode().getName());
|
| //System.out.println("#### processInstance.getRootToken().signal() OK ");
|
|
|
| }
| catch (JbpmException ex)
| {
| System.out.println(ex.getMessage());
| }
| finally {
| // Tear down the pojo persistence context.
| // This includes flush the SQL for inserting the process definition
| // to the database.
| jbpmContext.close();
| System.out.println("#### jbpmContext.close() OK ");
| }
| }
|
where
| static JbpmConfiguration jbpmConfig = JbpmConfiguration.getInstance();
|
and
| <?xml version="1.0" encoding="windows-1252"?>
|
| <!--
| Document : jbpm.cfg.xml
| Created on : 19 June 2008, 11:44
| Author : deleonf
| Description:
| Purpose of the document follows.
| -->
|
| <jbpm-configuration>
|
| <jbpm-context>
| <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
| </jbpm-context>
|
| <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
| <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
| <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
| <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
| <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
| <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
| <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
| <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
|
| <int name="jbpm.byte.block.size" value="1024" singleton="true" />
| <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
| <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
| <long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
|
| <!--
| <string name="mail.smtp.host" value="localhost" />
| <bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
| -->
|
| <string name="jbpm.mail.smtp.host" value="smtp.gmail.com" />
| <bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
| <string name="jbpm.mail.from.address" value="yourMail(a)gmail.com" />
| <string name="jbpm.mail.user" value="yourUser(a)gmail.com" />
| <string name="jbpm.mail.pass" value="yourPassword" />
| <string name="jbpm.mail.port" value="465" />
| <string name="jbpm.mail.smtp.socketFactory.port" value="465" />
| <string name="jbpm.mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory" />
| <string name="jbpm.mail.smtp.auth" value="true" />
| <string name="jbpm.mail.smtp.starttls.enable" value="true" />
| <string name="jbpm.mail.debug" value="true" />
| <string name="jbpm.mail.smtp.socketFactory.fallback" value="false" />
| <string name="jbpm.mail.advanced.config" value="true" />
| <string name='mail.class.name' value='FastSign.mail.Mail' />
|
| <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
| </jbpm-configuration>
|
I apologize for this too long post.
Best regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173010#4173010
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173010
16 years, 3 months
[JBoss jBPM] - Cannot send mail from jBPM 3.2.2
by vinodkv
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172964#4172964
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172964
16 years, 3 months