Spectrum OneClick WebApp failed to start.

book

Article ID: 145405

calendar_today

Updated On:

Products

CA Spectrum CA eHealth

Issue/Introduction

When we try to start the OneClick Webapp from the OneClick web page, we see a short attempt to start webSwing but then only the OneClick web page will be shown.
The catalina.out shows the following entry each time you try to start the Webapp:

Caused by: java.lang.Exception: java.lang.RuntimeException: Loading TTF font /spectrum/webtomcat/webswing/fonts/RobotoSlab-Regular.ttf failed .

But when you look in the filesystem you cann see the font is there:

ls -l  /spectrum/webtomcat/webswing/fonts/
total 440
-rw-r--r-- 1 spectrum spectrum 114624 Oct  4 02:43 RobotoMono-Regular.ttf
-rw-r--r-- 1 spectrum spectrum 162876 Oct  4 02:43 Roboto-Regular.ttf
-rw-r--r-- 1 spectrum spectrum 169064 Oct  4 02:43 RobotoSlab-Regular.ttf


When you take a look at webswing.config you see this font is configured in the same way as the two others, which can be loaded without any problems.

 "fontConfig" : {

        "dialog" : "${SPECROOT}/webtomcat/webswing/fonts/Roboto-Regular.ttf",

        "dialoginput" : "${SPECROOT}/webtomcat/webswing/fonts/RobotoMono-Regular.ttf",

        "serif" : "${SPECROOT}/webtomcat/webswing/fonts/RobotoSlab-Regular.ttf"

      },

Cause

This is not a known issue at other sites and is likely a local failure of the file e.g. the ttf file may have become corrupted.

Environment

Release : 10.4.1

Resolution

The ttf is used for exporting the WebApp to pdf which most customers do not use, so this functionality can be removed in this situation.


Make a copy of SPECROOT/webtomcat/bin/webswing.config

remove this line.
"serif" : "${SPECROOT}/webtomcat/webswing/fonts/RobotoSlab-Regular.ttf"

save and retry.
You will need to stop the webTomcat service to do this.