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

AM Documentation should state limitations of using Java 11

    Details

    • Sprint:
      2019.2 - AM Docs - Harry
    • Story Points:
      0.5
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      No (add reasons in the comment)

      Description

      Bug description

      Release documentation for AM 6.5 states support for Java 11, however it does not point out the limitations when using Java 11 in regards to the legacy JATO pages that still exist (Eg Federation)

      How to reproduce the issue

      1. Install OpenJDK 11, and AM
      2. Login to the admin console, and attempt to configure an OpenID Connect provider from the dashboard (navigate to Realms > [Realm Name] > Dashboard > Common Tasks)
      3. Notice  the error displayed to the console
      Expected behaviour
      Able to configure an OpenID Connect provider
      
      Current behaviour
      The following displays in the configuration debug log:
      
      amConsole:12/14/2018 14:54:07:337 am GMT: Thread[http-nio-8080-exec-2,5,main]: TransactionId[93267741-6ba5-4845-91a8-16c614605daa-1780] ERROR: ConsoleServletBase.onUncaughtException javax.servlet.ServletException: java.lang.NoClassDefFoundError: sun/misc/CharacterEncoder at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:667) at org.apache.jsp.console.task.ConfigureOAuth2_jsp._jspService(ConfigureOAuth2_jsp.java:505) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) ... Caused by: java.lang.NoClassDefFoundError: sun/misc/CharacterEncoder at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
      

      Work around

      Use Amster to configure or downgrade Java to 8

      Also d_etailed in this KBA: https://backstage.forgerock.com/publisher/kb/articles/a53786484_

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cristina.herraz Cristina Herraz
                Reporter:
                bradley.tarisznyas Brad Tarisznyas
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: