Knowledgebase: Advisories
Advisory (4/27/2016): Central Administration Page Throws Java Error 500 with Java Version 8 Update 91 or Higher
Posted by , Last modified by on 27 April 2016 11:48 AM

Overview

Behaviour:

Trying to open the FileCatalyst Central Administration page results in Central encountering a 500 error in the web browser. This occurs after installation of Java Version 8 Update 91 or higher on Linux or Windows Environments. MAC OSX users are unaffected by this update of Java 8.

 

Exception:

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 1 in the generated java file
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

Stacktrace:
        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
        org.apache.jasper.compiler.Compiler.compile(Compiler.java:339)
        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:601)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

 


Environment

Windows and Linux OS.

FileCatalyst Central all versions.

Java Version 8 Update 91 or higher. (JRE or JDK) 

 

Resolution

  1. Turn off the FileCatalyst Central Service.
  2. Install an older version of Java, older than version mentioned in the Environment.
  3. Point the FileCatalyst Central folder Java Path in the mawrapper.conf to the correct Java path. 
  4. Search for wrapper.java.command=
  5. Replace this path after the = to point to the older <path to Java Install>\Java\bin\ version. For example:
    # Java Application
    wrapper.java.command=C:\Program Files\Java\jdk1.8.0_73\jre\bin\java
  6. Start the FileCatalyst Central service.

Note: 

Most machines will probably be using the JRE.  Confirm your environment and choose the appropriate version.

See http://www.oracle.com/technetwork/java/archive-139210.html for older versions of Java.