Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71570

keycloak 2.3.2 plugin throws exception - argument "content" is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • keycloak-plugin
    • None
    • Jenkins 2.361.4

      After updating to version 2.361.4 and updating plugins jenkins locks up with OOPS page and exception ID

      In console log there is hollowing:

      2023-06-29 18:12:03.075+0000 [id=58]    WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://jenkins.xxxxx.com/securityRealm/commenceLogin
      java.lang.IllegalArgumentException: argument "content" is null
              at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4829)
              at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3596)
              at org.keycloak.util.JsonSerialization.readValue(JsonSerialization.java:75)
              at org.jenkinsci.plugins.KeycloakSecurityRealm.getKeycloakDeployment(KeycloakSecurityRealm.java:531)
              at org.jenkinsci.plugins.KeycloakSecurityRealm.doCommenceLogin(KeycloakSecurityRealm.java:194)
              at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
      Caused: java.lang.reflect.InvocationTargetException
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:401)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207)

      -------------------

      2023-06-29 18:12:03.077+0000 [id=58]    WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 1bbd6f07-be30-4b2e-b657-4acab0299e8c
      java.lang.IllegalArgumentException: argument "content" is null
              at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4829)
              at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3596)
              at org.keycloak.util.JsonSerialization.readValue(JsonSerialization.java:75)
              at org.jenkinsci.plugins.KeycloakSecurityRealm.getKeycloakDeployment(KeycloakSecurityRealm.java:531)
              at org.jenkinsci.plugins.KeycloakSecurityRealm.doCommenceLogin(KeycloakSecurityRealm.java:194)
              at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:409)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:207)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140)
              at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:762)
      Caused: javax.servlet.ServletException
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:812)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:894)
              at org.kohsuke.stapler.MetaClass$2.doDispatch(MetaClass.java:224)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:762)

       

            mrmateo Matt R
            igors igors
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: