Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1931

Consider restrictions of reflection API when using H2 DBMS

    XMLWordPrintable

Details

    • Fix
    • Status: Open (View Workflow)
    • Medium
    • Resolution: Unresolved
    • None
    • 2.7.3
    • None
    • None

    Description

      Current Situation

      • The JOC Cockpit makes use of reflection to inspect H2 classes when logging.
      • When used with the H2 DBMS the behavior raises warnings as annotations restrict access by reflection.

      Desired Behavior

      • No warnings are raised when using the H2 DBMS.

      Workaround

      • Apply the following compatibility setting:
        • open the $HOME/.jocrc file
        • add the JAVA_OPTIONS environment variable using the value
          --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED
          

      Attachments

        Activity

          People

            oh Oliver Haufe
            ap Andreas PĆ¼schel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: