Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1255

HealthCheck returns 500 - Internal Server Error due to a NPE

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2017.3.3
    • Fix Version/s: 2017.5.0
    • Component/s: core
    • Labels:
      None

      Description

      The simple usage of @Health in a application where it has also the Keycloak fraction (and some others) leads to 500 - Internal Server Error with the following stack trace: (Note that NPE comes from a class that was not produced by the developer.)

      2017-04-03 17:58:34,342 ERROR [io.undertow.request] (default I/O-2) UT005023: Exception handling request to /myapp/diskspace: java.lang.NullPointerException
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$1.getConfidentialPort(UndertowDeploymentInfoService.java:532)
      at org.keycloak.adapters.undertow.ServletKeycloakAuthMech.getConfidentilPort(ServletKeycloakAuthMech.java:108)
      at org.keycloak.adapters.wildfly.WildflyAuthenticationMechanism.createRequestAuthenticator(WildflyAuthenticationMechanism.java:47)
      at org.keycloak.adapters.wildfly.WildflyAuthenticationMechanism.createRequestAuthenticator(WildflyAuthenticationMechanism.java:36)
      at org.keycloak.adapters.undertow.ServletKeycloakAuthMech.authenticate(ServletKeycloakAuthMech.java:90)
      at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:245)
      at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:263)
      at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:231)
      at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:125)
      at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:99)
      at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:92)
      at
      ...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                heiko.braun Heiko Braun
                Reporter:
                rafabene Rafael Benevides
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: