Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10981

(7.1.z) NullPointerException from JBossPDP when adding policy set because of null ClassLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.0.2.GA, 7.0.3.GA, 7.0.4.GA, 7.0.5.GA, 7.0.6.CR1
    • Classloading, Security
    • Regression
    • Hide

      Deploy app with XACML PDP service based on PicketLink.

      PicketLink PDP quickstart pdp-2.1.9.Final-jboss-as7.war can be used.

      Show
      Deploy app with XACML PDP service based on PicketLink. PicketLink PDP quickstart pdp-2.1.9.Final-jboss-as7.war can be used.

      There si NullPointerException thrown from org.jboss.security.xacml.core.JBossPDP when adding policy set during deployment – the context ClassLoader is null.

      INFO  [org.jboss.security.xacml.core.JBossPDP] (MSC service thread 1-3) Reading policysets from location=policies/himss-policy.xml
      13:01:42,592 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."pdp-2.1.9.Final-jboss-as7.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."pdp-2.1.9.Final-jboss-as7.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "pdp-2.1.9.Final-jboss-as7.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
      	at org.jboss.wsf.stack.cxf.configuration.BusHolder.newInstance(BusHolder.java:325)
      	at org.jboss.wsf.stack.cxf.configuration.BusHolder.configure(BusHolder.java:211)
      	at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:97)
      	at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:59)
      	at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
      	... 5 more
      Caused by: java.lang.RuntimeException: java.lang.NullPointerException
      	at org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:163)
      	at org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP.getPDP(SOAPSAMLXACMLPDP.java:111)
      	at org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDP.<init>(SOAPSAMLXACMLPDP.java:69)
      	at org.picketlink.identity.federation.core.pdp.SOAPSAMLXACMLPDPService.<init>(SOAPSAMLXACMLPDPService.java:42)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      	at java.lang.Class.newInstance(Class.java:442)
      	at org.jboss.wsf.stack.cxf.configuration.BusHolder.newInstance(BusHolder.java:321)
      	... 10 more
      Caused by: java.lang.NullPointerException
      	at org.jboss.security.xacml.core.JBossPDP.getResourceViaClassLoader(JBossPDP.java:626)
      	at org.jboss.security.xacml.core.JBossPDP.isDirectory(JBossPDP.java:614)
      	at org.jboss.security.xacml.core.JBossPDP.isDirectory(JBossPDP.java:602)
      	at org.jboss.security.xacml.core.JBossPDP.addPolicySets(JBossPDP.java:468)
      	at org.jboss.security.xacml.core.JBossPDP.bootstrap(JBossPDP.java:346)
      	at org.jboss.security.xacml.core.JBossPDP.<init>(JBossPDP.java:159)
      	... 19 more
      
      13:01:42,596 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"pdp-2.1.9.Final-jboss-as7.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"pdp-2.1.9.Final-jboss-as7.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment \"pdp-2.1.9.Final-jboss-as7.war\"
          Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
          Caused by: java.lang.RuntimeException: java.lang.NullPointerException
          Caused by: java.lang.NullPointerException"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"pdp-2.1.9.Final-jboss-as7.war\".INSTALL"],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
      

              rhn-support-ivassile Ilia Vassilev
              ihradek@redhat.com Ivo Hrádek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: