JConnector 3.0.11 broken

JConnector 3.0.11 broken

am 28.05.2004 09:29:44 von Peter Wilm

--------
import java.sql.*;

public class ConnectorTest {

static public void main(String[] args) throws Exception {
Class.forName("com.mysql.jdbc.Driver");
Connection jdbcConnection = DriverManager.getConnection("jdbc:mysql://localhost:3306/Con nectorTest", "root", "password");
}
}
---------

works fine with 3.0.12 but not with 3.0.13:

peter@argon:~/tmp$ java ConnectorTest
Exception in thread "main" java.sql.SQLException: Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "localhost"'.
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDr iver.java:409)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at ConnectorTest.main(ConnectorTest.java:8)


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org

Re: JConnector 3.0.11 broken

am 28.05.2004 13:45:28 von Mark Matthews

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Wilm wrote:

> --------
> import java.sql.*;
>
> public class ConnectorTest {
>
> static public void main(String[] args) throws Exception {
> Class.forName("com.mysql.jdbc.Driver");
> Connection jdbcConnection =
DriverManager.getConnection("jdbc:mysql://localhost:3306/Con nectorTest",
"root", "password");
> }
> }
> ---------
>
> works fine with 3.0.12 but not with 3.0.13:
>
> peter@argon:~/tmp$ java ConnectorTest
> Exception in thread "main" java.sql.SQLException: Cannot load
connection class because of underlying exception:
'java.lang.NumberFormatException: For input string: "localhost"'.
> at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDr iver.java:409)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
> at ConnectorTest.main(ConnectorTest.java:8)
>
>

This is a known bug (discovered last night after release of 3.0.13), and
has been reported also as Bug#3923 and in the comments for Bug#3920 at
http://bugs.mysql.com/

It should be solved by version 3.0.14, which will be released this morning.

Sorry for the hassle!

-Mark

- --
Mr. Mark Matthews
MySQL AB, Software Development Manager, J2EE and Windows Platforms
Office: +1 708 332 0507
www.mysql.com

MySQL Guide to Lower TCO
http://www.mysql.com/it-resources/white-papers/tco.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAtyZYtvXNTca6JD8RAm5PAJ0VSIbbiwRN7pGrsWL0IBIQfcMG3ACb B/Vs
4eG996tKxFveYOU6ixgGsXg=
=0dLI
-----END PGP SIGNATURE-----

--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org