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

Scriptler failing to load with OpenJDK 21

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: