Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1402

openjdk9 - An illegal reflective access operation has occurred

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: jclouds-core
    • Labels:
      None
    • Environment:
      $ uname -r
      4.15.14-1-ARCH
      $ archlinux-java status
      Available Java environments:
        java-9-openjdk (default)
    • Flags:
      Patch

      Description

      Hi !

      While trying to run this example, I got the following warning:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/home/mathieu/Desktop/lab/jclouds-optel/test/target/cloud-scheduler-1.0-SNAPSHOT-shaded.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
      WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
      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
      

      After a few searches, I found that this is a known issue caused by Google/Guice and one one his dependency: cglib. It has been fixed in Google/Guice release 4.2. But jclouds-core is using Google/Guice release 3.0

      $ mvn dependency:tree | grep guice -B 2
      [INFO] |  |  \- org.apache.jclouds:jclouds-core:jar:2.1.0:compile
      [INFO] |  |     +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
      [INFO] |  |     +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
      [INFO] |  |     +- com.google.inject:guice:jar:3.0:compile
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tormath1 Mathieu Tortuyaux
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: