kvarnerexpress 0 Report post Posted October 20, 2005 I think I have nearly managed to create a JNLP file and get my application running successfully.Unfortunately I am having a problem connecting to a MySQL database when using Java Webstart, the error that I get is shown below which incidently works fine when I run the app from eclipse.Has anyone successfully managed to connect to MySQL using Java Web Start, if so could you please explain why the regular doesn't work in more detail or perhaps post an example of simple connection java file so I can edit it so it works with what I have already developed.Thanks in advance guys/galsCode: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 192.0.0.18:3306 connect,resolve)** BEGIN NESTED EXCEPTION ** java.net.SocketExceptionMESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 192.0.0.18:3306 connect,resolve)STACKTRACE:java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 192.0.0.18:3306 connect,resolve) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:143) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1805) at com.mysql.jdbc.Connection.<init>(Connection.java:452) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at ResultSetTableModelFactory.<init>(ResultSetTableModelFactory.java:23) at PreAdvisor.main(PreAdvisor.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)** END NESTED EXCEPTION ** at com.mysql.jdbc.Connection.createNewIO(Connection.java:1875) at com.mysql.jdbc.Connection.<init>(Connection.java:452) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at ResultSetTableModelFactory.<init>(ResultSetTableModelFactory.java:23) at PreAdvisor.main(PreAdvisor.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) thanks,kvarnerexpress Share this post Link to post Share on other sites
iGuest 3 Report post Posted October 26, 2009 How to edit a game jnlp folderJava Web Start Jnlp And Mysqlthis is the story,this game server,connects people by using a java applet,not using clients.And I found out, there is 1 bar that can change your name for that server.Like example,different codes give u different ids,example the argument layer had 9zCHAFBYM1cYAAAAfQAAAAECAwRbU0ddIFtHT0xEXSA2LjY0ICMxMjUAAAEDSQcBAXcBiXkByzFXF23LYXFzXWVvdxlvbW9hZV1FK291QSFBbW0rc3Vhc3Mhd8E3Lzc1L3czqXkBMTEvOS8BMzUBAQAMAAAAAQAAAAEAAAAMAAAAEQMAAOUX and it somehow stand for IcePuppy So,I was wondering how does it work? -question by Chong Kok Fai Share this post Link to post Share on other sites
nooc9 0 Report post Posted October 26, 2009 Did you request permissions in the jnlp and are the jars signed? Share this post Link to post Share on other sites
xDr0zx 0 Report post Posted October 27, 2009 erm,im the guest guy ,i just created an accounti dont really know about permissions and stuff.but i think that,theres a text to jnlp code exporter? Share this post Link to post Share on other sites