Launching Vision Client: ExceptionInInitializerError: null

Gateway is 8.1.2
On a customer’s site, their workstation, connects to gateway, downloads vision client launcher (Edge browser). Launch. Select project (the only project) ExceptionInInitializerError: null

My laptop gets the client launcher and runs the vision client just fine, albeit I used chrome to get the vision client launcher.

Yeah, it’s pretty vague, but I’ve exhausted our ignition guy’s suggestions. Any help appreciated.

Can you get the log file at ~/.ignition/clientlauncher-data/clientlauncher.log and see if there’s anything in it?

You should see a line like this (but with Windows paths):

INFO  [ClientLauncherFrame           ] [18:25:41,496]: Starting Java with the following parameters:nohup /Users/kevin/Desktop/LogViewer.app/Contents/Resources/jre/bin/java -classpath /Users/kevin/.ignition/clientlauncher-data/launchclient.jar -Djavaws.sr.gateway.addr.0=support-projects.ia.local:8088/main -Djavaws.sr.scope=C -Djavaws.sr.launchts=1616030741220 -Djavaws.sr.main=com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook -Djavaws.sr.platform.edition= -Xms128M -Xmx1024M -Xdock:name=LogViewer -Dsun.java2d.d3d=false -Djavaws.sr.project=LogViewer -Djavaws.sr.screen=0 useBundledJre=true  com.inductiveautomation.ignition.client.launch.BootstrapSwing &

If you copy and paste the command it’s running into a command prompt to try and launch the client you should be able to get more information for us.

Wow that was quick. thanks.

Found log file on the workstation attempting to launch the client (i was not sure if you wanted a log from the gateway)
No hit on ‘ClientLauncherFrame’ in there.
Lots of stuff before this…but it’s the first hit on ‘error’.

Starting class: com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook

Launch failed on step "StartupStep" with error:
java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Unknown Source)
	at java.base/java.security.Provider$Service.getImplClass(Unknown Source)
	at java.base/java.security.Provider$Service.newInstance(Unknown Source)
	at java.base/sun.security.jca.GetInstance.getInstance(Unknown Source)
	at java.base/sun.security.jca.GetInstance.getInstance(Unknown Source)
	at java.base/javax.net.ssl.SSLContext.getInstance(Unknown Source)
	at java.base/javax.net.ssl.SSLContext.getDefault(Unknown Source)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.<init>(Unknown Source)
	at java.net.http/jdk.internal.net.http.HttpClientImpl.create(Unknown Source)
	at java.net.http/jdk.internal.net.http.HttpClientBuilderImpl.build(Unknown Source)
	at java.net.http/java.net.http.HttpClient.newHttpClient(Unknown Source)
	at com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook.downloadProjectInitDescriptor(ClientLaunchHook.java:386)
	at com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook.setup(ClientLaunchHook.java:164)
	at com.inductiveautomation.ignition.client.launch.steps.StartupStep.run(StartupStep.java:108)
	at com.inductiveautomation.ignition.client.launch.AbstractStepRunner.run(AbstractStepRunner.java:33)
	at java.base/java.lang.Thread.run(Unknown Source)

Hmm. Do you have the client launcher configured to launch using the system Java instead? Is there a visionclientlauncher.log file?

There is, first of several errors…

ERROR [LaunchUtil                    ] [2021/04/20 10:51:17]: Launch Error Occurred: Java process launch failed with error code 1: Error: could not open `C:\Users\SCADASOLAR\.ignition\cache\resources\runtimes\11.0.9\lib\jvm.cfg'

Looking there, there is a jvm.cfg file in that path size of 1 KB

Well, one thing worth trying is just deleting that entire 11.0.9 folder and then try launching again.

2 Likes

Thank you very kindly.