[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

netscape db.open problem




  Hello!

I have a little problem. I hope someone could help me. I want to
open a database from an applet. It works when I use a jdk1.2.2
appletviewer or Microsoft Explorer, but Netscape says:

------------------"
Netscape Communications Corporation -- Java 1.1.5
 Type '?' for options. 
netscape.security.AppletSecurityException:security.Couldn't
connect to 'fogep' with origin from 'local-classpath-classes'.
netscape.security.AppletSecurityException: security.Couldn't connect to
'fogep' with origin from 'local-classpath-classes'. 
  at 
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java:776) 
  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 org.ozoneDB.DxLib.net.DxClient.<init>(DxClient.java:37) 
  at org.ozoneDB.core.DbRemote.DbClient.<init>(DbClient.java:37) 
  at
org.ozoneDB.core.DbRemote.DbRemoteClient.<init>(DbRemoteClient.java:24) 
  at org.ozoneDB.RemoteDatabase.newConnection(RemoteDatabase.java:100) 
  at
org.ozoneDB.ExternalDatabase.connectionForThread(ExternalDatabase.java:315) 
* at org.ozoneDB.RemoteDatabase.open(RemoteDatabase.java:72) 
  at epo.estate.admin.ConnAppl.init(ConnAppl.java:38) 
  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)
"---------------------------

The source code of the applet:  

public class ConnAppl extends Applet {
        private RemoteDatabase db;                 
  .
  .
  .

public void init() {
        super.init(); 
        db = new RemoteDatabase(); 
        try {
                db.open("fogep", 3333, "epole", ""); 
                System.out.println("Connected ..."); 
                db.close(); 
                System.out.println("Closed ..."); 
        } catch (Exception e) {
  .
  .
  .
}

Both the ConnAppl.class file and the database are on "fogep".
Sorry about my English.

  Thanks:

	Adamcsek Balazs