I ran into a similar problem when I had two applets in the same HTML document and wanted to send mouse events from one to the other via network sockets (I was doing it to prove to myself that I could, not for any other really practical purposes).  I could get it to work okay using appletviewer, and Microsoft's Internet Explorer Version 4 (after disabling the network security checking).  The only thing I've been able to figure for Netscape, however, is that you have to have your applet signed by some kind of certificate authority.  This costs money, so I've never done it.  If there is a less expensive (i.e. free) way of doing this, I don't know.  If anybody out there has a notion how to completely disable the network security checking in Netscape, I'd like to be your friend.  Thanks
 
 
-Andy
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dimitris Vyzovitis
Sent: Sunday, November 08, 1998 7:55 PM
To: Java Linux List
Subject: Some weird security problems in netscape

Hi !
I am having some weird security problems with netscape 4.5
I have an applet that tries to fetch some data over the net. The data are located in the same host as the applet and under its codeBase.
It is my conception, that the applet should download the data normally.
But this is what I get:

netscape.security.AppletSecurityException: security.class from local disk trying to access url: http://egnatia.ee.auth.gr/~dviz/dip/images/lena256.raw
  at netscape.security.AppletSecurity.checkURLConnect(AppletSecurity.java:944)
  at java.lang.SecurityManager.checkURLConnect(SecurityManager.java:1239)
  at netscape.net.URLConnection.connect(URLConnection.java:79)
  at netscape.net.URLConnection.getInputStream(URLConnection.java:198)
  at java.net.URL.openStream(URL.java:606)
  at dip.applets.DIPApplet._fetchImage(DIPApplet.java:131)
  at dip.applets.DIPApplet._loadImages(DIPApplet.java:121)
  at dip.applets.DIPApplet.init(DIPApplet.java:63)
* at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(DerivedAppletFrame.java:553)
  at java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
  at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)

Has anybody got a clue about what this means and how I could work around it?
 
 

-- 
Dimitrios Vyzovitis      -- Information Processing Laboratory
[EMAIL PROTECTED] -- Aristotle University of Thessaloniki
[EMAIL PROTECTED] -- Dept. of Electrical and Computer Engineering
                            http://egnatia.ee.auth.gr/~dviz
 

Reply via email to