• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netscape 4 Security Exception

 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an applet I have written will work in IE (all versions as far as I know) and will work in Netscape 6 but does not work in Netscape 4.08, 4.74, 4.78, etc... It is not signed and I would like to avoid signing it.
Any ideas?
Thanks.
Tao
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Will not work" doesn't actually tell us anything. However, I can say that if the Netscape in question has a third-party ActiveX-enabling plugin, there's one out there that makes it completely impossible to run Java Applets.
Open the Java Console and see if the Applet's throwing an exception. That might shed some light on the subject.
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply,
here is the stacktrace.

netscape.security.AppletSecurityException: security.Couldn't connect to '192.168.0.1' with origin from 'local-classpath-classes'.
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.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at java.lang.SecurityManager.checkConnect(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at Chat2.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)
netscape.security.AppletSecurityException: security.Couldn't connect to '192.168.0.1' with origin from 'local-classpath-classes'.
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.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at java.lang.SecurityManager.checkConnect(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at Chat2.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)
netscape.security.AppletSecurityException: security.Couldn't connect to '192.168.0.1' with origin from 'local-classpath-classes'.
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.AppletSecurityException.<init>(Compiled Code)
at netscape.security.AppletSecurity.checkConnect(Compiled Code)
at java.lang.SecurityManager.checkConnect(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at java.net.Socket.<init>(Compiled Code)
at Chat2.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)
apparently it thinks I am running a 192 address but when I try to access it from 192 it throws the same exception.
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That normally means that the applet's trying to open a connection to a server different from the one it was loaded from. THAT should fail regardless of which browser you're using, unless there's another Microsoft security hole I'm not aware of.
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I am not sure why Netscape 4 thinks that it is coming from a different source. All of the other browsers are fine with what I am doing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic