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

[JDK9] Illegal reflective access from WhoAmI

    Details

    • Similar Issues:

      Description

      While exploring Jenkins 2.60.3 on Oracle Java 9 build 181 (pre-release), it reports illegal access exceptions and warns that a future release of Java 9 will forbid illegal access.

      Stack trace shows:

      WARNING: Illegal reflective access by Main (file:/usr/share/jenkins/jenkins.war) to field java.util.zip.ZipFile.name
              at Main.whoAmI(Main.java:355)
              at Main._main(Main.java:214)
              at Main.main(Main.java:132)
      

        Attachments

          Activity

          markewaite Mark Waite created issue -
          markewaite Mark Waite made changes -
          Field Original Value New Value
          Epic Link JENKINS-40689 [ 177392 ]
          markewaite Mark Waite made changes -
          Description While exploring Jenkins 2.60.3 on Oracle Java 9 build 181 (pre-release), it reports illegal access exceptions and warns that a future release of Java 9 will forbid illegal access.

          A partial stack trace shows:

          {noformat}
          WARNING: Illegal reflective access by org.kohsuke.stapler.lang.FieldRef (file:/var/jenkins_home/war/WEB-INF/lib/stapler-1.250.jar) to field java.lang.Throwable.serialVersionUID
                  at org.kohsuke.stapler.lang.FieldRef.wrap(FieldRef.java:39)
                  at org.kohsuke.stapler.lang.KlassNavigator$1$2.get(KlassNavigator.java:202)
                  at org.kohsuke.stapler.lang.KlassNavigator$1$2.get(KlassNavigator.java:199)
                  at java.base/java.util.AbstractList$Itr.next(AbstractList.java:371)
                  at org.kohsuke.stapler.lang.Klass.getFields(Klass.java:79)
                  at org.kohsuke.stapler.KlassDescriptor.<init>(KlassDescriptor.java:26)
                  at org.kohsuke.stapler.MetaClass.buildDispatchers(MetaClass.java:105)
                  at org.kohsuke.stapler.MetaClass.<init>(MetaClass.java:93)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:204)
                  at org.kohsuke.stapler.MetaClass.<init>(MetaClass.java:91)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:204)
                  at org.kohsuke.stapler.MetaClass.<init>(MetaClass.java:91)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:204)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:196)
                  at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:109)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
                  at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
                  at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
                  at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
                  at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
                  at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:95)
                  at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:147)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
                  at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
                  at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:150)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
                  at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
                  at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
                  at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
                  at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
                  at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
          {noformat}

          {noformat}
          WARNING: Illegal reflective access by org.kohsuke.stapler.lang.FieldRef (file:/var/jenkins_home/war/WEB-INF/lib/stapler-1.250.jar) to field java.lang.Throwable.backtrace
                  at org.kohsuke.stapler.lang.FieldRef.wrap(FieldRef.java:39)
                  at org.kohsuke.stapler.lang.KlassNavigator$1$2.get(KlassNavigator.java:202)
                  at org.kohsuke.stapler.lang.KlassNavigator$1$2.get(KlassNavigator.java:199)
                  at java.base/java.util.AbstractList$Itr.next(AbstractList.java:371)
                  at org.kohsuke.stapler.lang.Klass.getFields(Klass.java:79)
                  at org.kohsuke.stapler.KlassDescriptor.<init>(KlassDescriptor.java:26)
                  at org.kohsuke.stapler.MetaClass.buildDispatchers(MetaClass.java:105)
                  at org.kohsuke.stapler.MetaClass.<init>(MetaClass.java:93)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:204)
                  at org.kohsuke.stapler.MetaClass.<init>(MetaClass.java:91)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:204)
                  at org.kohsuke.stapler.MetaClass.<init>(MetaClass.java:91)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:204)
                  at org.kohsuke.stapler.WebApp.getMetaClass(WebApp.java:196)
                  at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:109)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
          {noformat}
          While exploring Jenkins 2.60.3 on Oracle Java 9 build 181 (pre-release), it reports illegal access exceptions and warns that a future release of Java 9 will forbid illegal access.

          Stack trace shows:

          {noformat}
          WARNING: Illegal reflective access by Main (file:/usr/share/jenkins/jenkins.war) to field java.util.zip.ZipFile.name
                  at Main.whoAmI(Main.java:355)
                  at Main._main(Main.java:214)
                  at Main.main(Main.java:132)
          {noformat}
          oleg_nenashev Oleg Nenashev made changes -
          Labels java10_hackathon
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          oleg_nenashev Oleg Nenashev made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          oleg_nenashev Oleg Nenashev made changes -
          Remote Link This issue links to "https://github.com/jenkinsci/extras-executable-war/pull/18 (Web Link)" [ 20853 ]
          oleg_nenashev Oleg Nenashev made changes -
          Labels java10_hackathon java10_hackathon newbie-friendly
          Hide
          vlatombe Vincent Latombe added a comment -

          Shows on startup as well.

          Show
          vlatombe Vincent Latombe added a comment - Shows on startup as well.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Fix has been released in Jenkins 2.129

          Show
          oleg_nenashev Oleg Nenashev added a comment - Fix has been released in Jenkins 2.129
          oleg_nenashev Oleg Nenashev made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          batmat Baptiste Mathus made changes -
          Labels java10_hackathon newbie-friendly illegalReflectiveAccess java10_hackathon newbie-friendly

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              markewaite Mark Waite
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: