Bug#564961: libmysql-java: Prepared Queries broken

Alan Ezust alan.ezust at gmail.com
Wed Jan 13 00:17:05 UTC 2010


Package: libmysql-java
Version: 5.1.10+dfsg-2
Severity: critical
Justification: breaks unrelated software


libmysql-java 5.1.0 does not work with prepared queries.


java.lang.
NoClassDefFoundError: Could not initialize class com.mysql.jdbc.PreparedStatement
    at com.mysql.jdbc.ConnectionImpl.clientPrepareStatement(ConnectionImpl.java:1445)
    at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4291)
    at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4190)
    at sql.SqlServerRecord.prepareStatement(SqlServerRecord.java:228)

Replacing the mysql-java.jar in /usr/share/java
with mysql-connector-5.0.8 or 5.1.6 makes the problem go away.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libmysql-java depends on:
ii  default-jre-headless [java2 1.6-34       Standard Java or Java compatible R
ii  openjdk-6-jre-headless [jav 6b16-1.6.1-2 OpenJDK Java runtime, using Hotspo
ii  sun-java6-jre [java2-runtim 6-16-1       Sun Java(TM) Runtime Environment (

libmysql-java recommends no packages.

Versions of packages libmysql-java suggests:
ii  libcommons-logging-java       1.1.1-6    commmon wrapper interface for seve
ii  liblog4j1.2-java              1.2.15-7   Logging library for java

-- no debconf information





More information about the pkg-java-maintainers mailing list