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

tomcat session state management will not work on java 16

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • http session

    Description

      The class org.apache.geode.modules.session.catalina.DeltaSession calls Field.setAccessible in a static block. It is getting access to a field in the super class which was private in tomcat 7 (see GEODE-3434). Because of this tomcat session state management will not work on java 16 (see https://softwaregarden.dev/en/posts/new-java/illegal-access-in-java-16/) unless jvm args are used to permit the call (for example "--illegal-access=permit").

      If we can drop support for tomcat 7 then this reflection would no longer be needed. It might also be possible to only call setAccessible if the field is private which would mean only tomcat 7 would not work on java 16.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dschneider Darrel Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: