Hi! The security model of the Java Platform won't let you access any resource outside the browser environment.
Supposing that you code is just right, testing the applet in a different machine should give no problem. Best Regards! On Mon, 2004-03-01 at 09:58, [EMAIL PROTECTED] wrote: > Hello! > > I recently downloaded the actual version of the jdbc-driver and installed > it. > Then I compiled the Example program from the documents but with some > changes: > > i. database_server ="VIF3711"; (this is my local computer!) > > ii. instance name ="TST74"; (<= there is still a 7.4 instance on my > machine) > > The compilation of the program ran fine. After starting the program the > following messages appeared: > > Applet is null, cannot report > Exception in thread "main" java.lang.SecurityException: not allowed to > connect t > o 127.0.0.1 > at > com.trend.appscan.runtime.PolicyRuntime.stopAction(PolicyRuntime.java > :124) > at com.trend.appscan.runtime.NetworkPolicyRuntime. > _preFilter(NetworkPoli > cyRuntime.java:103) > at > com.trend.appscan.runtime.NetworkPolicyRuntime.preFilter(NetworkPolic > yRuntime.java:42) > at > com.sap.dbtech.rte.comm.SocketComm.openSocket(SocketComm.java:410) > at com.sap.dbtech.rte.comm.SocketComm.<init>(SocketComm.java:86) > at > com.sap.dbtech.rte.comm.SocketComm.doInfoRequest(SocketComm.java:270) > > at > com.sap.dbtech.rte.comm.SocketComm.connectDB(SocketComm.java:203) > at com.sap.dbtech.rte.comm.SocketComm$1.open(SocketComm.java:54) > at > com.sap.dbtech.jdbc.DriverSapDB.openConnection(DriverSapDB.java:600) > at com.sap.dbtech.jdbc.DriverSapDB.openByURL(DriverSapDB.java:544) > at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:170) > at java.sql.DriverManager.getConnection(Unknown Source) > at java.sql.DriverManager.getConnection(Unknown Source) > at HelloSapDB.main(HelloSapDB.java:44) > > And that's it. > > Any hints where especially the first line is comin from. The application is > clearly not an applet. > I tried to change the server name in "vif3711", "LOCALHOST", "localhost" > and the IP address but always with the > same error messag. > > Any hints? > > Thanks very much. > > Best Regards, > Stefan -- |...........................................................| |____ _____ ____ _ |Victor Medina M | |\ \ \| ____| _ \ / \ |Linux - Java - MySQL | | \ \ \ _| | |_) / _ \ |Dpto. Sistemas - Ferreteria EPA | | / / / |___| __/ ___ \ |[EMAIL PROTECTED] | |/_/_/|_____|_| /_/ \_\|ext. 325 - T�l: +58-241-8507325 | | |geek by nature - linux by choice | |...........................................................|
