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

Illegal reflective access by org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • envinject-plugin
    • Windows 10, master Jenkins 2.375.2
      Slwave connected via Swarm Client v3.36 and 3.39

      Running Jenkins slave i see the following message apprearing

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter to method java.lang.Class.getDeclaredFields0(boolean)
      WARNING: Please consider reporting this to the maintainers of org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter
      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

          [JENKINS-70504] Illegal reflective access by org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter

          Michal Turecki added a comment - - edited

          I can confirm this issue on windows agent

          Command line:

          java -cp "c:\jenkins\agent.jar" hudson.remoting.jnlp.Main -headless -workDir "C:\Jenkins" -url http://%JENKINS_IP%:8080 %AGENT_HASH% %AGENT_NODE%

          2.908.v66a_774b_31d93

          INFO: Connected
          WARNING: An illegal reflective access operation has occurred
          WARNING: Illegal reflective access by org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter to method java.lang.Class.getDeclaredFields0(boolean)
          WARNING: Please consider reporting this to the maintainers of org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter
          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

          Michal Turecki added a comment - - edited I can confirm this issue on windows agent Command line: java -cp "c:\jenkins\agent.jar" hudson.remoting.jnlp.Main -headless -workDir "C:\Jenkins" -url http://%JENKINS_IP%:8080 %AGENT_HASH% %AGENT_NODE% 2.908.v66a_774b_31d93 INFO: Connected WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter to method java.lang.Class.getDeclaredFields0(boolean) WARNING: Please consider reporting this to the maintainers of org.jenkinsci.plugins.envinject.service.EnvInjectMasterEnvVarsSetter 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

          Basil Crow added a comment -

          Duplicates JENKINS-60891.

          Basil Crow added a comment - Duplicates JENKINS-60891 .

            Unassigned Unassigned
            rene_kempen Rene Kempen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: