Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal: Read Error: Could not read or parse the JNLP file #707

Closed
ulooky opened this issue Sep 23, 2020 · 18 comments
Closed

Fatal: Read Error: Could not read or parse the JNLP file #707

ulooky opened this issue Sep 23, 2020 · 18 comments

Comments

@ulooky
Copy link

ulooky commented Sep 23, 2020

I am getting the following error when I run javaws on my asdm.jnlp file
asdm.zip
asdm.zip

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:487)
at net.sourceforge.jnlp.Launcher.launch(Launcher.java:287)
at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:67)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:258)
at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:62)
at java.security.AccessController.doPrivileged(Native Method)
at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:198)
Caused by: java.io.IOException: java.lang.NullPointerException: name can't be null
at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:318)
at net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:240)
at net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:215)
at net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:200)
at net.sourceforge.jnlp.JNLPFile.(JNLPFile.java:186)
at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:451)
... 6 more
Caused by: java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:209)
at java.io.FilePermission.(FilePermission.java:310)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.io.FileInputStream.(FileInputStream.java:127)
at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:316)
... 11 more

@sclassen
Copy link
Contributor

This error happens when ITW is unable to download the resources. Could you please attach the log files for further debugging this. Thanks

@jastax
Copy link

jastax commented Dec 9, 2020

I'm running into a same/similars issue from time to time (using OWS 1.3.1). Sometimes launching the app works, sometimes this or a similar error shows up. It seems to happen more often when I'm trying to launch the application multiple times. It could be a race condition on the download / cache. Maybe it's a problem with download speed dropping below a certain threshold (or 0 for short bursts?).

I've not yet have enough time to further investigate and I don't know when I will be able to. Just wanted to give a heads up, just in case it could help.

There are some Exceptions in terms of using the cache to be found: java.io.FileNotFoundException: C:\Users\xxxxx.cache\icedtea-web\cache\3\236\slf4j-api.jnlp (Das System kann die angegebene Datei nicht finden)

I can also see some logs that I dont' understand. The cache files seem to be deleted? Why does this happen?
This could be the reason (one application starting and trying to use the jar, other application deleting from cache?)

[ITW-CORE][2020-12-09 14:27:48.756 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\3\236
[ITW-CORE][2020-12-09 14:27:48.757 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\3\236.info
[ITW-CORE][2020-12-09 14:27:48.770 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\2\187
[ITW-CORE][2020-12-09 14:27:48.771 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\2\187.info
[ITW-CORE][2020-12-09 14:27:48.772 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\2\187\jetty-servlet-9.4.31.v20200723.jar
[ITW-CORE][2020-12-09 14:27:48.775 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\2\186
[ITW-CORE][2020-12-09 14:27:48.776 MEZ][DEBUG][net.adoptopenjdk.icedteaweb.io.FileUtils] Deleting: C:\Users\xxxx.cache\icedtea-web\cache\2\186.info
......

@Jamila891
Copy link

can you provide the log files? The stack trace is not helpful for us to solve this problem.

@jastax
Copy link

jastax commented Dec 11, 2020

I've launched the application multiple times. Launching it once seems to work. Launching it twice at the same time seems to lead to problems.

log.zip

@sclassen
Copy link
Contributor

@jastax
Thank you for the logs. I found the cause of your problem. A fix is here #728
Unfortunately it is a different one from the original reporter.

The next release is currently planned for April 2021.

@sclassen
Copy link
Contributor

@ulooky if you still need help on this issue, we would need log files from your case.

@jastax
Copy link

jastax commented Dec 18, 2020

Hi @sclassen that's great, thank you.

I'm wondering about why the cache is even deleted though?

Is there a way to speed up the release? We'd like to use OWS 1.3.x in production starting in Q1/21.

@sclassen
Copy link
Contributor

We do offer different support options.
Details can be found on the official homepage: https://openwebstart.com/support/
There is also the possibility to have a customized splash screen.

For the free/community version there is only the half year release schedule.

@sclassen
Copy link
Contributor

I will take a second look at the cache deletion over the weekend

@sclassen
Copy link
Contributor

Just one question:
Have you set a limit to the cache size?
You can see the current settings in the settings UI on the "cache" tab.

@jastax
Copy link

jastax commented Dec 21, 2020

I'm sorry, I'll only have access to the windows computer in January. I don't think the cache limit is set / that low though. I'll check it next month. My team lead has already requested support options pricing.

@jastax
Copy link

jastax commented Jan 7, 2021

cache

@Jamila891
Copy link

@jastax we are going to take a deeper look into this bug. We'll keep you updated.

@jastax
Copy link

jastax commented Jan 21, 2021

@Jamila891 Thanks!

We do offer different support options.
Details can be found on the official homepage: https://openwebstart.com/support/
There is also the possibility to have a customized splash screen.

For the free/community version there is only the half year release schedule.

We have booked a support option now (LVM). I'd like to test whether the fix solves the problems - are you going to release it soon? :)

@jastax
Copy link

jastax commented Jan 21, 2021

(We are using OWS, so the fixed Version would need to be applied there too)

@sclassen
Copy link
Contributor

We will do a release today. It will be available tomorrow and contains the fix for your issue.
Also we added more logging for the cache cleanup which will help debug the reason why in your setup the application is removed from the cache.

@jastax
Copy link

jastax commented Jan 26, 2021

@sclassen That's great, thanks!

@sclassen
Copy link
Contributor

Can you please open a new issue for the cache cleanup if you can still reproduce the behavior with 1.3.2
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants