JNLP Exception: Server returned HTTP response code: 401 When Launching the OneClick Console From a Shortcut

book

Article ID: 209891

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

 

After having upgraded Spectrum to 10.4.3 (NetOps 20.2.7) the OneClick console when launched from a desktop shortcut no longer works. It prompts
  for a login and then returns an exception with a HTTP 401

 

 

 

***EXCEPTION TAB***
JNLPException[category: Download Error : Exception: java.io.IOException: Server returned HTTP response code: 401 for URL: https://oneclickServer:8443/spectrum/oneclick.jnlp : LaunchDesc: null
 at com.sun.javaws.Main.launchApp(Unknown Source)
 at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
 at com.sun.javaws.Main.access$000(Unknown Source)
 at com.sun.javaws.Main$1.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://oneclickServer:8443/spectrum/oneclick.jnlp
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
 at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
 at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
 at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
 at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
 ... 5 more


**WRAPPER EXCEPTION TAB****
java.io.IOException: Server returned HTTP response code: 401 for URL: https://oneclickServer:8443/spectrum/oneclick.jnlp
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
 at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
 at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
 at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
 at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
 at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
 at com.sun.javaws.Main.launchApp(Unknown Source)
 at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
 at com.sun.javaws.Main.access$000(Unknown Source)
 at com.sun.javaws.Main$1.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

**CONSOLE TAB**
Java Web Start 11.281.2.09
Using JRE version 1.8.0_281-b09 Java HotSpot(TM) 64-Bit Server VM
JRE expiration date: 5/17/21 12:00 AM
console.user.home = C:\Users\john.dough
----------------------------------------------------
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>
----------------------------------------------------
#### Java Web Start Error:
#### Unable to load resource: https://oneclickServer:8443/spectrum/oneclick.jnlp

 

 

 

 

Cause

 

Starting in Spectrum 10.4.3 (20.2.7) the oneclick.jnlp file on the OneClick server now requires authentication to download the file. In prior releases
   this file could be accessed without authentication.


Environment

Release : 10.4.3 (20.2.7)+

Component : Spectrum Core / OneClick

Resolution


The javaws.exe when run from the command line passing the full URL to the oneclick.jnlp for some reason tries to
  issues a second HTTP GET after the initial request. The second request does not prompt/nor send authenticationa nd
  the request fails.


Workaround: Copy the oneclick.jnlp file locally to the desktop and launch the console from the local oneclick.jnlp.


Note: Be sure to periodically update the oneclick.jnlp file on the desktop so as to pick up any changes made on the server side.

Attachments