Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2857

NPE caused at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • JBossAS-3.2.8.SP1
    • JBossAS-3.2.8 Final
    • EJB2
    • 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.

              dandread1@redhat.com Dimitrios Andreadis
              dandread1@redhat.com Dimitrios Andreadis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: