-
Bug
-
Resolution: Done
-
Critical
-
JBossAS-3.2.8 Final
-
None
2006-02-24 10:14:57,125 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: null |
java.lang.NullPointerException |
at org.jboss.ejb.Container.getMethodPermissions(Container.java:473) |
at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:186) |
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:109) |
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:206) |
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136) |
at org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:498) |
at org.jboss.ejb.Container.invoke(Container.java:723) |
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeAddRelation(JDBCCMRFieldBridge.java:1194) |
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:1000) ... |
The backporting of JaasSecurityManager/SecurityAssociations from 4.0 to 3.2.8 (JBAS-2547) introduced a regression bug:
org.jboss.ejb.Container.getMethodPermission(Method m, InvocationType iface) is called with a null Method, which causes subsequently an NPE. The previous version of the SecurityInterceptor guarded against that.