Bug #40855 mysql-connector-java-5.1.7-bin.jar throws exception with JRE 1.3.1_02-b02

Submitted: 19 Nov 2008 13:53 Modified: 21 Nov 2008 13:45
Reporter: Steve Burrows Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S2 (Serious)
Version:5.1.7 OS:Windows (Windows Server 2003 SP2)
Assigned to: CPU Architecture:Any

[19 Nov 2008 13:53] Steve Burrows
Description:
JRE 1.3.1_02-b02 on Windows Server 2003 SP2

mysql-connector-java-5.0.8-bin.jar works fine.  5.1.7 throws the following exception on the same code:

Exception in thread "main" java.lang.NoSuchMethodError
        at com.mysql.jdbc.ConnectionPropertiesImpl$BooleanConnectionProperty.<in
it>(ConnectionPropertiesImpl.java:73)
        at com.mysql.jdbc.ConnectionPropertiesImpl.<init>(ConnectionPropertiesIm
pl.java:686)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:628)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:298)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:282)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at org.stmh.message.JDBCStore.connectionAvailable(Unknown Source)
        at org.stmh.message.JDBCStore.getConnection(Unknown Source)
        at org.stmh.message.JDBCStore.configure(Unknown Source)
        at org.stmh.message.JDBCStore.<init>(Unknown Source)
        at org.stmh.message.hl7.JDBCStorageResponder.configure(Unknown Source)
        at org.stmh.message.SocketStore.config(Unknown Source)
        at org.stmh.message.SocketStore.main(Unknown Source)

How to repeat:
Using the JRE above, try to get a connection to the MySQL 5.0 database.
[19 Nov 2008 14:19] Tonci Grgin
Hi Steve and thanks for your report. I think it is not possible to use c/J 5.1 with such old jre but I'll double check.
[19 Nov 2008 14:23] Steve Burrows
No problem.  In this case, I'm forced by another application to use a dinosaur JRE.  If it's no longer JRE 1.3 compatible, I'll stick with 5.0.8.  I just wanted to make sure MySQL knew, so the documentation for 5.1 could be updated to no longer include 1.3 as compatible.
[19 Nov 2008 14:26] Tonci Grgin
After consults, it appears that this should work, thus verified and waiting for Mark's ruling.
[19 Nov 2008 14:43] Mark Matthews
Connector/J 5.1 is not designed to work with JDK/JRE-1.3.x, as this platform reached end-of-life status the same time as 5.1 was being developed. If you must stay on JDK-1.3.x, you will need to remain using Connector/J 5.0.

I've changed the status to documenting on this bug, so that the "requirements" section in the documentation can be updated.
[21 Nov 2008 13:45] Tony Bedford
Manual updated to specify that C/J requires JRE version 1.4.x and above.

http://dev.mysql.com/doc/refman/6.0/en/connector-j-versions-java.html

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.