<AWT Dev> JNLP with & is good XML but gives Java Console message: The reference to entity must end with the '; ' delimiter
Burk, Bill
william.burk at kodak.com
Fri Apr 3 00:53:54 UTC 2015
While experimenting with Java 8 Update 60 early access release, I found that our normally working JNLP file shows warning and exception in Java console.
This seems to be an incorrect warning because I believe the XML of the JNLP is well formed.
Downloaded Java 8 Update 60 from https://jdk8.java.net/download.html
JNLP Tested at http://www.w3schools.com/xml/xml_validator.asp
Pasting JNLP and clicking Validate gives
Message from webpage, No errors found.
Tried both Mac and PC
Mac OS X 10.9.3
Java Web Start 11.60.2.08
Using JRE version 1.8.0_60-ea-b08 Java HotSpot(TM) 64-Bit Server VM ...
Windows 7 Professional Service Pack 1 x64
Java Web Start 11.60.2.08
Using JRE version 1.8.0_60-ea-b08 Java HotSpot(TM) 64-Bit Server VM
Java Console:
-----------
WARNING: the jnlp file is invalid and will be blocked in a future release.
Exception: org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 194; The reference to entity "SessionId" must end with the ';' delimiter.
-----------
JNLP:
<property name="jnlp.smartreview.annotationReportUrl" value="http://koesd2lsrsdev6.ekc1.ekc.kodak.com/TwAmWeb/TW_Views/AnnotationReport.asp?CustId=6BB67BC62F3A02A32F3A02A32F3A02A4&SessionId=B637F5603DF15745B902A5540A0C7DB0" />
Tried changing to a raw ampersand.
Expected Result=Actual Result: Issue replicates when JNLP contains & and this leads to warning and exception.
Added an additional amp; even though this seems like the wrong thing to do.
Expected Result: It might work.
Actual Result: It did work. & got rid of the warning and exception in Java console.
Renamed JNLP to .XML and opened in Internet Explorer
Expected Result=Actual Result: XML parsed and displays with good structure, & has been turned into &
<property value="http://koesd2lsrsdev6.ekc1.ekc.kodak.com/TwAmWeb/TW_Views/AnnotationReport.asp?CustId=6BB67BC62F3A02A32F3A02A32F3A02A4&SessionId=668228DB1816B74F96D1461C33BBAEF3" name="jnlp.smartreview.annotationReportUrl"/>
REGRESSION INFORMATION:
Issue does not occur on previous Java 8 Update 40
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
Regards,
Bill Burk
William E. Burk │ Product Support Specialist, KODAK DESIGN2LAUNCH SOLUTIONS
Kodak Technology Solutions
Eastman Kodak Company
william.burk at kodak.com │ 203.653.2582 Office
More information about the awt-dev
mailing list