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

NullPointerException apparently caused by JENKINS-73355

      JENKINS-55342 added hashtag support. This is causing a Null Pointer Exception:

      2025-02-24 15:16:15.091+0000 [id=98]    WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 6a672eda-9f63-4ccc-a884-ee10c2f1274a
      java.lang.NullPointerException
              at java.base/java.util.Objects.requireNonNull(Objects.java:209)
              at java.base/java.lang.String.join(String.java:3325)
              at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerParameters.setOrCreateParametersForChangeBasedEvent(GerritTriggerParameters.java:527)
              at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerParameters.setOrCreateParameters(GerritTriggerParameters.java:453)
              at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.EventListener.createParameters(EventListener.java:352)
              at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.EventListener.schedule(EventListener.java:282)
              at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.retriggerThisBuild(GerritTrigger.java:863)
              at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.RetriggerAction.doIndex(RetriggerAction.java:150)
              at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:484)
              at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:497)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:218)
              at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:37)
              at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
              at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:140)
              at org.kohsuke.stapler.MetaClass$12.doDispatch(MetaClass.java:686)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:61)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:800)
        

      Going back to 2.40.0 we do not have this issue, it is present in 2.41.0, 2.41.1 and 2.42.0.

      Context: Upgrading a Jenkins 2.401.3 installation with gerrit-trigger 2.39.1, saw this issue with 2.42.0. Reverting to 2.40.0 is okay.
      Gerrit version is 3.11.0

      Looking at line 527 (https://github.com/jenkinsci/gerrit-trigger-plugin/blob/master/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerParameters.java#L527) appears to link it with the Hashtag feature

          [JENKINS-75328] NullPointerException apparently caused by JENKINS-73355

          Steve created issue -
          Steve made changes -
          Attachment New: gerrit-trigger.log [ 64012 ]
          Basil Crow made changes -
          Link New: This issue is caused by JENKINS-55342 [ JENKINS-55342 ]
          Steve made changes -
          Comment [ Installing the following packages has fixed the problem:
            javapackages-bootstrap
            apache-commons-compress

          The old plugin was working without these packages but it appears these are now required.
          Again, this is AWS Linux 2023 which is based on Fedora ]
          Steve made changes -
          Summary Original: NullPointerException apparently since JENKINS-55342 New: NullPointerException apparently caused by JENKINS-73355

            rsandell rsandell
            steveparker Steve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: