Interface Request

2013-11-18 Thread Wechsung, Wulf
Hi everyone, I want to build a service that works transparently for web request threads and system threads. If called in a web request it should utilize session storage via ASM and if called from a background thread it should just return the value of a ThreadLocal?. What I can't find out is:

Re: Interface Request

2013-11-18 Thread Dmitry Gusev
Hi, RequestGlobals.getRequest() should return null I think: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/RequestGlobals.html#getRequest() On Mon, Nov 18, 2013 at 4:40 PM, Wechsung, Wulf wulf.wechs...@sap.comwrote: Hi everyone, I want to build a service that

RE: Interface Request

2013-11-18 Thread Wechsung, Wulf
Subject: Re: Interface Request Hi, RequestGlobals.getRequest() should return null I think: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/RequestGlobals.html#getRequest() On Mon, Nov 18, 2013 at 4:40 PM, Wechsung, Wulf wulf.wechs...@sap.comwrote: Hi everyone, I

Re: Interface Request

2013-11-18 Thread Dmitry Gusev
returns a non-null proxy that NPEs because it's delegate is actually null. Kind Regards, Wulf -Original Message- From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com] Sent: Montag, 18. November 2013 13:45 To: Tapestry users Subject: Re: Interface Request Hi, RequestGlobals.getRequest

Re: Interface Request

2013-11-18 Thread Thiago H de Paula Figueiredo
On Mon, 18 Nov 2013 11:39:22 -0200, Wechsung, Wulf wulf.wechs...@sap.com wrote: Hi, Hi! judging from the stack trace I think RequestGlobals actually returns a non-null proxy that NPEs because it's delegate is actually null. I don't think that's correct. You'll get an NPE if you inject