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 150355 - Applet is not executed in browser. FailedDownloadException: Unable to load resource
Summary: Applet is not executed in browser. FailedDownloadException: Unable to load re...
Status: VERIFIED WORKSFORME
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: 2008-10-16 11:01 UTC by Alexandr Scherbatiy
Modified: 2008-10-22 11:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Browser screen-shot (99.05 KB, image/png)
2008-10-16 11:03 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-10-16 11:01:58 UTC
JavaFX_NB_Plugin_NB65_daily: #309 2008-10-16_02-01-26.zip

  Product Version         = NetBeans IDE Dev (Build 200810150101)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11; Sun Microsystems Inc.


Steps to reproduce:

- Create a JavaFX Script file:
-------------------------------------------------------------
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;

Stage{
    title: "Application title"
    width: 250
    height: 80
    scene: Scene{
        content: Text {
            x: 10, y: 30
            content: "Application content"
        }
    }
}
-------------------------------------------------------------

- Go to the project properties and select
  Run-> Run in Browser

- Run the project
  Application error pops up in browser:

com.sun.deploy.net.FailedDownloadException: Unable to load resource:
(http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/743/artifact/build/macosx-universal/release/javaws/javafx-rt.jnlp?version-id=hudson-javafx1.0%2Flabel%3Dwindows-i586-743&arch=x86&os=Windows&locale=en_US&known-platforms=1.6+1.6+1.6+1.6+1.6+1.6+1.5+1.5+,
hudson-javafx1.0/label=windows-i586-743)
	at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getCachedFile(Unknown Source)
	at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
	at sun.plugin2.applet.JNLP2Manager.downloadResources(Unknown Source)
	at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
	at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Comment 1 Alexandr Scherbatiy 2008-10-16 11:03:02 UTC
Created attachment 71951 [details]
Browser screen-shot
Comment 2 Alexandr Scherbatiy 2008-10-16 11:05:30 UTC
-----------------------------------------------  JavaFXApplication9.html  ---------------------------------------
<html>
<head>
<title>JavaFXApplication9</title>
</head>
<body>
<h1>JavaFXApplication9</h1>
<script
src="http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/743/artifact/build/macosx-universal/release/javaws/dtfx.js"></script>
<script>
    javafx(
        {
              archive: "JavaFXApplication9.jar",
              draggable: true,
              width: 200,
              height: 200,
              code: "javafxapplication9.Main",
              name: "JavaFXApplication9"
        }
    );
</script>
</body>
</html>
Comment 3 Alexandr Scherbatiy 2008-10-17 10:43:03 UTC
Web deployment is an important feature.
Comment 4 Alexandr Scherbatiy 2008-10-17 14:37:08 UTC
See http://openjfx.java.sun.com/jira/browse/RT-1415
Comment 5 Lark Fitzgerald 2008-10-20 18:32:10 UTC
No longer reproducible using: 
Tested using Promoted SDK #42/Plugin build #41 Oct 20, 2008 6:57:29 PM
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 749, Build-ID: 2008-10-17_19-02-42 on:
Product Version: NetBeans IDE 6.5 RC1 (Build 200810171318)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 6 Alexandr Scherbatiy 2008-10-22 11:43:30 UTC
verified