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 172785 - JNLP files for JavaFX applets have format errors
Summary: JNLP files for JavaFX applets have format errors
Status: VERIFIED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 15:23 UTC by dagastine
Modified: 2009-09-29 11:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dagastine 2009-09-22 15:23:48 UTC
The browser JNLP files generated for JavaFX applets have two formatting errors that are causing the update check tag to
not be set correctly and greatly impacting overall startup time.

Below is the currently generated jnlp for the pathanimation sample:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/C%3A/development/soma_samples_ws/PathAnimation/dist/"
href="PathAnimation_browser.jnlp">
   <information>
       <title>PathAnimation</title>
       <vendor>JavaFX Samples Team</vendor>
       <homepage
href="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/C%3A/development/soma_samples_ws/PathAnimation/dist/"/>
       <description>PathAnimation</description>
       <offline-allowed/>
       <shortcut>
           <desktop/>
       </shortcut>
   </information>
   <security>
       <all-permissions/>
   </security>
   <resources>
       <j2se version="1.5+"/>
       <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
       <jar href="PathAnimation.jar" main="true"/>
   </resources>
   <applet-desc name="PathAnimation" main-class="com.sun.javafx.runtime.adapter.Applet" width="480" height="640">
       <param name="MainJavaFXScript" value="pathanimation.Main">
   </applet-desc>
   <update check="background">
</jnlp> 


The last 4 lines contain the two format errors:
The following line needs a tag close:
<param name="MainJavaFXScript" value="pathanimation.Main"> 
should be:
<param name="MainJavaFXScript" value="pathanimation.Main"/>

This line also needs a close:
 <update check="background">
should be:
<update check="background"/>


Here's a modified jnlp with corrections:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/C%3A/development/soma_samples_ws/PathAnimation/dist/"
href="PathAnimation_browser.jnlp">
   <information>
       <title>PathAnimation</title>
       <vendor>JavaFX Samples Team</vendor>
       <homepage
href="http://localhost:8082/servlet/org.netbeans.modules.javafx.project.JnlpDownloadServlet/C%3A/development/soma_samples_ws/PathAnimation/dist/"/>
       <description>PathAnimation</description>
       <offline-allowed/>
       <shortcut>
           <desktop/>
       </shortcut>
   </information>
   <security>
       <all-permissions/>
   </security>
   <resources>
       <j2se version="1.5+"/>
       <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
       <jar href="PathAnimation.jar" main="true"/>
   </resources>
   <applet-desc name="PathAnimation" main-class="com.sun.javafx.runtime.adapter.Applet" width="480" height="640">
       <param name="MainJavaFXScript" value="pathanimation.Main"/>
   </applet-desc>
   <update check="background"/>
</jnlp>
Comment 1 Adam Sotona 2009-09-23 15:06:35 UTC
This issue is duplicate of http://javafx-jira.kenai.com/browse/RT-5711
Comment 2 Alexandr Scherbatiy 2009-09-29 11:03:21 UTC
The JavaFX SDK issue.