[jboss-jira] [JBoss JIRA] Created: (JBAS-6894) PerTxEntityInstanceCache->removeTimerServiceIfAllCancelledOrExpired needs privileged blocks
Anil Saldhana (JIRA)
jira-events at lists.jboss.org
Mon May 11 17:53:46 EDT 2009
PerTxEntityInstanceCache->removeTimerServiceIfAllCancelledOrExpired needs privileged blocks
-------------------------------------------------------------------------------------------
Key: JBAS-6894
URL: https://jira.jboss.org/jira/browse/JBAS-6894
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: EJB2
Reporter: Anil Saldhana
Assignee: Galder Zamarreño
Fix For: JBossAS-5.1.0.GA, JBossAS-6.0.0.Alpha1
Basically, we have a couple of failures in the AS testsuite when running some tests under the Java security manager.
The exception looks as follows:
Caused by: java.security.AccessControlException: access denied (javax.management.MBeanPermission org.jboss.ejb.txtimer.EJBTimerServiceImpl#getTimerService[jboss.ejb:service=EJBTimerService] invoke)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at org.jboss.mx.server.MBeanServerImpl.checkMBeanPermission(MBeanServerImpl.java:1735)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:663)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy432.getTimerService(Unknown Source)
at org.jboss.ejb.plugins.PerTxEntityInstanceCache.removeTimerServiceIfAllCancelledOrExpired(PerTxEntityInstanceCache.java:228)
at org.jboss.ejb.plugins.PerTxEntityInstanceCache.remove(PerTxEntityInstanceCache.java:121)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:150)
at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:45)
at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
Please add privileged blocks around the lines:
TimerService timerService = service.getTimerService(containerId, id);
and
service.removeTimerService(containerId, id);
Assign it back to me, if you need help.
--
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