java - Connect to SQL with JApplet -
I am trying to connect to a SQL database using a JAplet. However, I get a I used But he did not help how can I allow a socket to be used with my applet? Many unpleasant applets apply to them. One of the restrictions is that they can not open a network connection for hosts other than hosting the applet. There are some ways around it: security exception :
com.mysql.jdbc.CommunicationsException: Communications link failure due to the underlying exception: ** BEGIN NESTED EXCEPTION ** java .net .SocketException Message: java.security.AccessControlException: "forbidden access" ("java.net.SocketPermission" "162.243.229.150:3306" "Connect Hull") StackTrace: java.net.SocketException: java.security .AccessControlException: denied access (com.mysql.jdbc.StandardSocketFactory.unwrapExceptionToProperClassAndThrowIt (StandardSocketFactory.java:407) "java.net.SocketPermission" on com.mysql.jdbc.StandardSocketFactory.connect "162.243.229.150:3306" " Connect, solve ") (StandardSocketFactory. Java: 268) at com.mysql.jdbc.MysqlIO & lt; Init & gt; (MysqlIO.javaociety71) com.mysql.jdbc.Connection.createNewIO (Connection.java:2771) at com.mysql.jdbc.Connection at .. & Lt; Init & gt; (Knekshnkjawa 1555) (non-registration journal com.mysql.jdbc.NonRegisteringDriver.connect. Java. 2885) me java.sql.DriverManager.getConnection (DriverManager.java:270) on java.sql.DriverManager.getConnection. on nrubin29.cubesorter.MySQL.setup on (MySQL.java:24) (DriverManager.java:664) me.nrubin29.cubesorter.MySQL.access $ 100 (MySQL.java:8) me.nrubin29.cubesorter.MySQL $ 1 Java.lang.Thread.run on .run (MySQL.java35). (Thread.Java: 744) ** End Death Verses ** The last packet sent was 1 ms for the server first. . Init & gt; (Connection.java:1555) On com.mysql.jdbc.Connection on com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver com.mysql.jdbc.Connection.createNewIO (Connection.java:2847) & lt. Java: 285) java.sql.DriverManager.getConnection (DriverManager.java:664) java.sql.DriverManager.getConnection (DriverManager.java:270) on me.nrubin29.cubesorter.MySQL.setup (on MySQL.java:24) Me on .nrubin29.cubesorter.MySQL.access $ 100 (MySQL.java:8) me.nrubin29.cubesorter.MySQL $ 1.run (MySQL.java35) at java.lang.Thread.run (Thredkjawa: 744) Thread Javascript exception in "Thread-38" Java.lang.NullPointerException me.nrubin29.cubesorter.MySQL $ 1.run (MySQL.java38) at java.lang.Thread.run (Thread.Java: 744)
Comments
Post a Comment