[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
17 years, 7 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
17 years, 7 months
[JBossWS] - Interoperability issue between JBoss service and gSOAP clien
by navinbhat
Environment:
JBOSS AS 4.2.3,JBoss-native-3.0.3,JDK 5 update 15,Windows XP SP2,Eclipse 3.3.x.
Description:
I generated service code from wsdl using wsconsume (contract first approach). I wrote the service skeleton code as a stateless EJB, where in i have a operation which recieves and sends back an MTOM attachment. I have enabled MTOM using the following annotation.
@BindingType(value="http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true").I deployed the service in JBoss Application server 4.2.3.
The SOAP 1.2 client is written in gSOAP framework (Running on linux) generated from the same wsdl file.When the gSOAP client sends an MTOM attachment the JBoss service throws an exception, the stack trace is shown below.
NOTE: The same JBoss service works fine with JBoss client.
Stack trace
12:11:27,705 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.soap.SOAPException: Cannot decode multipart related message
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:253)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:193)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:457)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
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:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
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:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.mail.internet.ParseException: Expected ';', got "/"
at javax.mail.internet.ParameterList.(ParameterList.java:179)
at javax.mail.internet.ContentType.(ContentType.java:100)
at org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder.isValidRootType(MultipartRelatedDecoder.java:80)
at org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder.decodeMultipartRelatedMessage(MultipartRelatedDecoder.java:160)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:241)
... 25 more
Let me know if more detail is required,
Thanks in advance,
Navin Bhat
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173014#4173014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173014
17 years, 7 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
17 years, 7 months
[O'Reilly JBoss 3.0/4.0 Workbook] - Schedule Announced for Conference & Workshops on SOA, SaaS,
by Shaguf
When Technologies Mean Business, Participation Means Advantage. The schedule for Business Technology Summit has been announced. The theme of this year's summit is Riding the Workhorse IT Hockey Stick, featuring a convergence of four co-located tracks that have been identified as the power team for Workhorse IT -- SOA & Web Services, SaaS/PaaS, Enterprise Content Management and Virtualisation. View the complete schedule here http://www.btsummit.com/summitSchedule.html
Gain Strategic, Technical and Business Insights at BT Summit 2008, Bangalore Edition:
* Dr. Chris Harding of The Open Group will present straight from the source a deep dive workshop on Using TOGAF for SOA.
* Alan Pelz-Sharpe will put ECM and SOA through the SWOT Grind, speak about Email Archiving and Discovery, and lead a workshop on Selecting the Best ECM System.
* Peter Coffee will show you how to Code In the Cloud as well as lead a deep dive workshop on Enterprise Readiness for the Cloud
* Dr. Matjaz Juric, CEO of the SOA Competency Center, will conduct a hands-on workshop on BPMN to BPEL Modeling Business Processes for SOA and three focused sessions on SOA Architectural Patterns, SOA and BPM, and Designing Reusable Service Interfaces
* Dr. Robert Marcus, Author of the Global Grid, will present the State of the Union - SOA Standards and lead a deep dive workshop on Future Distributed Computing Architectures and the Role of SOA
* Nitin Borwankar will show you How to Find the Silver Lining in Cloud Services and lead a deep dive workshop on Affordable Data Analytics and Data Warehousing
Business Technology Summit is your chance to refresh, pick up new tips and techniques, and network with your peers to find solutions to the most pressing business technology issues today.The four technology tracks at the summit offer complimentary synergistic for a robust IT infrastructure that you cannot afford to ignore in your quest for business technology success.
REGISTER NOW FOR AS LOW AS INR 2999/-: [url]http://www.btsummit.com/registration.html
[/url]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172992#4172992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172992
17 years, 7 months