This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236765 - Project run with Java Web Start fails
Summary: Project run with Java Web Start fails
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Java Webstart (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-04 13:44 UTC by druta
Modified: 2014-02-14 08:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JWS error message (591.33 KB, image/jpeg)
2013-10-04 13:44 UTC, druta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description druta 2013-10-04 13:44:56 UTC
Created attachment 140807 [details]
JWS error message

Simple Java Application (withNetbeans 7.4 RC1 and Java 7) run with Java Web Start failure;
Java Web Start starts but i get the following error message (see also Attachment):

java.lang.NumberFormatException: For input string: "\nbrojekte\TestJnlp\dist"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Integer.parseInt(Integer.java:492)
	at java.lang.Integer.parseInt(Integer.java:527)
	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.AppPolicy.addPermissions(Unknown Source)
	at com.sun.jnlp.JNLPClassLoader.getTrustedCodeSources(Unknown Source)
	at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
	at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
	at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:358)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:724)
Comment 1 bill7511 2014-02-11 21:55:43 UTC
Hello, same for me on projet tutorial convertPrj https://netbeans.org/kb/73/java/javase-jws.html .Local execution. Launching the jar works directely, but not from the launch.jnlp.

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; fr_CH (nb)
User directory: C:\Users\Benoit\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\Benoit\AppData\Local\NetBeans\Cache\7.4

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/Benoit/Documents/NetBeansProjects/ConverterPrj/dist/" href="launch.jnlp" spec="1.0+">
    <information>
        <title>ConverterPrj</title>
        <vendor>Benoit</vendor>
        <homepage href=""/>
        <description>ConverterPrj</description>
        <description kind="short">ConverterPrj</description>
        <offline-allowed/>
    </information>
    <update check="background"/>
    <security>
        <all-permissions/>
    </security>
    <resources>
        <j2se version="1.5+"/>
        <jar href="ConverterPrj.jar" main="true"/>
    </resources>
    <application-desc main-class="Converter">
    </application-desc>
</jnlp>
Comment 2 Tomas Zezula 2014-02-14 08:12:12 UTC
Not a NB issue, javaws problem.I've tested https://netbeans.org/kb/73/java/javase-jws.html with JDK 1.7.0_45 and works fine.Please update JDK   JRE.