[Bug 1395] New: Bug javaws.itweb / icedtea with JNLP

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Apr 15 07:18:59 PDT 2013


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1395

            Bug ID: 1395
           Summary: Bug javaws.itweb / icedtea with JNLP
    Classification: Unclassified
           Product: IcedTea-Web
           Version: unspecified
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: NetX (javaws)
          Assignee: omajid at redhat.com
          Reporter: lcestari at redhat.com
                CC: unassigned at icedtea.classpath.org

Created attachment 855
  --> http://icedtea.classpath.org/bugzilla/attachment.cgi?id=855&action=edit
Reproducer of the problem

Description of problem:
The /usr/bin/javaws.itweb (icedtea) can't use JNLP. I 

How reproducible:
Can follow the mkyong guide or the files attached.
http://www.mkyong.com/java/java-web-start-jnlp-tutorial-unofficial-guide/

Steps to Reproduce:
Create a JNLP and try to use it.

Actual results:
An error message appears and the VM halts.

Expected results:
Open a Swing window.

Additional info:
Error message when executing the program->
lcestari at dhcp-32-133 ROOT$ /usr/bin/javaws.itweb -verbose Test.jnlp 
No User level deployment.properties found.
Starting security dialog thread
Using firefox's profiles file: /home/lcestari/.mozilla/firefox/profiles.ini
Found preferences file:
/home/lcestari/.mozilla/firefox/uuxg95qg.default/prefs.js
Read 75 entries from Firefox's preferences
JNLP file location: Test.jnlp
Status: CONNECTED DOWNLOADED STARTED +(CONNECTED DOWNLOADED STARTED) @
/home/lcestari/servers/apache-tomcat-7.0.39/webapps/ROOT/Test.jnlp
<?xml version="1.0" encoding="utf-8"?> 
line: 2 <jnlp spec="1.0+" codebase="http://localhost:8080/" href="Test.jnlp">
line: 3     <information>
line: 4         <title>Jnlp Testing</title>
line: 5         <vendor>YONG MOOK KIM</vendor>
line: 6         <homepage href="http://localhost:8080/" />
line: 7         <description>Testing Testing</description>
line: 8     </information>
line: 9     <security>
line: 10         <all-permissions/>
line: 11     </security>
line: 12     <resources>
line: 13         <j2se version="1.6+" />
line: 14         <jar href="TestJnlpJar.jar" />
line: 15     </resources>
line: 16     <application-desc main-class="br.com.luan.TestJnlp" />
line: 17 </jnlp>
line: 18 Homepage: http://localhost:8080/
Description: Testing Testing
Acceptable title tag found, contains: Jnlp Testing
Acceptable vendor tag found, contains: YONG MOOK KIM
normalizing path /Test.jnlp in http://localhost:8080/Test.jnlp
Test.jnlp chunk needs to be encoded => Test.jnlp
normalizing query null in http://localhost:8080/Test.jnlp
Nothing was normalized in this url
Status: CONNECT STARTED +(CONNECT STARTED) @ /Test.jnlp
Status: CONNECT DOWNLOAD STARTED +(DOWNLOAD) @ /Test.jnlp
Status: CONNECTING DOWNLOAD STARTED +(CONNECTING) -(CONNECT) @ /Test.jnlp
All possible urls for location=http://localhost:8080/Test.jnlp state=CONNECTING
DOWNLOAD STARTED : [http://localhost:8080/Test.jnlp,
http://localhost:8080/Test.jnlp]
Selecting proxy for: http://localhost:8080/Test.jnlp
Browser selected proxies: [HTTP @ squid.corp.redhat.com/10.11.255.147:3128]
Selected proxies: [HTTP @ squid.corp.redhat.com/10.11.255.147:3128]
Selecting proxy for: http://localhost:8080/Test.jnlp
Browser selected proxies: [HTTP @ squid.corp.redhat.com/10.11.255.147:3128]
Selected proxies: [HTTP @ squid.corp.redhat.com/10.11.255.147:3128]
java.lang.NullPointerException
    at
net.sourceforge.jnlp.cache.ResourceTracker.initializeResource(ResourceTracker.java:796)
    at
net.sourceforge.jnlp.cache.ResourceTracker.processResource(ResourceTracker.java:629)
    at
net.sourceforge.jnlp.cache.ResourceTracker.access$500(ResourceTracker.java:75)
    at
net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.java:1131)
    at
net.sourceforge.jnlp.cache.ResourceTracker$Downloader$1.run(ResourceTracker.java:1129)
    at java.security.AccessController.doPrivileged(Native Method)
    at
net.sourceforge.jnlp.cache.ResourceTracker$Downloader.run(ResourceTracker.java:1129)
    at java.lang.Thread.run(Thread.java:722)
Status: CONNECTING DOWNLOAD ERROR STARTED +(ERROR) @ /Test.jnlp
Selecting proxy for: http://localhost:8080/Test.jnlp
Browser selected proxies: [HTTP @ squid.corp.redhat.com/10.11.255.147:3128]
Selected proxies: [HTTP @ squid.corp.redhat.com/10.11.255.147:3128]
netx: Read Error: Could not read or parse the JNLP file. (Server returned HTTP
response code: 400 for URL: http://localhost:8080/Test.jnlp)
net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or
parse the JNLP file. 
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:491)
    at net.sourceforge.jnlp.Launcher.launch(Launcher.java:283)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:202)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:51)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:168)
Caused by: java.io.IOException: Server returned HTTP response code: 400 for
URL: http://localhost:8080/Test.jnlp
    at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:284)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:214)
    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:477)
    ... 5 more



Using oracle jdk it works:
lcestari at dhcp-32-133 ROOT$ javaws -verbose Test.jnlp 
Java(TM) Web Start 1.6.0_37 Launching: /usr/java/jdk1.6.0_37/jre/bin/java
/usr/java/jdk1.6.0_37/jre/bin/java

-Xbootclasspath/a:/usr/java/jdk1.6.0_37/jre/lib/javaws.jar:/usr/java/jdk1.6.0_37/jre/lib/deploy.jar:/usr/java/jdk1.6.0_37/jre/lib/plugin.jar
 -classpath
 /usr/java/jdk1.6.0_37/jre/lib/deploy.jar

-Djava.security.policy=file:/usr/java/jdk1.6.0_37/jre/lib/security/javaws.policy
 -DtrustProxy=true
 -Xverify:remote
 -Djnlpx.home=/usr/java/jdk1.6.0_37/jre/bin
 -Dsun.awt.warmup=true
 -Djnlpx.origFilenameArg=Test.jnlp
 -Djnlpx.remove=true
 -Djnlpx.splashport=40605
 -Djnlpx.jvm=/usr/java/jdk1.6.0_37/jre/bin/java
 com.sun.javaws.Main
 /tmp/javaws1RnwB

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130415/9b58ce71/attachment.html 


More information about the distro-pkg-dev mailing list