After upgrading to Java 9 and OneClick does not load properly

Document ID : KB000009236
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

After upgrading Java to version 9, the OneClick Console does not load and produces the following exception:

java.lang.NullPointerException 

at com.aprisma.spectrum.app.client.jnlp.ClientAppBase.initCodeBase(ClientAppBase.java:719) 

at com.aprisma.spectrum.app.console.client.ConsoleApp.main(ConsoleApp.java:454) 

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 

at java.base/java.lang.reflect.Method.invoke(Unknown Source) 

at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeApplication(Unknown Source) 

at jdk.javaws@9.0.1/com.sun.javaws.Launcher.executeMainClass(Unknown Source) 

at jdk.javaws@9.0.1/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) 

at jdk.javaws@9.0.1/com.sun.javaws.Launcher.run(Unknown Source) 

at java.base/java.lang.Thread.run(Unknown Source) 

Environment:
CA Spectrum
Cause:

From the Java documentation, Java EE modules are deprecated in JDK9 and are going to be removed in the later versions.

Resolution:

A Spectrum code change is required and Java 9 will be officially supported in the Spectrum 10.3.0 release. For any current GA release of Spectrum, Java 8 will need to be used.