Unable to print, generate pdf, generate png from Quickview > Job Flow on WCC GUI
search cancel

Unable to print, generate pdf, generate png from Quickview > Job Flow on WCC GUI

book

Article ID: 263072

calendar_today

Updated On:

Products

CA Workload Automation AE

Issue/Introduction

As stated, unable to generate any sort of output from Quickview < Job Flow. 
The screen flashes when selecting any of these options, and nothing else happens.

How can we get the WCC to generate a PDF or PNG?

From the WCC logs we see the following error
20:10 | -1405953 | WARNING: A servlet request, to the URI https://localhost:5002/wcc/jsc-rest/flow/export/pdf?AntiXSRFToken=3A47D, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
INFO   | jvm 1    | 2023/03/24 11:20:10 | -1405953 | Mar 24, 2023 11:20:10 AM com.sun.jersey.spi.container.ContainerResponse logException


INFO   | jvm 1    | 2023/03/24 11:20:10 | -1405953 | SEVERE: Mapped exception to response: 500 (Internal Server Error)
INFO   | jvm 1    | 2023/03/24 11:20:10 | -1405953 | javax.ws.rs.WebApplicationException: java.lang.NoClassDefFoundError: Could not initialize class java.awt.image.BufferedImage
INFO   | jvm 1    | 2023/03/24 11:

 

 

Environment

WCC 12.x
Autosys 12.x

Cause

The JAVA_HOME environment variable for the ROOT user had been updated to a version of Java that was not compatible with WCC
example:
JAVA_HOME=/autosys/CA/SharedComponents/EmbeddedEntitlementsManager/jre

 

Resolution

There are several options to resolve this issue>

option 1:
1) stop the WCC service
2) update the JAVA_HOME environment variable to point back to the <installlocation>/WorkloadAutomationAE/jre/ and export it
3) start the WCC again and test and let me know the results.

Option 2:
unset JAVA_HOME and export it so it is no longer set.

Option 3:
In the WCC wrapper.conf in the environment section set the following
set.JAVA_HOME=<installlocation>/WorkloadAutomationAE/jre/

 

Additional Information

Information to Gather:
1) as the user starting WCC service (Usually ROOT)  please provide the output from the env command
2) Provide where the WCC/jre directory is linked to
3) attach the WCC/tomcat/conf/wrapper.conf to the case for review
4) provide the output from the below command

strings /proc/`ps -few|grep CA_WCC_INSTALL_LOCATION |grep -v grep |awk '{print $2}'`/environ

Note: the above may need to be done as root.