[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); |

[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=bbop=viewtopicp=4026961#4026961 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026961 ___ jboss-user

[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=bbop=viewtopicp=4026986#4026986 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026986

[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 :

[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=bbop=viewtopicp=4025048#4025048 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025048 ___ jboss-user mailing list

[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=bbop=viewtopicp=4025050#4025050 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025050

[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=bbop=viewtopicp=4023969#4023969 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023969

[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

[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 :

[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 :

[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=bbop=viewtopicp=4023174#4023174 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023174

[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=bbop=viewtopicp=4023175#4023175 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023175 ___ jboss-user mailing list

[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=bbop=viewtopicp=4023326#4023326 Reply to the post :

[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=bbop=viewtopicp=4020102#4020102 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4020102

[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 |

[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 :

[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

[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

[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=bbop=viewtopicp=4019493#4019493 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019493 ___

[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

[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=bbop=viewtopicp=4018893#4018893 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018893 ___ jboss-user mailing list

[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=bbop=viewtopicp=4019070#4019070 Reply to the post :

[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=bbop=viewtopicp=4018531#4018531

[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

[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=bbop=viewtopicp=4018664#4018664 Reply to the post :