[jboss-user] [EJB 3.0] - NPE in StateslessContainer at line 396
jaikiran pai
do-not-reply at jboss.com
Tue May 4 06:14:07 EDT 2010
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion
"NPE in StateslessContainer at line 396"
To view the discussion, visit: http://community.jboss.org/message/540990#540990
--------------------------------------------------------------
> Nagin Kothari wrote:
>
> My application has Interceptor with following code
>
>
>
>
> public class ApplicationIterceptor implements Interceptor {
>
> public Object invoke(Invocation invocation) throws Throwable {
> EJBContainerInvocation ejb = (EJBContainerInvocation) invocation;
>
> Principal p = ejb.getBeanContext().getEJBContext().getCallerPrincipal();
> }
> }
> In jboss 4.3.2 ejb.getBeanContext() was returing value, however in jboss 6.0M2 it is returning null. Is there any change in thw way for getting CallerPrincipal in Jboss6?
>
> thanks in advance.
I haven't looked into the details yet, but why are you using a AOP interceptor and accessing JBoss internal classes to get hold of the caller principal?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/540990#540990]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100504/1d563245/attachment.html
More information about the jboss-user
mailing list