access denied 
Author Message
 access denied

my little applet under construction doesn't work like i wanted it ...

(excerpt)

    Class.forName("com.internetcds.jdbc.tds.Driver");

    private String username = "ipgis";
    private String password = "ipgis";
    private String DB_URL = "jdbc:freetds://192.168.1.4/werwannwassql";

    Connection con = DriverManager.getConnection(DB_URL, username,
password);

(/excerpt)

when i try the connection it waits some seconds and then returns the
following output:

java.security.AccessControlException: access denied
(java.net.SocketPermission 192.168.1.4:1433 connect,resolve)
        at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:195)
        at
java.security.AccessController.checkPermission(AccessController.java,
Compiled Code)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java,
Compiled Code)
        at java.lang.SecurityManager.checkConnect(SecurityManager.java:1021)
        at java.net.Socket.<init>(Socket.java:258)
        at java.net.Socket.<init>(Socket.java:98)
        at com.internetcds.jdbc.tds.Tds.<init>(Tds.java:187)
        at
com.internetcds.jdbc.tds.Connection.allocateTds(Connection.java:333)
        at com.internetcds.jdbc.tds.Connection.<init>(Connection.java:169)
        at com.internetcds.jdbc.tds.Driver.connect(Driver.java:257)
        at java.sql.DriverManager.getConnection(DriverManager.java:457)
        at java.sql.DriverManager.getConnection(DriverManager.java:137)
        at www.getData(www.java, Compiled Code)
        at www.init(www.java:176)
        at sun.applet.AppletPanel.run(AppletPanel.java:333)
        at java.lang.Thread.run(Thread.java:479)

where are the errors ??!?

seb



Sat, 13 Apr 2002 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. Access denies using a pivot table to access OLAP Cube

2. Access denied accessing OLAP cube

3. access denied to access database vie intranet

4. Access denied to Access database via intranet

5. SQL Server does not exist or access denied

6. SQL Server does not exist or access denied error

7. newbie : access denied error number 5

8. SQL Server does not exist or access denied

9. SQL Server does not exist or access denied when using ADO .NET

10. access denied to active/passive cluster, but only from asp page

11. Access denied

12. Help!!!!!SQL Server Error 2: ODBC SQL Server Driver(DBNMPNTW) Access Denied


 
Powered by phpBB® Forum Software