search cancel

JRS 7.1.1 does not build Report Options panel

book

Article ID: 202945

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

The Report Options Panel does not build the parameter select boxes required to request a report from the Jaspersoft Report Server. Log files in Tomcat show ...

localhost_access_log.2020-09-08.txt:
10.21.12.50 - - [08/Sep/2020:10:32:08 -0400] "POST /jasperserver-pro/rest_v2/reports/IM/reports/Snapshots/inputControls/ HTTP/1.1" 500 62315

localhost.2020-09-08.log:
08-Sep-2020 10:32:08.782 SEVERE [http-nio-8080-exec-8] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [JerseyREST] in context with path [/jasperserver-pro] threw exception [org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color] with root cause
 java.lang.NoClassDefFoundError: Could not initialize class java.awt.Color
 at net.sf.jasperreports.engine.xml.JRBoxFactory.setBoxAttributes(JRBoxFactory.java:94)

JRS 7.1.1 installed on Tomcat 8.5 in TEST and PROD environments. Failure only occurs in PROD. Tests with IE, Edge, Firefox and Chrome yield the same results, always failing in PROD.

Environment

Release : 14.2

Component : IdentityMinder(Identity Manager)

Resolution

I tried both items we found in the WebEx: updating the path to jvm.dll in the Tomcat Java configurations; and re-installing JDK1.8_u172 (same as we found in TEST) to use that JDK. The first change, setting the Tomcat Properties to look for jvm.dll in "C:\Program Files\Java\jdk1.8.0_u261\jre" did not work, as the same error on finding the awt.dll popper up. Re-installing JDK1.8_u172 and then updating the path to the jvm.dll to start at "C:\Program Files\Java\jdk1.8.0_u172" did work. The issue appears to be caused by differences between u172 and subsequent updates, u231 and u261 specifically since I have tested with both.

The full path is "C:\Program Files\Java\jdk1.8.0_172\jre\bin\server\jvm.dll" in the Tomcat Properties > Java > Java Virtual Machine parameter. I used the Configure Tomcat tool to access the Tomcat Properties.