gabule
Messages postés50Date d'inscriptionmercredi 18 mai 2005StatutMembreDernière intervention24 avril 2008
-
22 mai 2006 à 10:06
gabule
Messages postés50Date d'inscriptionmercredi 18 mai 2005StatutMembreDernière intervention24 avril 2008
-
24 mai 2006 à 13:01
Bonjour,
dans mon applet java je me connecte a une BD avec mysqlconnector.
Avec eclipse sa marche impec mais quand je lance mon applet a partir d'une page html ca ne marche plus.
De quoi ca vient ? et Comment puis je arranger ca ?
(jai compile en *.jar mon projet avec fatjar et ca ne marche pas non plus)
erreur obtenue:
java.lang.ExceptionInInitializerError at com.mysql.jdbc.Connection.(Connection.java:1175) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at graphiquesav.init(graphiquesav.java:194) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73) ... 7 more Exception in thread "thread applet-graphiquesav.class" java.lang.NullPointerException at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source) at sun.plugin.AppletViewer.showAppletException(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
gabule
Messages postés50Date d'inscriptionmercredi 18 mai 2005StatutMembreDernière intervention24 avril 2008 22 mai 2006 à 13:52
Je lai fait et il ma marque le meme erreur
java.lang.ExceptionInInitializerError
at com.mysql.jdbc.Connection.(Connection.java:1175)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at graphiquesav.init(graphiquesav.java:182)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
... 7 more
Exception in thread "thread applet-graphiquesav.class" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)