# Java security.

Narasimha Bhat (nbhat@etsd.ml.com)
Tue, 16 Jun 1998 17:33:59 -0400

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sean Rohead: "Problems with java.security"
- Previous message: Keith L. Musser: "Why isn't AclImpl standard?"

    Date: Tue, 16 Jun 1998 17:33:59 -0400

    From: Narasimha Bhat <nbhat@etsd.ml.com>

    To: java-security@web2.javasoft.com

    Subject: Java security.

I am a new user of Java. I wrote a client/Server application using
Socket object. The stand alone version ( with main) works fine. But
the applet version when I launch off netscape puts out following
message.

"Applet ClientApplet can't start: security violation: security.Couldn't
connect to 'hostname' with origin from *."

I tried launching off appletviewer and I get the following exception
messages.

Parameters: HostName "carnival" Port: 6700

sun.applet.AppletSecurityException: checkconnect.networkhost1
at
sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:564)
at
sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:606)
at
sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:506)
at java.net.InetAddress.getAllByName0(InetAddress.java)
at java.net.InetAddress.getByName(InetAddress.java)
at java.net.Socket.<init>(Socket.java:97)
at Client.init(Client.java:30)
at Client.<init>(Client.java:20)
at ClientApplet.init(ClientApplet.java:38)
at sun.applet.AppletPanel.run(AppletPanel.java:287)
at java.lang.Thread.run(Thread.java)

Any help or pointer would be highly appreciated.

Thanks
-Sim

Merrill Lynch

- Next message: Sean Rohead: "Problems with java.security"
- Previous message: Keith L. Musser: "Why isn't AclImpl standard?"