3 Replies Latest reply on Jul 9, 2009 6:30 PM by Anil Saldanha

    JBAS-7049: AccessController permission check throwing NPE

    Anil Saldanha Master

      Looks like an OpenJDK6 issue where the permission check for getParent of a classloader is failing with an NPE because probably the parent class loader is null (boot CL).

      14:40:13,679 ERROR [AbstractKernelController] Error installing to Described: name=deployers-classloader:0.0.0$MODULE state=PreInstall
      java.lang.NullPointerException
       at java.security.AccessControlContext.checkPermission(AccessControlContext.java:330)
       at java.security.AccessController.checkPermission(AccessController.java:553)
       at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
       at java.lang.ClassLoader.getParent(ClassLoader.java:1241)
       at org.jboss.aop.asintegration.jboss5.SecurityActions$GetParentAction$2$1.run(SecurityActions.java:57)
       at org.jboss.aop.asintegration.jboss5.SecurityActions$GetParentAction$2$1.run(SecurityActions.java:55)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.jboss.aop.asintegration.jboss5.SecurityActions$GetParentAction$2.getParent(SecurityActions.java:53)
       at org.jboss.aop.asintegration.jboss5.SecurityActions.getParent(SecurityActions.java:77)
       at org.jboss.aop.asintegration.jboss5.VFSClassLoaderDomainRegistry.getClassLoaderDomainForLoader(VFSClassLoaderDomainRegistry.java:181)
       at org.jboss.aop.asintegration.jboss5.VFSClassLoaderDomainRegistry.getRegisteredDomain(VFSClassLoaderDomainRegistry.java:165)
       at org.jboss.aop.asintegration.jboss5.VFSClassLoaderScopingPolicy.getDomain(VFSClassLoaderScopingPolicy.java:68)
       at org.jboss.aop.AspectManager.instance(AspectManager.java:248)
       at org.jboss.aop.AspectManager.instance(AspectManager.java:234)
       at org.jboss.aop.microcontainer.beans.AspectManagerFactory.getAspectManager(AspectManagerFactory.java:46)
       at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getDependencies(AOPDependencyBuilder.java:102)
      


      Any second thoughts?

      This is only on openjdk6 and not on Sun JDK6.