[jboss-jira] [JBoss JIRA] (WFLY-13304) JwtActivationProcessor throws NPE when LoginConfig#realmName not declared

Darran Lofthouse (Jira) issues at jboss.org
Wed Apr 1 11:58:34 EDT 2020


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

Darran Lofthouse updated WFLY-13304:
------------------------------------
    Workaround Description: Define the auth-method within a web.xml deployment descriptor, the web.xml takes priority over the annotation so the code triggering the NPE will be skipped if already defined in the web.xml.
                Workaround: Workaround Exists


> JwtActivationProcessor throws NPE when LoginConfig#realmName not declared
> -------------------------------------------------------------------------
>
>                 Key: WFLY-13304
>                 URL: https://issues.redhat.com/browse/WFLY-13304
>             Project: WildFly
>          Issue Type: Bug
>          Components: MP JWT
>    Affects Versions: 19.0.0.Final
>            Reporter: Michael Edgar
>            Assignee: Darran Lofthouse
>            Priority: Major
>             Fix For: 19.0.1.Final, 20.0.0.Beta1
>
>
> When starting a Microprofile application utilizing the {{org.eclipse.microprofile.auth.LoginConfig}} annotation, a {{NullPointerException}} is thrown if the annotation does not declare the {{realmName}} property.
> {code}
> ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) {} MSC000001: Failed to start service jboss.deployment.unit."example.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."example.war".PARSE: WFLYSRV0153: Failed to process phase PARSE of deployment "example.war"
>         at org.jboss.as.server at 11.0.0.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:183)
>         at org.jboss.msc at 1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
>         at org.jboss.msc at 1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
>         at org.jboss.msc at 1.4.11.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
>         at org.jboss.threads at 2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
>         at org.jboss.threads at 2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
>         at org.jboss.threads at 2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
>         at org.jboss.threads at 2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
>         at java.base/java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NullPointerException
>         at org.wildfly.extension.microprofile.jwt-smallrye at 19.0.0.Final//org.wildfly.extension.microprofile.jwt.smallrye.JwtActivationProcessor.deploy(JwtActivationProcessor.java:80)
>         at org.jboss.as.server at 11.0.0.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:176)
>         ... 8 more
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list