-
Bug
-
Resolution: Incomplete
-
P3
-
None
-
8u92, 9
-
x86_64
-
windows_7
FULL PRODUCT VERSION :
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) Client VM (build 25.92-b14, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
When trying to start a Webstart application generated in NetBeans,
using as codebase a local directory and the launch.jnlp file generated
by NetBeans (see "Source code for an executable test case:") ,
javaws.exe throws an exception:
java.lang.NumberFormatException: For input string: "\Users\u60ws\Documents\NetBeansProjects\EMCOSClient\dist"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Generate a Webstart application in NetBeans 8.1 and try to start
it with javaws with codebase being a local directory.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Webstart application should be started
ACTUAL -
Webstart throws a NumberFormatException
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.NumberFormatException: For input string: "\Users\u60ws\Documents\NetBeansProjects\EMCOSClient\dist"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.sun.deploy.security.DeployManifestChecker.verifyCodebaseEx(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verifyCodebase(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
NetBeans generated .jnlp file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/u60ws/Documents/NetBeansProjects/EMCOSClient/dist/" href="launch.jnlp" spec="1.0+">
<information>
<title>EMCOSClient</title>
<vendor>u60ws</vendor>
<homepage href=""/>
<description>EMCOSClient</description>
<description kind="short">EMCOSClient</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se java-vm-args="-Djnlp.environment=development -Xmx1024m" version="1.7+"/>
<jar href="EMCOSClient.jar" main="true"/>
<extension href="jnlpcomponent1.jnlp"/>
</resources>
<application-desc main-class="de.man.mn.pst.emcos.PPVMain">
</application-desc>
</jnlp>
---------- END SOURCE ----------
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) Client VM (build 25.92-b14, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
When trying to start a Webstart application generated in NetBeans,
using as codebase a local directory and the launch.jnlp file generated
by NetBeans (see "Source code for an executable test case:") ,
javaws.exe throws an exception:
java.lang.NumberFormatException: For input string: "\Users\u60ws\Documents\NetBeansProjects\EMCOSClient\dist"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Generate a Webstart application in NetBeans 8.1 and try to start
it with javaws with codebase being a local directory.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Webstart application should be started
ACTUAL -
Webstart throws a NumberFormatException
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.NumberFormatException: For input string: "\Users\u60ws\Documents\NetBeansProjects\EMCOSClient\dist"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at com.sun.deploy.security.DeployManifestChecker.verifyCodebaseEx(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verifyCodebase(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at com.sun.javaws.Launcher.prepareResources(Unknown Source)
at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main.access$000(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
NetBeans generated .jnlp file:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/u60ws/Documents/NetBeansProjects/EMCOSClient/dist/" href="launch.jnlp" spec="1.0+">
<information>
<title>EMCOSClient</title>
<vendor>u60ws</vendor>
<homepage href=""/>
<description>EMCOSClient</description>
<description kind="short">EMCOSClient</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se java-vm-args="-Djnlp.environment=development -Xmx1024m" version="1.7+"/>
<jar href="EMCOSClient.jar" main="true"/>
<extension href="jnlpcomponent1.jnlp"/>
</resources>
<application-desc main-class="de.man.mn.pst.emcos.PPVMain">
</application-desc>
</jnlp>
---------- END SOURCE ----------