Opening Automation Studio results in java.io.IOException: Stream closed

Document ID : KB000115583
Last Modified Date : 21/09/2018
Show Technical Document Details
Issue:
After implementing custom certificates for the ROC and Automation Studio, trying to open Automation Studio results in an attempt to be launched but then nothing.

Enabling (via Java Control Panel) the Debugging -> Enable tracing/logging and Java console -> Show console, and then launching asap.jnlp again reveals that it stops logging additional information after the following error:
java.io.IOException: Stream closed
at java.io BufferedInputStream.getInIfOpen(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at com.nolio.platform.shared.app.model.AppProperties.init(AppPrperties.java:91)
at com.nolio.platform.shared.app.model.AppProperties. (AppPrperties.java:56)
at com.nolio.platform.shared.app.NolioApp.start(NolioApp.java:253)
at com.nolio.platform.shared.app.NolioApp.lifeCycleDispatcher(NolioApp.java:216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.nolio.patform.shared.signals.BasicCallback.invokeMethod(BasicCallback.java:36)
at com.nolio.platform.shared.signals.RegularCallback.call(RegularCallback.java:18)
at com.nolio.platform.shared.signals.GSDispatcher.dispatch(GDispatcher.java:42)
at com.nolio.platform.shared.signals.GSDispatcher.run(GDispatcher.java:63)
at java.lang.Thread.run(Unknown Source)
Environment:
CA Release Automation 6.6
Windows 2012
Cause:
The command used to create the jar (custom-truststore.jar) was including the parent folder of the targeted nolio.jks. The command was:
  • Executed from a command prompt whose cwd was: C:\Program Files\java\jdk1.8.0_181\bin
  • Run using: jar cvf X:\Temp\custom-truststore.jar X:\Temp\nolio.jks
The output generated by this command is:
added manifest
adding: Temp/nolio.jks

 
Resolution:
Run the command in a way that does not include any folders - only the nolio.jks. For example, here are two ways it can be run and examples of their output that confirm the command worked as expected:
  1. From a command prompt whose cwd is C:\Program Files\java\jdk1.8.0_181\bin, run: jar cfv X:\Temp\custom-truststore.jar -C X:\Temp\ nolio.jks
  2. From a command prompt whose cwd is X:\Temp, run: C:\Program Files\java\jdk1.8.0_181\bin\jar cvf custom-truststore.jar nolio.jks
Both of these commands (note the space between X:\Temp\ and nolio.jks in #1) will return the output:
added manifest
adding: nolio.jks

After this jar file has been signed, copy it to the expected location (webapps/nolio-app/apps/v2.0.0/lib), run the command "javaws -uninstall" on the workstation you are trying to launch ASAP from and then launch Automation Studio again.