Closed
Bug 17442
Opened 26 years ago
Closed 26 years ago
Java and JavaScript programs cannot communicate with plugins
Categories
(Core Graveyard :: Java: Live Connect, defect, P3)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: mironov, Assigned: fur)
Details
This bug manifests itself in Communicator 4.6 only.
The problem is that Java programs cannot obtain the Plugin pointer, regardless
of the Plugin being used---be it npavi32.dll or npcortona.dll or any other. The
steps for obtaining a Plugin pointer are following:
public static Plugin getPlugin()
{
try
{
JSObject window = JSObject.getWindow(this);
JSObject document = (JSObject) window.getMember("document");
JSObject embeds = (JSObject) document.getMember("embeds");
return (Plugin) embeds.getSlot(0);
}
catch (Throwable e)
{
return null;
}
}
This fails at window.getMember("document"), getting strange exceptions, like
this:
netscape.security.AppletSecurityException: security.checkcreateclassloader
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkCreateClassLoader(Compiled Code)
at java.lang.SecurityManager.checkCreateClassLoader(Compiled Code)
at java.lang.ClassLoader.<init>(Compiled Code)
at netscape.applet.AppletClassLoader.<init>(Compiled Code)
* at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
at Avi.getPlugin(Compiled Code)
at Avi.start(Compiled Code)
at netscape.applet.DerivedAppletFrame$StartAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
Browser.getBrowser() failed: netscape.javascript.JSException: couldn't create
AppletClassLoader for JavaScript
Or like this:
netscape.javascript.JSException: couldn't create AppletClassLoader for
JavaScript
at java.lang.Exception.<init>(Compiled Code)
* at netscape.javascript.JSException.<init>(Compiled Code)
at vrml.external.Browser.getBrowser(Compiled Code)
at vrml.external.Browser.getBrowser(Compiled Code)
at fjmap.start(Compiled Code)
at netscape.applet.DerivedAppletFrame$StartAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
Code)
It should be emphasized that there were no attempts of creating a ClassLoader
in the body of getPlugin() or getBrowser().
JavaScript program on NPAviExample.html page (which comes with Plugin SDK)
fails with error
"JavaScript error: Type 'javascript:' into Location for details", and the
details are
JavaScript Error:
file:/D|/PluginSDK/Examples/npavi/Testing/NPAviExample.html, line 14:
document.avi has no properties.
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
| Assignee | ||
Comment 1•26 years ago
|
||
This bug reporting system is only for Mozilla, the open-source browser that will
become the basis for the next version of Netscape Navigator. It may not be used
for Navigator 4 bugs. Hence, I'm marking this bug INVALID. To file a bug
against Navigator 4.6, you need to contact Netscape technical support.
You need to log in
before you can comment on or make changes to this bug.
Description
•