dcsimg
Error Establishing Sockets
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mark_Sweeney
Posted On:   Tuesday, February 17, 2004 10:32 AM

Can you help me out? I have this applet that has been created with JBuilderX. When I run the program thru the IDE I make connection to the DriverManager. After uploading the applet, drivers, Html to our web site, whenever I run the the Html thru the browser when I execute the DriverManager I get a "java.security.AccessControl Exception: access denied (java.net.SocketPermission sql100.webminders.com resolve)". Here is the Java program I am running. SocketPermission p = new SocketPermission("sql100.webminders.com:1433","listen,accept,connect,resolve"); Class.forName("com.jnetdirect.jsql.JSQLDriver").   More>>

Can you help me out? I have this applet that has been created with JBuilderX.

When I run the program thru the IDE I make connection to the DriverManager.

After uploading the applet, drivers, Html to our web site, whenever I run the the Html thru the

browser when I execute the DriverManager I get a

"java.security.AccessControl Exception: access denied (java.net.SocketPermission sql100.webminders.com resolve)".



Here is the Java program I am running.

			
SocketPermission p = new SocketPermission("sql100.webminders.com:1433","listen,accept,connect,resolve");

Class.forName("com.jnetdirect.jsql.JSQLDriver").newInstance();

String url ="jdbc:JSQLConnect://sql100.webminders.com:1433;databaseName=CampMaintenance";

connect = DriverManager.getConnection( url, UserID, Password );




Here is the message I am getting from the Sun Java Console.

java.security.AccessControlException: access denied(java.net.SocketPermission sql100.webminders.com resolve)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkConnect(Unknown Source)

at java.net.InetAddress.getAllByName0(Unknown Source)

at java.net.InetAddress.getAllByName0(Unknown Source)

at java.net.InetAddress.getAllByName(Unknown Source)

at java.net.InetAddress.getByName(Unknown Source)

at java.net.InetSocketAddress. (Unknown Source)

at java.net.Socket. (Unknown Source)

at com.jnetdirect.jsql.h. (Unknown Source)

at com.jnetdirect.jsql.JSQLConnection.connect(Unknown Source)

at com.jnetdirect.jsql.JSQLDriver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at troubledesk.WorkRequest.init(WorkRequest.java:126)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)



Is there something else I need to set up or can you direct me where to find an answer?



Thank you for your support.

   <<Less
About | Sitemap | Contact