12.1 Web Viewer wont display any pages and throws exceptions at startup
search cancel

12.1 Web Viewer wont display any pages and throws exceptions at startup

book

Article ID: 187281

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

This is a new install of CA OM Web Viewer V12.1  
The started task comes up and takes an exception and won't display any pages.

SEVERE: Exception starting filter AddXFrameOptionResponse                                       
ava.lang.ExceptionInInitializerError                                                           
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:148)                                 
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:137)                 
at com.ca.erm.webviewer.filter.AddXFrameOptionResponse.init(AddXFrameOptionResponse.java:85)   
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)   
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4561)             
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5204)           
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)                        
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)             
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)                     
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)                       
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)                       
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)                  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522)                     
at java.util.concurrent.FutureTask.run(FutureTask.java:277)                                    
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)             

 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 
 at java.lang.Thread.run(Thread.java:812)                                           
Caused by: java.lang.NumberFormatException: For input string: "50  "                
 at java.lang.NumberFormatException.forInputString(NumberFormatException.java:76)   
 at java.lang.Integer.parseInt(Integer.java:592)                                    
 at java.lang.Integer.parseInt(Integer.java:627)                                    
 at com.ca.erm.webviewer.util.WVProfile.getProfileInt(WVProfile.java:432)           
 at com.ca.erm.webviewer.util.WVProfile.<clinit>(WVProfile.java:286)                

and line 50 has:

/opt/CA_Web_Viewer12/V1201/config/WVProfile.properties

000050 LICENSE.SystemID=MFXXXX1           
000051 LICENSE.DRASServer=MFXXXX1:DRASSRV 

and

/opt/CA_Web_Viewer12/V1201/tomcat/apache-tomcat-8.5.4/webapps/CAOMWebViewer12/config/WVProfile

has the same.

Environment

Release : 12.1

Component : CA OUTPUT MANAGEMENT WEB VIEWER FOR ALL PLATFORMS

Cause

Unprintable or Non-Numeric characters for a certain WVProfile.properties parameter value 

Resolution

From the log provided, it was determined that the Profile.properties file contained an invalid parameter setting - more to the point, a non-numeric where only a numeric is permitted.
Specifically, peruse line 10. Looking at it here, it appears to read:
000010 REPORTLIST.NumPerCacheDBQuery=50
Double check the WVProfile.properties file, even editing the file, over-typing the values, making sure there are no trailing spaces or other unprintable characters, saving the file and then recycling Tomcat and testing once again.