[jboss-jira] [JBoss JIRA] (WFLY-6940) NullPointerException from JBossPDP when adding policy set because of null ClassLoader

Ondrej Kotek (Jira) issues at jboss.org
Thu Nov 15 06:34:00 EST 2018


     [ https://issues.jboss.org/browse/WFLY-6940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Kotek closed WFLY-6940.
------------------------------
    Resolution: Out of Date


I can confirm that that this in no longer valid in 7.2.0.GA.CR1 / WildFly 15 nightly build.

[~msvehla], FYI.

> NullPointerException from JBossPDP when adding policy set because of null ClassLoader
> -------------------------------------------------------------------------------------
>
>                 Key: WFLY-6940
>                 URL: https://issues.jboss.org/browse/WFLY-6940
>             Project: WildFly
>          Issue Type: Bug
>          Components: Class Loading, Security
>    Affects Versions: 11.0.0.Alpha1
>            Reporter: Ondrej Kotek
>            Priority: Critical
>         Attachments: pdp-2.1.9.Final-jboss-as7.war
>
>
> There si _NullPointerException_ thrown from _org.jboss.security.xacml.core.JBossPDP_ when adding policy set during deployment -- the context _ClassLoader_ is null.
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list