After upgrading to Java 9 and OneClick does not load properly
search cancel

After upgrading to Java 9 and OneClick does not load properly

book

Article ID: 9236

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

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 [email protected]/com.sun.javaws.Launcher.executeApplication(Unknown Source) 

at [email protected]/com.sun.javaws.Launcher.executeMainClass(Unknown Source) 

at [email protected]/com.sun.javaws.Launcher.doLaunchApp(Unknown Source) 

at [email protected]/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.