[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1996) NPE when calling EJBContext.getCallerPrincipal with no principal

Andrew Lee Rubinger (JIRA) jira-events at lists.jboss.org
Mon Jan 25 01:56:19 EST 2010


    [ https://jira.jboss.org/jira/browse/EJBTHREE-1996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12507986#action_12507986 ] 

Andrew Lee Rubinger commented on EJBTHREE-1996:
-----------------------------------------------

Occurs when the domain is null:

String unauth = domain.unauthenticatedPrincipal();

> NPE when calling EJBContext.getCallerPrincipal with no principal
> ----------------------------------------------------------------
>
>                 Key: EJBTHREE-1996
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1996
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: Security
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>
> Caused by: javax.ejb.EJBException: java.lang.NullPointerException
> 	at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:77)
> 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
> 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
> ....
> Caused by: java.lang.NullPointerException
> 	at org.jboss.ejb3.security.helpers.EJBContextHelper.getCallerPrincipal(EJBContextHelper.java:69)
> 	at org.jboss.ejb3.EJBContextImpl.getCallerPrincipal(EJBContextImpl.java:136)
> 	at org.jboss.ejb3.examples.chxx.tuner.CachingAuditor.audit(CachingAuditor.java:95)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list