Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

com.mysql.jdbc.LocalizedErrorMessages (no replies)

$
0
0
I'm coding JAVA with JBuilder 2005 on SLES10 and use mysql-connector-java5.1.7.
Within ID I cann succesfully connect to my MySQL-DB, but when executing the jar-Archive, generated be JBUILDER, on the same machine, I get the following error:
# java -jar AFC_Client-V1.2.jar 192.168.100.98 192.168.100.98 MySQL afc /localAdBase /tmp /home/seliger
RMIProdServerIP=192.168.100.98
ProdDBIP=192.168.100.98
DB_VENDOR=MySQL
DB_NAME=afc
localAdBase /localAdBase
localTempDir=/tmp
AFC_InDesign_Com_path=/home/seliger
RMIProdServerIP 192.168.100.98
looking up 192.168.100.98
AFC-ProdServer successfully looked up on 192.168.100.98
AFC-ProdServer on 192.168.100.98 answered on ReplyRequest: 'here I am'
lookup returned 0
going to get connection for mysql
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mysql.jdbc.Util.stackTraceToString(Util.java:350)
at com.mysql.jdbc.Util.<clinit>(Util.java:115)
at com.mysql.jdbc.NonRegisteringDriver.parseURL(NonRegisteringDriver.java:672)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:277)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at processappl.DBFunctions.connect_MYSQL_DB(DBFunctions.java:233)
at processappl.DBFunctions.connectDB(DBFunctions.java:187)
at processappl.processApplication.main(processApplication.java:699)
Caused by: java.lang.RuntimeException: Can't load resource bundle due to underlying exception java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale de_DE
at com.mysql.jdbc.Messages.<clinit>(Messages.java:60)
... 9 more
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale de_DE
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:838)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:728)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:551)
at com.mysql.jdbc.Messages.<clinit>(Messages.java:58)
... 9 more
The used Connection is from java.sql.
A class com.mysql.jdbc.LocalizedErrorMessages itself is not contained within the generated jar, but another file LocalizedErrorMessages.properties, contained in the mysql-connector-java5.1.7.jar doses not appear within the generated byJBuilder Archive-jar as well as several other class-files.
What is the reason for that fact and how to avoid it?

Regards
Jochen Seliger

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>