Hi all,

I'm still developing my small application (I placed de question about
printing a few days ago), and now I have another strange problem.

I'm trying to connect via JDBC with a Postgres database. If I run with
appletviewer or in a frame as standalone application, everything seems
to be all right, the connection takes place succesfully. But if I try to
connect from Netscape, I get this exception (with exactly the same code
as before). The console logs this:


netscape.security.AppletSecurityException: security.Couldn't connect to
'localhost' with origin from 'local-classpath-classes'.
  at
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java:773)
  at java.lang.SecurityManager.checkConnect(SecurityManager.java:718)
  at java.net.InetAddress.getAllByName0(InetAddress.java:457)
  at java.net.InetAddress.getByName(InetAddress.java:367)
  at java.net.Socket.<init>(Socket.java:123)
  at postgresql.PG_Stream.<init>(PG_Stream.java:35)
  at postgresql.Connection.<init>(Connection.java:188)
  at postgresql.Driver.connect(Driver.java:87)
  at java.sql.DriverManager.getConnection(DriverManager.java:90)
  at java.sql.DriverManager.getConnection(DriverManager.java:132)
  at TestConexion.conexionJDBC(TestConexion.java:82)
  at TestConexion.init(TestConexion.java:40)
* 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)

I've tried a lot of things. Since Netscape seems to use jdk 1.1.5, I use
only awt components to be sure. Should I digitally sign the Applet? Is
there any way to disable security checks in Netscape ? Or it's another
thing ?

Aaaaaaaaaaaaaaaaaaaaaaaaaaaarg !!!

Reply via email to