Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Java Web Start Jnlp And Mysql

Recommended Posts

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/gals

Code:

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
How to edit a game jnlp folderJava Web Start Jnlp And Mysql

this 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.