well if u r using the Internet Explorer than u can try and austomize the
security but in netscape u have to tackle it with the security manager of
the applet browser.
this is happening b'cos if u open a raw socket connection the browser
security system invokes an exception on it .
try to do some other way the applet servlet communication use RMI or normal
url connect it will be useful.
***************************************************
Change is Inevident everywhere
It stops  u from Ageing
***************************************************
----- Original Message -----
From: "Zhen Ni" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 29, 2000 10:35 PM
Subject: Re: Applet to servlet Security Exception


> Yeah, I'm experiencing the same problem when trying to establish a
> connection to a remote database.  Does anyone know why this happens?  My
> applet is unsigned and it should catch any connection problems in the java
> code itself.
>
> -Tom
>
>
>
>
> On Wed, 29 Mar 2000, kavitha ramasamy wrote:
>
> > Hello,
> >
> >      I am calling a servlet from my applet. It is working fine in
> > appletviewer. But when I do the same in browser i am getting security
> > Exception as
> >
> > netscape.security.AppletSecurityException: security.Couldn't connect to
> > '127.0.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 CHttpPost.doSocketPost(Compiled Code)
> >
> >   at Applet1.btnPost_MouseClicked(Compiled Code)
> >
> >   at Applet1$SymMouse.mouseClicked(Compiled Code)
> >
> >   at java.awt.Component.processMouseEvent(Compiled Code)
> >
> >   at java.awt.Component.processEvent(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).
> >
> > How to overcome this?
> > Thanks,
> > Kavitha
> >
> >
> > ______________________________________________________
> > Get Your Private, Free Email at http://www.hotmail.com
> >
> >
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to