[HELP]Pb de connexion BD et applet

Résolu
gabule Messages postés 50 Date d'inscription mercredi 18 mai 2005 Statut Membre Dernière intervention 24 avril 2008 - 22 mai 2006 à 10:06
gabule Messages postés 50 Date d'inscription mercredi 18 mai 2005 Statut Membre Dernière intervention 24 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)


Et pour lancer l'applet je fais
Code :

3 réponses

gabule Messages postés 50 Date d'inscription mercredi 18 mai 2005 Statut Membre Dernière intervention 24 avril 2008
24 mai 2006 à 13:01
3
yannick_parchemal Messages postés 31 Date d'inscription jeudi 13 avril 2006 Statut Membre Dernière intervention 22 mai 2006
22 mai 2006 à 11:16
Le fichier jar du driver de ton SGBD doit aussi etre fourni :
0
gabule Messages postés 50 Date d'inscription mercredi 18 mai 2005 Statut Membre Dernière intervention 24 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)
0
Rejoignez-nous