Getting "Exception: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager calling method" while trying to generate the APM workstation report.
search cancel

Getting "Exception: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager calling method" while trying to generate the APM workstation report.

book

Article ID: 366711

calendar_today

Updated On:

Products

DX Application Performance Management

Issue/Introduction

While trying to generate the APM workstation report , the report did not generated and thrown some exception.

Below is the detail error message found from Introscope EnterpriseManager.log related to it. 

 ERROR:

[PO:main Mailman 3] [Manager.MessageService] Exception: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.reporting.common.IReportService.fillSmartReport, v1, [[SessionToken|key: <token_key_number>, po: Workstation_0.client_main], SmartReportsTemplate[com.wily.introscope.util.LocalizedStringMap, {null=Build&Release}]], source: Workstation_0.client_main:4825, remoteHost: Node=Workstation_0, Address=<IP:port> Type=socket}

 

Environment

APM 10.8

OS Linux

Cause

Java relate issue .

Resolution

But it did not helped here .

 

We found that the jre that we shipped with 10.8 didn't shipped with fontmanager and libfreetype. 

Even installing those didn't help. we got the below exception.

 [ERROR] [PO:main Mailman 8] [Manager.MessageService] Exception: java.lang.UnsatisfiedLinkError: /opt/APM/Introscope10.8.0.27/jre/lib/amd64/libfontmanager.so: /opt/CA/SharedComponents/EmbeddedEntitlementsManager/bin/libz.so: version `ZLIB_1.2.9' not found (required by /lib64/libpng16.so.16) calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.reporting.common.IReportService.fillSmartReport, v1, [[SessionToken|key: -<token_key_number>, po: Workstation_16.client_main], SmartReportsTemplate[com.wily.introscope.util.LocalizedStringMap, {null=Connected Agent Report}]], source: Workstation_16.client_main:4697, remoteHost: Node=Workstation_16, Address=<ip:port>, Type=socket}

 

 [ERROR] [PO:main Mailman 3] [Manager.MessageService] Exception: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager calling method: com.wily.isengard.messageprimitives.service.MessageServiceCallMessage: {com.wily.reporting.common.IReportService.fillSmartReport, v1, [[SessionToken|key: -<Token_Key_Number>, po: Workstation_16.client_main], SmartReportsTemplate[com.wily.introscope.util.LocalizedStringMap, {null=Build&Release}]], source: Workstation_16.client_main:4698, remoteHost: Node=Workstation_16, Address=<ip: port>, Type=socket}

 

So we switched the JRE to 1.8_192 instead of default shipped with EM 1.8_322 and It worked.