Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-14478

AM on JDK11 shows warning when Groovy access with "Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1"

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.0, 6.5.0.1, 6.5.1, 6.5.2
    • Fix Version/s: None
    • Component/s: Amster, scripting
    • Labels:
      None
    • Environment:
      JDK 11 specifically
    • Target Version/s:
    • Support Ticket IDs:

      Description

      Bug description

      When using JDK 11 when the groovy scripting is access this may be seen in the Web container logs

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/tc85/webapps/openam/WEB-INF/lib/groovy-all-2.4.12.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      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
      

       

      How to reproduce the issue

      1. Install AM6.5.x with JDK11
      2. Access say any thing involving Groovy script (eg: OIDC or Auth script)
      3. Check Tomcat catalina out
      Expected behaviour
      No warning like this for JDK11
      
      Current behaviour
      See
      
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/tc85/webapps/openam/WEB-INF/lib/groovy-all-2.4.12.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      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
      
      

      Work around

      Can be ignored as it is just a WARNING by groovy without functional impact

      Code analysis

      Groovy issues with JDK1

      GROOVY-8339 Fix warning "An illegal reflective access operation has occurred"
      GROOVY-8843 Fix illegal reflective access within o.c.g.vmplugin.v7.Java7
      GROOVY-9103 CLONE - CLONE - Fix warning "An illegal reflective access operation has occurred"

       

      When the above Groovy issues is resolved for JDK11, the Groovy library probably will need to be updated.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chee-weng.chea C-Weng C
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: