[1722] in java-interest
Handling sockets in the JDK...
daemon@ATHENA.MIT.EDU (Chuck Williams)
Fri Sep 15 06:01:01 1995
Date: Thu, 14 Sep 1995 14:53:50 -0400
From: Chuck Williams <chuck.williams@template.com>
To: java-interest@java.sun.com
Well,
I finally got my old Alpha3 app converted to the new JDK prebeta. In doing
that I have learned how to throw and catch exceptions (neat terms!! beats
"raising" and "handling" from Ada :) ). Now I've run into a security
problem when I run my applet in the appletviewer...
*** Security Exception: socket.connect:->lion ***
sun.applet.AppletSecurityException security.socket.connect: ->lion
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Exception.<init>(Exception.java)
at java.lang.RuntimeException.<init>(RuntimeException.java)
at java.lang.SecurityException.<init>(SecurityException.java)
at sun.applet.AppletSecurityException.<init>(AppletSecurityException.java:36)
at sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:299)
at sun.applet.AppletSecurity.checkConnect(AppletSecurity.java:271)
at java.net.Socket.<init>(Socket.java)
at java.net.Socket.<init>(Socket.java)
at sun.net.NetworkClient.openServer(NetworkClient.java:47)
at sun.net.NetworkClient.<init>(NetworkClient.java:71)
at IpcTest.init(IpcTest.java:53)
at sun.applet.AppletPanel.run(AppletPanel.java:259)
at java.lang.Thread.run(Thread.java)
This is line 53 in IpcTest.init:
client = new sun.net.NetworkClient("lion", 1719);
I really don't care about security at this point as I am running inside a
well protected network (it has no live connection to the outside world). So
how do I solve this problem??
Thanks in advance,
Chuck Williams Template Software, Inc.
Technical Representative 13100 Worldgate Drive
Phone: (703) 318-1253 Suite 340
Fax: (703) 318-7378 Herndon, VA 22070-4382
e-mail: Chuck.Williams@template.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com