Netscape Security Exception

Ahmet Burak CAN (abc@eti.cc.hun.edu.tr)
Tue, 01 Sep 1998 17:00:05 +0300

Hi,

We're implementing an applet which enables reading and sending emails
from web pages.We can show (read) email messages very well ,but when we
attempt to send an email using NETSCAPE we get this exception :(We
didn't get any exception with iexplorer4.0 ,it runs the applet properly)

-------------------------------
netscape.security.AppletSecurityException: security.checkResourceAccess
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.checkResourceAccess(Compiled Code)

at java.lang.SecurityManager.checkResourceAccess(Compiled Code)
at java.lang.ClassLoader.getSystemResourceAsStream(Compiled Code)
at java.lang.Class.getResourceAsStream(Compiled Code)
at javax.mail.Session.loadProviders(Compiled Code)
at javax.mail.Session.<init>(Compiled Code)
* at javax.mail.Session.getDefaultInstance(Compiled Code)
at Frame1.onButtonSendActionPerformed(Compiled Code)
at com.sgi.ccode.eventmaps.EventMapper.processEvent(Compiled Code)
at com.sgi.ccode.eventmaps.ActionEventMapper.actionPerformed(Compiled
Code)
at java.awt.Button.processActionEvent(Compiled Code)
at java.awt.Button.processEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(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)

-------------------------------

We're using win95, CosmoCode 2.5 (it's using jdk1.1.4),Netscape 4.5 and
javamail1.0.2 (for email sending and reading functions).I sure, the
problem isn't in the applet source,because it runs with appletviewer and
iexploer4.0 very well.

Maybe,I should use signed applets for accessing a remote server with
netscape.Although the applet makes a socket connection at showing
messages ,we didn't get any exception.But when it's sending any email
this exception raised.(We already put the applets to the remote
server,if you think this)

Can you help me for this error?