[JBoss jBPM] - Re: JBPM 3.2 - Mailing process - Exception during deployment
by ygiriyap
Hi Martin,
Thanks.I could deploy the process and instantiate the process as well.
But got stuck in the node that sends the mail. Mail is not being sent ... Enabled the debug and found the following error.
anonymous wrote :
| 2007-04-05 16:28:11,500 DEBUG [org.jbpm.mail.Mail] - sending email to '[valid_id_for_bert(a)gmail.com, some_valid_id_to(a)yahoo.com]' about 'Subject: Mail action - mail'
|
Exception .... class javax.mail.SendFailedException: 550 <yash.giri(a)gmail.com> No such user here
anonymous wrote :
|
| 2007-04-05 16:28:50,890 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:247)
|
| at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
|
| at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
|
| at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:169)
|
| at org.jbpm.graph.def.Node.enter(Node.java:302)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|
| at java.lang.reflect.Method.invoke(Unknown Source)
|
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
|
| at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$3ffc4abc.enter()
|
| at org.jbpm.graph.def.Transition.take(Transition.java:151)
|
| at org.jbpm.graph.def.Node.leave(Node.java:393)
|
| at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|
| at java.lang.reflect.Method.invoke(Unknown Source)
|
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
|
| at org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$7a424106.leave()
|
| at org.jbpm.graph.exe.Token.signal(Token.java:194)
|
| at org.jbpm.graph.exe.Token.signal(Token.java:139)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|
| at java.lang.reflect.Method.invoke(Unknown Source)
|
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
|
| at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$ec8af150.signal()
|
| at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:475)
|
| at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:389)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
|
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
|
| at java.lang.reflect.Method.invoke(Unknown Source)
|
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:147)
|
| at org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$28eda7d1.end()
|
| at org.jbpm.webapp.tag.tf.ui.TaskForm$TaskFormActionListener.processAction(TaskForm.java:279)
|
| 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.webapp.tag.tf.ui.AbstractTaskFormButton.broadcast(AbstractTaskFormButton.java:51)
|
| 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.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
|
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
|
| 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:667)
|
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
|
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
|
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
|
| at java.lang.Thread.run(Unknown Source)
|
| Caused by: javax.mail.SendFailedException: Sending failed;
| nested exception is:
| class javax.mail.SendFailedException: Invalid Addresses;
| nested exception is:
| class javax.mail.SendFailedException: 550 <valid_id_for_bert(a)gmail.com> No such user here
|
|
| 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)
|
| ... 68 more
|
|
I have also done the following ...
1. jbpm.mail.smtp.host is set to right value of an smtp server (where to set the port ??? I dont know) - Can I go wrong here??
2. In Mail.java ... from-user has been set to valid value.Compiled and added to jbpm-jpdl.jar
What else is missing? Why this error?
I am evaluating JBPM and pitching it in my company ... for the implementation of the WFs.
I have a demo in couple of days ... and desperately need to get this working.
Please provide pointers to solve this.
Thank you.
--Yash
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034963#4034963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034963
19 years
[JBoss Seam] - Sending (Seam) mail from a scheduled service
by frehan
Hi I am tryin to send seam mails from a service and I can't get it to work.
My service checks my db every 1o minutes for updates and if it finds any a mail schould be sent.
>From my service I look up a stateless session bean using
InitialContext ctx = new InitialContext();
mailer = (se.test.Mailer) ctx.lookup("Camitz/Mailer");
I now that I can't inject in a service so I have to do a lookup
My session been is annotated like this:
@Stateless
@Name("mailerAction")
@Interceptors(SeamInterceptor.class)
@LocalBinding (jndiBinding="Camitz/Mailer")
@Scope(ScopeType.CONVERSATION)
The method for sending the mails :
public void sendAlarm(String to, String subject, String message){
AlarmMailBean mailBean = new AlarmMailBean(to,subject,message,link);
Contexts.getConversationContext().set("alarmMail", mailBean);
try {
Renderer.instance().render("/mail/mailTemplate.xhtml");
}
catch (Exception e) {
e.printStackTrace();
}
}
When the renderer is called I strangely get 2 different kinds off exceptions.
1.
11:35:05,559 ERROR [AlarmService] java.lang.RuntimeException: java.lang.NoClassD
efFoundError: org/jboss/seam/ui/JSF
javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoClassDefFoundErr
or: org/jboss/seam/ui/JSF
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.ja
va:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java
:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt
erceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(Stateles
sInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic
ationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth
enticationInterceptor.java:102)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce
ptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono
usInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessCont
ainer.java:211)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalPro
xy.java:79)
at $Proxy186.test(Unknown Source)
at se.camitz.admin.service.AlarmService.perform(AlarmService.java:59)
2.
12:32:36,647 ERROR [STDERR] -- nested exception start --
java.lang.IllegalStateException: No application context active
at org.jboss.seam.Component.forName(Component.java:1577)
at org.jboss.seam.Component.getInstance(Component.java:1627)
at org.jboss.seam.Component.getInstance(Component.java:1610)
at org.jboss.seam.Component.getInstance(Component.java:1589)
at org.jboss.seam.Component.getInstance(Component.java:1584)
at org.jboss.seam.mail.MailSession.instance(MailSession.java:266)
at org.jboss.seam.mail.ui.UIMessage.getMailSession(UIMessage.java:63)
at org.jboss.seam.mail.ui.UIMessage.getMimeMessage(UIMessage.java:78)
at org.jboss.seam.mail.ui.UIMessage.encodeBegin(UIMessage.java:101)
at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend
erer.java:150)
at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja
va:112)
at se.camitz.admin.mail.MailerAction.sendAlarm(MailerAction.java:77)
Exception 1. I dont understand but exception 2 is because I am not in a seam context.
How can I create a seam context or workaround this problem?
I have tried to use org.jboss.seam.contexts.Lifecycle.beginCall(); in my method but it did not help.
Or is it impossible to use seam mail from a service?
Best Regards Fredrik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034952#4034952
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034952
19 years
[EJB 3.0] - Corba and Stateful Session Bean problem
by ollka
Hi all,
I trying to develop some ejbs and corba client.
If I work with Stateless session beans, it's work fine, but if i try to use Stateful session bean, i have an error, when i resolve my stateful bean from client.
Using jndi works fine too - when i lookup a bean, the session is created.
But with corba i get following exception:
javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: null
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.SessionContainer.invoke(SessionContainer.java:303)
at org.jboss.ejb3.iiop.BeanCorbaServant.invoke(BeanCorbaServant.java:227)
at org.jboss.ejb3.iiop.BeanCorbaServant.invoke(BeanCorbaServant.java:233)
at org.jboss.ejb3.iiop.BeanCorbaServant._invoke(BeanCorbaServant.java:195)
at org.jacorb.poa.RequestProcessor.invokeOperation(RequestProcessor.java:297)
at org.jacorb.poa.RequestProcessor.process(RequestProcessor.java:596)
at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:739)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034949#4034949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034949
19 years