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

Jiri Vanek jvanek at redhat.com
Tue Feb 11 04:30:16 PST 2014


On 02/05/2014 09:36 AM, Min Hua wrote:
> When executing
> http://java.net/projects/electric/downloads/download/electric.jnlp
> always get the following errors:

hhmhm, both

http://java.net/projects/electric/downloads/download/electric.jnlp
http://java.net/projects/electric/downloads/download/WebStartFiles/electricAnt.jnlp

are valid XML and even had have the same issue.

This seems to me like same issue  - http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1635

With difference that after convert (suggested workarround) , the ITW parse JNLP , but die later.

I'm in temptation to add switch to javaws, which will allow to select encoding directly.

You may try to play around the iconv  worakround, and I may try to find soemthing more suitable in ITW to deal with this kind of issue.

J.
>
> 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:472)
> 	at net.sourceforge.jnlp.Launcher.launch(Launcher.java:278)
> 	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:211)
> 	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
> Caused by: net.sourceforge.jnlp.ParseException: Invalid XML document syntax.
> 	at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1312)
> 	at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:206)
> 	at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:190)
> 	at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:175)
> 	at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:161)
> 	at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:464)
> 	... 5 more
> Caused by: net.sourceforge.nanoxml.XMLParseException: XML Parse Exception
> during parsing of a html element at line 1: Expected: /
> 	at net.sourceforge.nanoxml.XMLElement.expectedInput(XMLElement.java:1126)
> 	at net.sourceforge.nanoxml.XMLElement.scanElement(XMLElement.java:986)
> 	at net.sourceforge.nanoxml.XMLElement.scanElement(XMLElement.java:967)
> 	at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:512)
> 	at net.sourceforge.nanoxml.XMLElement.parseFromReader(XMLElement.java:464)
> 	at net.sourceforge.jnlp.Parser.getRootNode(Parser.java:1308)
> 	... 10 more
>



More information about the distro-pkg-dev mailing list