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 150755 - MAC: Run in browser shows finder & fails with liveconnect.OriginNotAllowedException
Summary: MAC: Run in browser shows finder & fails with liveconnect.OriginNotAllowedExc...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Deployment (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P1 blocker (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-20 18:23 UTC by Lark Fitzgerald
Modified: 2008-10-24 14:24 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 Lark Fitzgerald 2008-10-20 18:23:27 UTC
SDK 42, FX plugin: promoted build 41 (installers)

1. Create Color Wheel Sample
2. set to run in browser
3. run/deploy

The Finder comes up pointing to the color wheel project location.

4. select dist/Color_Wheel.html

The app starts to show but fails with:
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@4a7a12, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@afa68a
basic: Loading applet/u2026
basic: Initializing applet/u2026
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@4a7a12, refcount=2
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@4a7a12, refcount=1
basic: Starting applet…
network: Connecting http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/749/artifact/build/macosx-
universal/release/javaws/JavaPropertyAccessor.class with proxy=DIRECT
network: Connecting http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/749/artifact/build/macosx-
universal/release/javaws/JavaPropertyAccessor.class with cookie "nfSettings=11210111%7C%7Cen_US%7C%7C0%7C60%7C-1%7C%7Cweek%7C-1%7C; 
nfTimeStamps=19700101000000%7C19700101000000%7C19700101000000; s_vi=[CS]v1|488DD9A200004289-A000B0500000578[CE]; s_cc=true; 
s_sq=%5B%5BB%5D%5D"
network: Connecting http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/749/artifact/jfx/build/macosx-
universal/release/javaws/JavaPropertyAccessor.class with proxy=DIRECT
network: Connecting http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/749/artifact/jfx/build/macosx-
universal/release/javaws/JavaPropertyAccessor.class with cookie "nfSettings=11210111%7C%7Cen_US%7C%7C0%7C60%7C-1%7C%7Cweek%7C-1%7C; 
nfTimeStamps=19700101000000%7C19700101000000%7C19700101000000; s_vi=[CS]v1|488DD9A200004289-A000B0500000578[CE]; s_cc=true; 
s_sq=%5B%5BB%5D%5D"
basic: Cached file name: JavaPropertyAccessor.class-2cfa19ea-301e69bf.class
liveconnect: Java: Obj is <JavaPropertyAccessor>
liveconnect: Java: method is <public java.lang.String JavaPropertyAccessor.getJavaProperty(java.lang.String)>
liveconnect: Java:  method has 1 arguments.
liveconnect: Java:   arg[0].class = class java.lang.String
sun.plugin.liveconnect.OriginNotAllowedException: JavaScript is not from the same origin as the Java code, 
caller=file:/Users/larkfitzgerald/NetBeansProjects/Color%20Wheel/dist/Color_Wheel.html, 
callee=http://jfx.sfbay.sun.com/hudson/job/javafx1.0/label=macosx-universal/749/artifact/build/macosx-universal/release/javaws/
	at sun.plugin.liveconnect.SecureInvocation.checkLiveConnectCaller(SecureInvocation.java:405)
	at sun.plugin.liveconnect.SecureInvocation.access$000(SecureInvocation.java:52)
	at sun.plugin.liveconnect.SecureInvocation$2.run(SecureInvocation.java:201)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.plugin.liveconnect.SecureInvocation.CallMethod(SecureInvocation.java:193)
	at sun.plugin.liveconnect.SecureInvocation.access$300(SecureInvocation.java:52)
	at sun.plugin.liveconnect.SecureInvocation$CallMethodThread.run(SecureInvocation.java:124)
Comment 1 Martin Ryzl 2008-10-22 13:38:58 UTC
I see this as two problems:
1. runnnig as applet should point the browser to the html file, not the project folder
2. an error running with shared runtim which I believe has already been fixed
Comment 2 Andrey Yamkovoy 2008-10-23 16:29:15 UTC
Fixed by setting the argument '-g' for the MacOS 'open' command if another browser args were not set.
It means that browser will opens in background.
Comment 3 Alexandr Scherbatiy 2008-10-24 14:24:18 UTC
verified in 2008-10-24_03-01-09.zip