Re: JConnector 3.0.11 broken

Mark Matthews <[email protected]>
Newsgroups gmane.comp.db.mysql.bugs
Message-ID <[email protected]>
-----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/ConnectorTest",
"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(NonRegisteringDriver.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

iD8DBQFAtyZYtvXNTca6JD8RAm5PAJ0VSIbbiwRN7pGrsWL0IBIQfcMG3ACbB/Vs
4eG996tKxFveYOU6ixgGsXg=
=0dLI
-----END PGP SIGNATURE-----

-- 
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.