APM 10.7 HF84 - Dashboards not loading correctly or take a long time in Webview when they contain bar charts
search cancel

APM 10.7 HF84 - Dashboards not loading correctly or take a long time in Webview when they contain bar charts

book

Article ID: 232231

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope) DX Application Performance Management

Issue/Introduction

After applying Hotfix 84, we have issues in WebView, dashboards takes a long time to show up.  This only affect dashboards containing bar charts. When changing the visualization from bar chart to graph in these dashboards, the same dashboards (but without bar charts) show up correctly without delay.  In the workstation, the dashboards are working fine.

The Webview logs show some warnings regarding timeouts:

[WARN] [WebView] Timeout while retrieving data for dashboard:...

also, below repeated NPE ERRORs are reported in the WV log:

 

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
    at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
    at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
    at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
    at sun.font.SunFontManager$2.run(SunFontManager.java:441)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.SunFontManager.<init>(SunFontManager.java:386)
    at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
    at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
    at sun.reflect.GeneratedConstructorAccessor140.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
    at java.awt.Font.getFont2D(Font.java:491)
    at java.awt.Font.getFontName(Font.java:1279)
    at java.awt.Font.getFontName(Font.java:1261)
    at com.wily.introscope.ui.PrettyFullAttributeLabel.updateToolTipText(PrettyFullAttributeLabel.java:106)

Environment

APM 10.7 HF84

Cause

From the call stack, we can see the NPE was thrown from the JRE (sun.awt.FontConfiguration.getVersion).

This happens when the font directory that Adopt OpenJDK should provide does not exist

Resolution

Install fontconfig package in RHEL 7.7 server using the below commands:

yum install fontconfig
yum install dejavu-sans-font


Additional Information

https://github.com/AdoptOpenJDK/openjdk-docker/issues/75