• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • scriptler-plugin
    • None
    • Scriptler 363.vd97ef616cb_f9
      Jenkins 2.476
      OpenJDK 21

      On Jenkins startup, when loading plugins, a SEVERE error is thrown while loading Scriptler and Jenkins crashes.

      11-Sep-2024 15:09:26.699 INFO [ScriptlerLoadingTasks.synchronizeConfig] org.jenkinsci.plugins.scriptler.ScriptlerLoadingTasks.synchronizeConfig initialize Scriptler
      11-Sep-2024 15:09:26.718 SEVERE [pool-7-thread-27] jenkins.InitReactorRunner$1.onTaskFailed Failed ScriptlerLoadingTasks.synchronizeConfig
          java.lang.Error: java.lang.reflect.InvocationTargetException
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
              at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
              at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
              at jenkins.model.Jenkins$5.runTask(Jenkins.java:1195)
              at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
              at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
              at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
              at java.base/java.lang.Thread.run(Thread.java:1583)
          Caused by: java.lang.reflect.InvocationTargetException
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:115)
              at java.base/java.lang.reflect.Method.invoke(Method.java:580)
              at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
              ... 9 more
          Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Set.getClass()" because "s" is null
              at java.base/java.util.Collections.unmodifiableSet(Collections.java:1237)
              at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.config.ScriptSet.getScripts(ScriptSet.java:80)
              at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.config.ScriptlerConfiguration.load(ScriptlerConfiguration.java:105)
              at PluginClassLoader for scriptler//org.jenkinsci.plugins.scriptler.ScriptlerLoadingTasks.synchronizeConfig(ScriptlerLoadingTasks.java:65)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              ... 11 more

          [JENKINS-73762] Scriptler failing to load with OpenJDK 21

          Mark Waite added a comment - - edited

          I'm unable to duplicate the issue as described using Eclipse Temurin Java 21.0.4 on Debian. You'll need to provide more details so that others can duplicate the failure that you're seeing. Please use the guidelines in "How to report an issue".

          Steps that I took while trying to duplicate the issue are included in the tar archive JENKINS-73762.tar.gz of my installation

          1. Create a file plugins.txt that lists the plugin versions used
          2. Create a file README that downloads Jenkins 2.476 and the listed plugins and does other configuration steps
          3. Run the README with
            bash ./README
          4. Complete the setup wizard by defining a user and installing no additional plugins
          5. Confirm that each of the 3 defined scriptler scripts run as expected
          6. Start the job that is defined and confirm that the scriptler script to cancel jobs is run as expected and cancels the job
          7. Restart Jenkins

          If the additional details are not provided, I'll close this issue as "Cannot reproduce".

          Mark Waite added a comment - - edited I'm unable to duplicate the issue as described using Eclipse Temurin Java 21.0.4 on Debian. You'll need to provide more details so that others can duplicate the failure that you're seeing. Please use the guidelines in "How to report an issue" . Steps that I took while trying to duplicate the issue are included in the tar archive JENKINS-73762.tar.gz of my installation Create a file plugins.txt that lists the plugin versions used Create a file README that downloads Jenkins 2.476 and the listed plugins and does other configuration steps Run the README with bash ./README Complete the setup wizard by defining a user and installing no additional plugins Confirm that each of the 3 defined scriptler scripts run as expected Start the job that is defined and confirm that the scriptler script to cancel jobs is run as expected and cancels the job Restart Jenkins If the additional details are not provided, I'll close this issue as "Cannot reproduce".

          Mark Waite added a comment -

          Closing after a month with no response

          Mark Waite added a comment - Closing after a month with no response

            Unassigned Unassigned
            dcole1 Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: