Jaspersoft Internal server error java.lang.NullPointerException after upgrade
search cancel

Jaspersoft Internal server error java.lang.NullPointerException after upgrade


Article ID: 201245


Updated On:


Clarity PPM On Premise Clarity PPM SaaS


Whenever you attempt to go to your Jaspersoft server you get a 500 Internal Server Error.  Tomcat starts successfully and you are able to get the Tomcat page to load when we go to that URL.  

Error in jasperserver log:

2020-10-01 08:28:16,702 ERROR SystemErrorController,http-nio-8080-exec-6:83 [] - Internal server error
org.apache.jasper.JasperException: java.lang.NullPointerException
                at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:598)
                at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
               at com.jaspersoft.jasperserver.war.themes.MTThemeResolver.getRootActive(MTThemeResolver.java:73)
                at com.jaspersoft.jasperserver.war.themes.MTThemeResolver.resolveThemeName(MTThemeResolver.java:47)
                at com.jaspersoft.jasperserver.war.themes.JSThemeResolver.resolveThemeName(JSThemeResolver.java:66)
                at org.springframework.web.servlet.support.RequestContextUtils.getTheme(RequestContextUtils.java:151)              
at org.springframework.web.servlet.support.RequestContextUtils.getTheme(RequestContextUtils.java:151)


Release : Any



Workaround 1. Check permissions

Check the permissions on the directory of the Apache Tomcat logs

  1. Set permissions to read/write
  2. Execute
  3. Try to restart and see if that helps

Workaround 2. Fresh install of Jaspersoft

If the above doesn't help, do a fresh install of Jaspersoft:

  1. Backup any custom reports
  2. Drop the Jaspersoft schema
  3. Create a new empty schema
  4. Install a new Tomcat
  5. Follow the steps to create a new Jaspersoft install.
  6. Create the keystore and import the JS content

Additional Information

See also: Jaspersoft / reports known issues with Clarity