[jboss-jira] [JBoss JIRA] (AS7-2970) Method getCallerPrincipal in @PreDestroy of SFSB returns null
Ondřej Chaloupka (Reopened) (JIRA)
jira-events at lists.jboss.org
Mon Dec 19 05:39:09 EST 2011
[ https://issues.jboss.org/browse/AS7-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondřej Chaloupka reopened AS7-2970:
-----------------------------------
Reopening issue because there is really a problem.
The method @PreDestroy was really called in previous version of the test because of undeploying of whole jar with the bean. Probably it was not good approach.
I have changed the test and remove method is used for removing the SFSB.
The call of getCallerPrincipal method throws exeption:
{code}
[org.jboss.as.ee] (pool-8-thread-8) JBAS011005: Failed to destroy component instance Instance of SFSBLifecycleCallback {{[-84, -6, -35, 92, 51, -43, 68, 60, -124, -51, 53, -97, 58, -106, 44, -83]}}: java.lang.IllegalSta
teException: JBAS014513: getCallerPrincipal is not allowed in lifecycle methods of stateless session beans
{code}
> Method getCallerPrincipal in @PreDestroy of SFSB returns null
> -------------------------------------------------------------
>
> Key: AS7-2970
> URL: https://issues.jboss.org/browse/AS7-2970
> Project: Application Server 7
> Issue Type: Bug
> Reporter: Ondřej Chaloupka
> Assignee: Stuart Douglas
>
> Method getCallerPrincipal in @PreDestroy method of SFSB returns null.
> Calling of getCallerPrincipal in @PostConstruct and @PreDestroy method is allowed (EJB3.1 4.6.1).
> And for not authenticated user it should return "anonymous".
> Test: https://github.com/ochaloup/jboss-as/commits/JBQA-5483-test-migration-getcallerprincipal
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list