Oneclick Console Will Not Launch After Upgrading to 22.2.2+
search cancel

Oneclick Console Will Not Launch After Upgrading to 22.2.2+

book

Article ID: 254891

calendar_today

Updated On:

Products

DX NetOps CA Spectrum

Issue/Introduction


After having upgraded Spectrum to 22.2.2 the OneClick Console does not launch properly. The console opens however, all the panes are blank

 




When launching with Java Debug Console enabled (See Additional Info) the following errors are seen

Java Web Start 11.351.2.10
Using JRE version 1.8.0_351-b10 Java HotSpot(TM) 64-Bit Server VM
JRE expiration date: 2/18/23 12:00 AM
console.user.home = C:\Users\johnny.doughnuts
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
CacheEntry[https://OneClickServer.acme.net/spectrum/cryptoj.jnlp]: updateAvailable=true,lastModified=Mon Nov 21 14:09:01 EST 2022,length=-1
Attempting to remove cryptography restrictions
Successfully removed cryptography restrictions
java.lang.NoClassDefFoundError: org/apache/commons/collections4/map/ListOrderedMap
 at com.aprisma.spectrum.app.util.attribute.AttributeColumnMap.<init>(AttributeColumnMap.java:23)
 at com.aprisma.spectrum.app.alarm.client.ClientAlarmTableModel.<clinit>(ClientAlarmTableModel.java:67)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at com.aprisma.spectrum.app.util.context.ContextFactory.registerContextObjects(ContextFactory.java:587)
 at com.aprisma.spectrum.app.client.jnlp.ClientAppBase.initialize(ClientAppBase.java:866)
 at com.aprisma.spectrum.app.client.jnlp.ClientAppBase.<init>(ClientAppBase.java:507)
 at com.aprisma.spectrum.app.client.jnlp.ClientAppBase.<init>(ClientAppBase.java:484)
 at com.aprisma.spectrum.app.console.client.ConsoleApp.<init>(ConsoleApp.java:242)
 at com.aprisma.spectrum.app.console.client.ConsoleApp.mainImpl(ConsoleApp.java:559)
 at com.aprisma.spectrum.app.console.client.ConsoleApp$3.run(ConsoleApp.java:503)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$500(Unknown Source)
 at java.awt.EventQueue$3.run(Unknown Source)
 at java.awt.EventQueue$3.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections4.map.ListOrderedMap
 at java.net.URLClassLoader.findClass(Unknown Source)
 at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at com.sun.jnlp.JNLPClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 ... 25 more

Environment

Release : 22.2

Cause


The installer failed to remove an old jar file

$SPECROOT/tomcat/webapps/spectrum/lib

We can see the commons-collections.jar file has an older date and was not removed by the installer. In 22.2.2+ OneClick no
    longer uses commons-collections.jar as this is now replaced by commons-collections4-4.4.jar.

Resolution


1) stop tomcat
       cd $SPECROOT/tomcat/bin/
       ./stopTomcat.sh

2) Remove the old jar file commons-collections.jar file from the $SPECROOT/tomcat/webapps/spectrum/lib/ folder.
      ** Make sure that this is either moved outside of the Spectrum install area or deleted. Do not simply rename it in the currently directory.

3) start tomcat
       cd $SPECROOT/tomcat/bin/
       ./startTomcat.sh

4) Download a new oneclick.jnlp file using the 'Start Console' link on the OneClick Web Page. Previous copies will have the old jar file listed and
        then want the file to proceed.

Additional Information


To Enable / Show the Java Console when the OneClick Console Launches 

- Open Windows Control Panel

- Click and Open the 'Java' Applet

- Select the 'Advanced' Tab

- Under 'Java Console' Select 'Show Console'

- Optional, Under 'Debugging' enable 'Tracing' and 'Logging'

- Click 'Ok'


 

 

To Disable, select 'Hide Console'

Attachments