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

Illegal reflective access by jenkins.ClassLoaderReflectionToolkit in 2.275

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.276

      Description

      Reporting as it says in the logs:

      
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/var/jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang.ClassLoader.findClass(java.lang.String)
      WARNING: Please consider reporting this to the maintainers of jenkins.ClassLoaderReflectionToolkit
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      
      

        Attachments

          Activity

          Hide
          timja Tim Jacomb added a comment - - edited

          Naresh Rayapati please re-run with the startup flag '--illegal-access=debug' and provide the stacktrace (just for the ClassLoaderReflectionToolkit please). We fixed most of those `ClassLoaderReflectionToolkit` errors recently

          Show
          timja Tim Jacomb added a comment - - edited Naresh Rayapati please re-run with the startup flag '--illegal-access=debug' and provide the stacktrace (just for the ClassLoaderReflectionToolkit please). We fixed most of those `ClassLoaderReflectionToolkit` errors recently
          Hide
          nrayapati Naresh Rayapati added a comment -

          https://gist.github.com/nrayapati/96f3d0291efe56a8d4a23cc6ebbd22cf

          Just in case: 

          2021-01-18 21:43:25.709+0000 [id=38]	INFO	jenkins.InitReactorRunner$1#onAttained: Listed all plugins
          WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/var/jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang.ClassLoader.findClass(java.lang.String)
          	at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:22)
          	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375)
          	at hudson.PluginManager$2$1$1.run(PluginManager.java:551)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          	at java.base/java.lang.Thread.run(Thread.java:834)
          WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/var/jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang.ClassLoader.findLoadedClass(java.lang.String)
          	at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:24)
          	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375)
          	at hudson.PluginManager$2$1$1.run(PluginManager.java:551)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          	at java.base/java.lang.Thread.run(Thread.java:834)
          WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/var/jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang.ClassLoader.findResource(java.lang.String)
          	at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:26)
          	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375)
          	at hudson.PluginManager$2$1$1.run(PluginManager.java:551)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          	at java.base/java.lang.Thread.run(Thread.java:834)
          WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/var/jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang.ClassLoader.findResources(java.lang.String)
          	at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:28)
          	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375)
          	at hudson.PluginManager$2$1$1.run(PluginManager.java:551)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          	at java.base/java.lang.Thread.run(Thread.java:834)
          WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/var/jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang.ClassLoader.getClassLoadingLock(java.lang.String)
          	at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:35)
          	at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
          	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
          	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375)
          	at hudson.PluginManager$2$1$1.run(PluginManager.java:551)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
          	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          	at java.base/java.lang.Thread.run(Thread.java:834)
          
          Show
          nrayapati Naresh Rayapati added a comment - https://gist.github.com/nrayapati/96f3d0291efe56a8d4a23cc6ebbd22cf Just in case:  2021-01-18 21:43:25.709+0000 [id=38] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/ var /jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang. ClassLoader .findClass(java.lang. String ) at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:22) at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:589) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375) at hudson.PluginManager$2$1$1.run(PluginManager.java:551) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:834) WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/ var /jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang. ClassLoader .findLoadedClass(java.lang. String ) at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:24) at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:589) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375) at hudson.PluginManager$2$1$1.run(PluginManager.java:551) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:834) WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/ var /jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang. ClassLoader .findResource(java.lang. String ) at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:26) at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:589) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375) at hudson.PluginManager$2$1$1.run(PluginManager.java:551) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:834) WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/ var /jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang. ClassLoader .findResources(java.lang. String ) at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:28) at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:589) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375) at hudson.PluginManager$2$1$1.run(PluginManager.java:551) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:834) WARNING: Illegal reflective access by jenkins.ClassLoaderReflectionToolkit (file:/ var /jenkins/war/WEB-INF/lib/jenkins-core-2.275.jar) to method java.lang. ClassLoader .getClassLoadingLock(java.lang. String ) at jenkins.ClassLoaderReflectionToolkit.<clinit>(ClassLoaderReflectionToolkit.java:35) at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:632) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:589) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:375) at hudson.PluginManager$2$1$1.run(PluginManager.java:551) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:834)
          Hide
          basil Basil Crow added a comment -
          Show
          basil Basil Crow added a comment - Fixed in jenkinsci/jenkins#5110 .
          Hide
          basil Basil Crow added a comment -

          Released in 2.276.

          Show
          basil Basil Crow added a comment - Released in 2.276 .

            People

            Assignee:
            timja Tim Jacomb
            Reporter:
            nrayapati Naresh Rayapati
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: