Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-9470

Some geode queries will fail on java 16 and later

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • querying

    Description

      In some cases a geode query uses reflection to read a field or call a function.

      If that happens on java 16 then the query will fail throwing a RuntimeException that is an instance of java.lang.reflect.InaccessibleObjectException. See: https://softwaregarden.dev/en/posts/new-java/illegal-access-in-java-16.

      To workaround this failure set the JVM command line option: --illegal-access=permit

      The query code that calls setAccessible is in two places:

      org.apache.geode.cache.query.internal.AttributeDescriptor#getReadMember

      org.apache.geode.cache.query.internal.MethodDispatch#MethodDispatch

      Attachments

        Activity

          People

            echobravo Ernest Burghardt
            dschneider Darrel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: