Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-556

NullPointerException in project-integrations example on WildFly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • 1.0-beta-3
    • 1.0-beta-4
    • Adapter - JEE
    • None

    Description

      For WF deployment I changed the used adapter (using WF instead of AS7 adapter):
      https://github.com/matzew/keycloak/commit/c3f5d687fdb02f164bb87b9459332063c60b78e5

      But now, on WF, when I am deploying the app.war file, I am getting a NPE inside of the BootstrapListener:

      Caused by: java.lang.NullPointerException
      	at org.keycloak.example.BootstrapListener.contextInitialized(BootstrapListener.java:24)
      	at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
      	at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:190)
      	... 7 more
      

      Looking at the sources, I see that the Undertow/WildFly adapters do behave a bit different than the AS7 one:

      Since the stashing is not done by the WildFly/Undertow Adapter we get the NPE when trying to deploy on WildFly

      Attachments

        Issue Links

          Activity

            People

              sthorger@redhat.com Stian Thorgersen
              mwessend@redhat.com Matthias Wessendorf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: