Page 1 of 1

unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 15 Jun 2022, 09:01
by hacklhar
we are unable to launch a jnlp File from here https://keylink2.ubs.com/app/KL1/P0_INT ... aciiz.html

Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://keylink2.ubs.com/ErrorRedirector
Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://keylink2.ubs.com/ErrorRedirector
isCurrent:lastModified cache:0 actual:0
isCurrent:isCached true
isCached: remote:312 cached:312
Downloading file: https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp into: C:\Users\xxx\.cache\icedtea-web\cache\46\https\keylink.ubs.com\app\KL1\P0_INT\accesscard.jnlp
Downloading https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp using https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp (encoding : null)
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink2.ubs.com/ErrorRedirector
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink2.ubs.com/error/E9009.html
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink2.ubs.com:443/app/KL1/P0 ... 1654849129
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or parse the JNLP file. You can try to download this file manually and send it as bug report to IcedTea-Web team. at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:489) at net.sourceforge.jnlp.Launcher.launch(Launcher.java:289) at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:67) at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:280) at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63) at java.security.AccessController.doPrivileged(Native Method) at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:220) Caused by: java.io.IOException: java.lang.NullPointerException: name can't be null at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:319) at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:241) at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:215) at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:200) at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:186) at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:453) ... 6 more Caused by: java.lang.NullPointerException: name can't be null at java.io.FilePermission.init(FilePermission.java:209) at java.io.FilePermission.<init>(FilePermission.java:310) at java.lang.SecurityManager.checkRead(SecurityManager.java:888) at java.io.FileInputStream.<init>(FileInputStream.java:127) at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:317) ... 11 more
netx: Read Error: Could not read or parse the JNLP file. (java.lang.NullPointerException: name can't be null (name can't be null))
Selecting proxy for: https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
done https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
Connecting https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
net.sourceforge.jnlp.cache.ResourceDownloader$RedirectionException: The resource https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp is being redirected (302) to http://www.ubs.com/__key/servicefailure. This is disabled by default. If you wont to allow it, run javaws with -allowredirect parameter. at net.sourceforge.jnlp.cache.ResourceDownloader.findBestUrl(ResourceDownloader.java:317) at net.sourceforge.jnlp.cache.ResourceDownloader.initializeOnlineResource(ResourceDownloader.java:132) at net.sourceforge.jnlp.cache.ResourceDownloader.initializeResource(ResourceDownloader.java:124) at net.sourceforge.jnlp.cache.ResourceDownloader.run(ResourceDownloader.java:113) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)
Resource location=https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING got redirect 302 code for HEAD request for https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp adding http://www.ubs.com/__key/servicefailure to list of possible urls
Removed sun.net.www.protocol.https.DelegateHttpsURLConnection:https://keylink2.ubs.com/ErrorRedirector
Disconnecting sun.net.www.protocol.https.DelegateHttpsURLConnection:https://keylink2.ubs.com/ErrorRedirector
Key : Location ,Value : [http://www.ubs.com/__key/servicefailure]
Key : Content-Type ,Value : [text/html; charset=utf-8]
Key : Date ,Value : [Fri, 10 Jun 2022 08:18:49 GMT]
Key : P3P ,Value : [CP="OTI DSP CURa OUR LEG COM NAV INT"]
Key : Content-Length ,Value : [312]
Key : Pragma ,Value : [no-cache]
Key : Connection ,Value : [close]
Key : Server ,Value : [Apache]
Key : Cache-Control ,Value : [no-cache]
Key : Strict-Transport-Security ,Value : [max-age=31536000]
Key : null ,Value : [HTTP/1.1 302 Found]
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink2.ubs.com/ErrorRedirector
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink2.ubs.com/error/E9009.html
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink2.ubs.com:443/app/KL1/P0 ... 1654849128
Selected proxies: [HTTP @ /x.x.x.x:80, HTTP @ /x.x.x.x:80, DIRECT]
Selecting proxy for: https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
done https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
Adding sun.net.www.protocol.https.DelegateHttpsURLConnection:https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
Connecting https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp
All possible urls for location=https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp state=PRECONNECT CONNECTING PREDOWNLOAD PROCESSING : [https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp, https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp]
Finding best URL for: https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp : DownloadOptions[use pack: false; use version: false]
good - your JRE - 1.8.0_322 - match requested JRE - 1.6+
Acceptable vendor tag found, contains: UBS
Acceptable title tag found, contains: KeyLink International
Jars not ready to provide attribute Application-Name
Description: null
Homepage: null
line: 3

line: 2 <jnlp codebase="https://keylink.ubs.com/app/KL1/P0_INT/client/" href="https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp" xmlns="http://www.w3.org/1999/xhtml"> <information> <title>KeyLink International</title> <vendor>UBS</vendor> </information> <resources> <j2se version="1.6+" java-vm-args="{java-vm-args}"></j2se> <jar href="keylinkportal-init-12.3.0.11.jar" main="true"></jar> </resources> <security> <all-permissions></all-permissions> </security> <applet-desc name="KeyLink Applet" main-class="com.ubs.swidKL2.v1.init.KLW" width="1260" height="850"> <param valuetype="data" name="type" value="application/x-java-applet;version=1.6"></param> <param valuetype="data" name="codebase" value="https://keylink.ubs.com/app/KL1/P0_INT/client/"></param> <param valuetype="data" name="ServerURL" value="https://keylink.ubs.com/acint/"></param> <param valuetype="data" name="code" value="com.ubs.swidKL2.v1.init.KLW"></param> <param valuetype="data" name="archive" value="keylinkportal-init-12.3.0.11.jar"></param> <param valuetype="data" name="Start" value="portal"></param> <param valuetype="data" name="env" value="production"></param> <param valuetype="data" name="sysenv" value="International"></param> <param valuetype="data" name="AuthURL" value="https://keylink.ubs.com/acint/index.html"></param> <param valuetype="data" name="AuthMode" value="accesscardNavis"></param> <param valuetype="data" name="AuthenticationMode" value="accesscardNavis"></param> <param valuetype="data" name="Area" value="internet"></param> <param valuetype="data" name="UserHome" value="USERPROFILE"></param> <param valuetype="data" name="LaunchEmbeded" value="true"></param> <param valuetype="data" name="LoggerLevel" value="WARNING"></param> <param valuetype="data" name="FollowRedirects" value="true"></param> <param valuetype="data" name="FavoriteEnabled" value="true"></param> <param valuetype="data" name="LoginHelpURL" value="https://www.ubs.com/keylink"></param> <param valuetype="data" name="LoginHelpAccessCardURL" value="https://www.ubs.com/global/en/about_us/ ... l"></param> <param valuetype="data" name="HelpURL" value="https://www.ubs.com/microsites/ap/keyli ... m"></param> <param valuetype="data" name="ProxyHelpURL" value="https://www.ubs.com/keylink"></param> <param valuetype="data" name="ReleaseNotesURL" value="https://www.ubs.com/global/en/about_us/ ... l"></param> <param valuetype="data" name="TollFreeURL" value="https://www.ubs.com/global/en/about_us/ ... l"></param> <param valuetype="data" name="SecurityAdviceURL" value="https://www.ubs.com/global/en/about_us/ ... l"></param> <param valuetype="data" name="SecurityRecommendationURL" value="https://www.ubs.com/global/en/about_us/ ... l"></param> <param valuetype="data" name="AdditionalInfoURL" value="https://www.ubs.com/content/dam/interne ... l"></param> <param valuetype="data" name="InteractiveDemoURL" value=""></param> <param valuetype="data" name="HomePageURL" value="https://www.ubs.com/keylink"></param> <param valuetype="data" name="VideoHelpURL" value="https://www.ubs.com/global/en/about_us/ ... l"></param> <param valuetype="data" name="MinJavaVersion" value="1.6.0"></param> <param valuetype="data" name="AmountOfPostponeDays" value="2"></param> <param valuetype="data" name="JavaWarningURL" value=""></param> <param valuetype="data" name="waaskey" value=""></param> <param valuetype="data" name="boxbgcolor" value="white"></param> <param valuetype="data" name="separate_jvm" value="true"></param> <param valuetype="data" name="classloader_cache" value="false"></param> <param valuetype="data" name="cache_option" value="No"></param> </applet-desc> <update check="always" policy="always"></update></jnlp>
<?xml version="1.0" standalone="yes"?>
Using MalformedXMLParser
JNLP file location: C:\Temp\accesscard.jnlp
Proceeding with jnlp
Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type.
java.io.FileNotFoundException: C:\Users\xxx\AppData\Roaming\Mozilla\Firefox\profiles.ini at net.sourceforge.jnlp.browser.FirefoxPreferencesFinder.find(FirefoxPreferencesFinder.java:84) at net.sourceforge.jnlp.browser.BrowserAwareProxySelector.parseBrowserPreferences(BrowserAwareProxySelector.java:151) at net.sourceforge.jnlp.browser.BrowserAwareProxySelector.initFromBrowserConfig(BrowserAwareProxySelector.java:114) at net.sourceforge.jnlp.browser.BrowserAwareProxySelector.initialize(BrowserAwareProxySelector.java:101) at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:293) at net.sourceforge.jnlp.runtime.Boot.init(Boot.java:359) at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:58) at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:280) at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63) at java.security.AccessController.doPrivileged(Native Method) at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:220)
Using the Rhino based PAC evaluator for url http://pac.zscloud.net/xxx/xxx-server.pac
Starting security dialog thread
Forcing of offline set to: false
WARNING: key deployment.system.cachedir has no value, setting to default value
Loading User level properties from: file:/C:/Users/xxx/.config/icedtea-web/deployment.properties
Ico provider registered correctly.
cache: C:\Users\xxx\.cache\icedtea-web file exists:true
config: C:\Users\xxx\.config\icedtea-web file exists: true
System is already following XDG .cache and .config specifications
Using JRE version 1.8.0_322-b06 OpenJDK 64-Bit Server VM (Temurin)
icedtea-web 1.8.8 (b2)

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 15 Jun 2022, 10:31
by Janak Mulani
You seem to be using Icedtea-web and not Open Web Start. Please use Open WebStart and if that does not work send the log file. Please don't copy logs in the post.

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 15 Jun 2022, 13:27
by hacklhar
issue also occurs with Open Web Start, Logs attached

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 16 Jun 2022, 08:21
by Janak Mulani
Could not read or parse the JNLP file at 'file:/C:/Users/Harald/Downloads/accesscard%20(1).jnlp'
Please check if the Jnlp file exists. Also please remove blanks from the jnlp file name.

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 27 Jun 2022, 16:03
by hacklhar
the jnlp FIle exists. same issue if no blanks in the filename

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 29 Jun 2022, 16:17
by Janak Mulani

Code: Select all

could not download resource [l=https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp v=null s=I] from any of theses urls [https://keylink.ubs.com/app/KL1/P0_INT/accesscard.jnlp] caused byExecutionException: java.lang.IllegalStateException: Request returned 302 for URL https://keylink1.ubs.com/ErrorRedirector caused by IllegalStateException: Request returned 302 for URL https://keylink1.ubs.com/ErrorRedirector
There is an error while downloading the jnlp file. Are you able to download using the same url in the browser?

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 30 Jun 2022, 06:51
by hacklhar
yes we are able to download the file using the url from the error message, we already have the jnlp file. But after launching we getting the error from the initial post

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 30 Jun 2022, 11:09
by Janak Mulani
Please enable redirect in OWS as described in the link below :

https://openwebstart.com/docs/OWSGuide. ... _redirects

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 01 Jul 2022, 07:28
by hacklhar
same issue, attached the jnlp for tests at your end

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 24 Apr 2023, 14:45
by FilderLauxi
Is there a solution for this found yet?

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 25 Apr 2023, 07:26
by hacklhar
no problem still exists, we´ll need to use Oracle JRE :(

Re: unable to launch jnlp File - Fatal: Read Error: Could not read or parse the JNLP file

Posted: 26 Apr 2023, 09:10
by Janak Mulani
In the Jnlp, your application is tagged as an Applet. OWS does not support applets.

Code: Select all

<applet-desc name="KeyLink Applet" main-class="com.ubs.swidKL2.v1.init.KLW"		width="1260" height="850">		
You will have to convert your applet to a java application and specify it as <application-desc> in Jnlp to be able to run with OWS