[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-21 Thread tazman
I just tested sending a mail from an asynchronous method (using JSF RI 1.2_03). 

1 - I rebuilt Seam from CVS 
2 - tested the following method, which worked


  | public void newMessage(ContactMessage message) { 
  | try { 
  |   renderer.render("/mails/contact.xhtml"); 
  |   log.debug("Email sent successfully"); 
  | } catch (Exception e) { 
  |   log.error("Error sending email", e); 
  | }
  | }

3 - modified the method to make it asynchronous:


  | @Asynchronous
  | public void newMessage(ContactMessage message) { 
  | Contexts.getConversationContext().set("message", message);
  | try { 
  |   renderer.render("/mails/contact.xhtml"); 
  |   log.debug("Email sent successfully"); 
  | } catch (Exception e) { 
  |   log.error("Error sending email", e); 
  | }
  | }
 
This threw NPE:

java.lang.NullPointerException 
  | at 
com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitI 
  | mpl.java:203) 
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.wrapResponseWriter(Facelet 
  | sRenderer.java:106) 
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja 
  | va:62) 
  | at actions.EventListener.newMessage(EventListener.java: 
  | 137) 
  | 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.jboss.seam.util.Reflections.invoke(Reflections.java:20) 
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocation 
  | Context.java:31) 
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation 
  | Context.java:57) 
  | at 
org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(Rollback 
  | Interceptor.java:34) 
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation 
  | Context.java:69) 
  | at 
org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(Bijecti 
  | onInterceptor.java:47) 
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation 
  | Context.java:69) 
  | at 
org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(Met 
  | hodContextInterceptor.java:27) 
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation 
  | Context.java:69) 
  | at 
org.jboss.seam.interceptors.AsynchronousInterceptor.aroundInvoke(Asyn 
  | chronousInterceptor.java:37) 
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation 
  | Context.java:69) 
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java: 
  | 103) 
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(Java 
  | BeanInterceptor.java:151) 
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanIntercept 
  | or.java:87) 
  | at 
net.benim.core.actions.EventListener_$$_javassist_40.newCelebrity(Eve 
  | ntListener_$$_javassist_40.java) 
  | 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.jboss.seam.util.Reflections.invoke(Reflections.java:20) 
  | at 
org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123) 
  | at 
org.jboss.seam.core.Dispatcher$AsynchronousInvocation.call(Dispatcher 
  | .java:134) 
  | at 
org.jboss.seam.core.Dispatcher$Asynchronous.execute(Dispatcher.java:8 
  | 8) 
  | at org.jboss.seam.core.Dispatcher.dispatch(Dispatcher.java:165) 
  | 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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:112) 
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationCo 
  | ntextImpl.java:166) 
  | at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3Int 
  | erceptorsInterceptor.java:63) 
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation. 
  | java:101) 
  | at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invok 
  | e(TransactionScopedEntityManagerInterceptor.java:54) 
  | 

[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-11 Thread piotr.walczyszyn
I can do it mid of next week. I'm out for few days. I will post my results.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026986#4026986

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026986
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-11 Thread petemuir
I've put a fix for 1.2 RI into CVS.  Please test

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026961#4026961

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026961
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-05 Thread petemuir
Btw, the best way to get a fix done sooner is to vote for it in JIRA!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025050#4025050

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025050
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-05 Thread petemuir
I'll try to get the fix into 1.2.1

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025048#4025048

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025048
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-03-05 Thread tazman
Hi Peter!

anonymous wrote : The fix won't work with JSF 1.2

Any idea when it'll work with JSF 1.2 RI? Seam mail with facelets templating 
looks so promising but it's pretty much useless for me at this time because I 
always send mails asynchronously. 


tazman

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025045#4025045

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025045
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-28 Thread piotr.walczyszyn
I checked it with myfaces, still there is a problem, I posted stack trace in 
JIRA issue.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023969#4023969

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-27 Thread piotr.walczyszyn
Yes unfortunetly it doesn't work with JSF 1.2, I will try to switch tomorrow to 
myfaces and test it in thi environment.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023326#4023326

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023326
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-27 Thread petemuir
The fix won't work with JSF 1.2

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023175#4023175

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023175
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-27 Thread piotr.walczyszyn
I will build seam source from CVS and will try to test it today. I will post my 
results on JIRA.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023174#4023174

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-27 Thread petemuir
There is currently a fix (which I haven't tested properly, so it would be great 
if you could, and put any problems on the JIRA issue) which will be in today's 
release.  Hopefully I'll close the issue next week sometime (its currently my 
number 2 priority)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023164#4023164

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023164
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-27 Thread apushadow
By the way, I'm using Tomcat with Embedded EJB and Seam 1.1.6.

My apologies if asking when a Jira ticket will be resolved is Taboo.  I'm 
really impressed with Seam and the responsiveness of the developers on this 
forum...please don't hate me.  :-)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023158#4023158

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023158
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-27 Thread apushadow
I'm getting this same stacktrace (NPE in FaceletsRenderer).  I'm trying to use 
Quartz to send an email at a scheduled time.  The method kicks-off when it 
should, but the rendering fails:


  | java.lang.NullPointerException
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.wrapResponseWriter(FaceletsRenderer.java:95)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:52)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:38)
  | at com.akimeka.lunchvote.EmailerImpl.sendEmail(EmailerImpl.java:38)
  | 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)
  | ...
  | 

Line 38 of EmailerImpl is "renderer.render(templateFileName)".

Any idea when JBSEAM-892 will be resolved?  Or does anyone know of any other 
library that takes care of sending emails that will work in its own thread?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023148#4023148

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023148
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-21 Thread piotr.walczyszyn
Issue is posted: http://jira.jboss.com/jira/browse/JBSEAM-892

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020102#4020102

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020102
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-20 Thread [EMAIL PROTECTED]
Please create an issue in JIRA, this is clearly a bug.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019493#4019493

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019493
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-20 Thread piotr.walczyszyn
I just checked also one thing. I removed from my mail template all referances 
to my components. Now it is completely static template with hardcoded 
receipient, subject and body. Unfortunelty I get same error when rendering - I 
guess this proves that my problem is not about properly scoped components this 
is something deeper I think.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019488#4019488

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019488
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-20 Thread piotr.walczyszyn
I got it:
anonymous wrote : 
  | 18:04:44,723 ERROR [STDERR] java.lang.NullPointerException
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.ui.facelet.FaceletsRenderer.wr
  | apResponseWriter(FaceletsRenderer.java:95)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.ui.facelet.FaceletsRenderer.re
  | nder(FaceletsRenderer.java:52)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.ui.facelet.FaceletsRenderer.re
  | nder(FaceletsRenderer.java:38)
  | 18:04:44,723 ERROR [STDERR] at 
org.alterapps.community.mail.RegistrationMail
  | HandlerBean.processRegistrationMail(RegistrationMailHandlerBean.java:83)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(
  | Native Method)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(N
  | ativeMethodAccessorImpl.java:39)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invo
  | ke(DelegatingMethodAccessorImpl.java:25)
  | 18:04:44,723 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:5
  | 97)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invo
  | keNext(MethodInvocation.java:112)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.InvocationContextI
  | mpl.proceed(InvocationContextImpl.java:166)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.EJBInvocationContext
  | .proceed(EJBInvocationContext.java:37)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.SeamInvocationContex
  | t.proceed(SeamInvocationContext.java:55)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.interceptors.BijectionIntercep
  | tor.bijectNonreentrantComponent(BijectionInterceptor.java:79)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.interceptors.BijectionIntercep
  | tor.bijectComponent(BijectionInterceptor.java:58)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor143.invoke
  | (Unknown Source)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invo
  | ke(DelegatingMethodAccessorImpl.java:25)
  | 18:04:44,723 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:5
  | 97)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.util.Reflections.invoke(Reflec
  | tions.java:18)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.Interceptor.aroundIn
  | voke(Interceptor.java:169)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.SeamInvocationContex
  | t.proceed(SeamInvocationContext.java:64)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.interceptors.OutcomeIntercepto
  | r.interceptOutcome(OutcomeInterceptor.java:21)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor142.invoke
  | (Unknown Source)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invo
  | ke(DelegatingMethodAccessorImpl.java:25)
  | 18:04:44,723 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:5
  | 97)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.util.Reflections.invoke(Reflec
  | tions.java:18)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.Interceptor.aroundIn
  | voke(Interceptor.java:169)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.SeamInvocationContex
  | t.proceed(SeamInvocationContext.java:64)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.interceptors.ConversationInter
  | ceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor141.invoke
  | (Unknown Source)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invo
  | ke(DelegatingMethodAccessorImpl.java:25)
  | 18:04:44,723 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:5
  | 97)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.util.Reflections.invoke(Reflec
  | tions.java:18)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.Interceptor.aroundIn
  | voke(Interceptor.java:169)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.SeamInvocationContex
  | t.proceed(SeamInvocationContext.java:64)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.interceptors.MethodContextInte
  | rceptor.aroundInvoke(MethodContextInterceptor.java:27)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor140.invoke
  | (Unknown Source)
  | 18:04:44,723 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invo
  | ke(DelegatingMethodAccessorImpl.java:25)
  | 18:04:44,723 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:5
  | 97)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.util.Reflections.invoke(Reflec
  | tions.java:18)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.seam.intercept.Interceptor.aroundIn
  | voke(Interceptor.java:169)
  | 18:04:44,723 ERROR [STDERR] at 
org.jboss.s

[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-20 Thread petemuir
It looks to me like ejb3 is swallowing the stack trace (it has an annoying 
habit of doing this in async stuff).  We need the stack of the original 
exception (wrap your code in a try-catch and use e.printStackTrace()).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019415#4019415

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019415
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-20 Thread piotr.walczyszyn
Sorry I was out yestarday and I didn't have access to my dev environment where 
I have this problem. Unfortunetly the stack trace is super short and maybe it 
will tell you more then me:
anonymous wrote : 
  | 15:02:31,623 ERROR [TimerImpl] Error invoking ejbTimeout: 
javax.ejb.EJBTransacti
  | onRolledbackException: java.lang.NullPointerException

Running the same mail template but within SFSB works fine.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019340#4019340

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019340
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-19 Thread [EMAIL PROTECTED]
No, an NPE inside Seam (rather than your own code) sounds more like a bug in 
Seam.

But you havn't posted this stack trace, which makes it super-difficult to help 
you.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019070#4019070

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-19 Thread petemuir
Post the stack trace.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018893#4018893

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018893
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-19 Thread piotr.walczyszyn
I guess I wasn't clear in my previous posts. This is exactly what I'm doing, I 
tried to stick it in to all possible contexts that are available throug 
Contexts class. Everytime I get NPE when running Renderer.render() method and I 
understand that this is because my objects are not found in those contexts.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018890#4018890

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-18 Thread [EMAIL PROTECTED]
So stick em in the conversation or event context before calling render(). ie. 
Contexts.getEventContext().set(...).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018664#4018664

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-18 Thread piotr.walczyszyn
I'm already passing my objects as parameters to asynch method and it works 
great. The problem begins when I want to render mail using Renderer.render 
method because my objects are not within conversation context of renderer. And 
in my email template I need to access my user object to get his address, name 
etc.. That's why I was trying to programatically set these inside of asynch 
method just before calling renderer, unfotunetly I keep getting NPE.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018617#4018617

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018617
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible to send mail from asynchronous method

2007-02-18 Thread [EMAIL PROTECTED]
Async methods are processed in their own conversation context (this is to 
ensure that conversations are always single-threaded). Try passing the stuff 
you need as parameters to the async method.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4018531#4018531

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4018531
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user