URISyntaxException when opening an URL with two "#" symbol using OpenJDK Webstart

Solution Verified - Updated -


  • When opening an URL with two "#" symbols using OpenJDK Webstart, for example: https://www.example.com/pdf?name=temp#.pdf#namedest=something-important, the following exception is thrown:
java.net.URISyntaxException: Illegal character in fragment at index 129: https://www.example.com/pdf?name=temp#.pdf#namedest=something-important
at java.net.URI$Parser.fail(URI.java:2847)
at java.net.URI$Parser.checkChars(URI.java:3020)
at java.net.URI$Parser.parse(URI.java:3066)
at java.net.URI.<init>(URI.java:588)
at java.net.URL.toURI(URL.java:964)
at net.sourceforge.jnlp.services.XBasicService.showDocument(XBasicService.java:216)


  • OpenJDK
    • 8
    • Webstart/IcedTea-Web

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In