2 messages in com.mysql.lists.javaRe: ExceptionInInitializerError
FromSent OnAttachments
Jeff Mathis21 Oct 2004 15:00 
Jeff Mathis21 Oct 2004 15:08 
Subject:Re: ExceptionInInitializerError
From:Jeff Mathis (jmat@predict.com)
Date:10/21/2004 03:08:53 PM
List:com.mysql.lists.java

here's more info. you should be able to reproduce this now.

If I use ConnectorJ 3.015, I get a really useful SQLException:

java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'S INTL INC' where id=145' at line 1"

clearly, what I'm trying to insert needs to have single quotes escaped.

Looks like the SQL messaging with 3.1.4 is broken?

jeff

Mark,

this just started showing up again. Whenever I see these things, its a MissingResourceException that causes it. I'm guessing there is a SQL Exception it wants to throw, but doesn't know what it is. Here, I'm trying to update a varchar(50) column.

not sure what to do here. got any bug fix releases coming out?

using server version 4.1.3 with InnoDB tables, Connector/J 3.1.4 on Solaris 5.8, JDK1.4.2

java.lang.ExceptionInInitializerError at com.mysql.jdbc.SQLError.<clinit>(SQLError.java:87) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2745) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1480) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1570) at com.mysql.jdbc.Connection.execSQL(Connection.java:2228) at com.mysql.jdbc.Connection.execSQL(Connection.java:2159) at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1234) . . . Caused by: java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.Messages, locale en at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)

at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:773) at java.util.ResourceBundle.getBundle(ResourceBundle.java:661)

same old story