Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Apr 2015 17:52:48 +0100
From:      Matthew Seaman <matthew@freebsd.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: databases/mysql-connector-java: Looks broken to me
Message-ID:  <551C2260.5050904@freebsd.org>
In-Reply-To: <20150401173142.1b36d256@rsbsd.rsb>
References:  <20150401173142.1b36d256@rsbsd.rsb>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--MO9llfmtwHWEsQ49H93o4KSQKWwwIDMb5
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 04/01/15 15:31, Beeblebrox via freebsd-ports wrote:
> I was getting indications that mysql connections through the com.mysql.=
jdbc driver was not working. So I searched for a test method (included be=
low) and here are the results.
>=20
> * Server: mariadb100--10.0.17, jailed, tcp connection. Able to connect =
through other drivers & using same params.
> * Client: mysql-connector-java-5.1.35
> * Test code compiled with javac, $ java -cp . jdbc >
> com.mysql.jdbc.Driver
> Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.=
jdbc.Driver  # I compile with OPTIONS_UNSET=3D NLS
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:191)
> 	at jdbc.main(jdbc.java:15)
>=20

Thank you for the report.  Unfortunately, I'm at a loss to fix this. The
driver is supplied pre-compiled by Oracle -- we used to compile it, long
ago, but then it grew some compatibility shims that meant bits of it
needed compiling with different JDKs, something that couldn't be
supported in the ports.  I guess it's time to try recompiling it
ourselves since java has moved on quite a lot since those days.  Give me
a while to test that please.

Given that it's basically a .jar file downloaded from the net and copied
into position, the OPTIONS_USET=3DNLS thing will have absolutely no effec=
t
on mysql-connector-java itself

	Cheers,

	Matthew



--MO9llfmtwHWEsQ49H93o4KSQKWwwIDMb5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJVHCJgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnQ6cP/0YuPX5z0bE1Sr15huzjb9nc
qczEAfwk6VkEPQgMs2ZrKtxZwkFQnQbpCDEyuy+4F6wXAqci682rfPceSgwM5juT
McxEjqzueO8ORGpb02Fs5w55XHKfXSgwNcDr4WVa2mCU9thdQOi7QHLY/7mcOHGB
O53KNZ79c87Rqtx62ozfsHYzRaWOLXncULLVh8rSlf6q9EneuC4sPTwxDSp3vURD
fYlohCri09XQU/JYrpq9BbFBHAtOGdJIKiHtU+Q65uNiLTWFQZuZ0vNYnjP9FUoT
Aso4VzE9Gm/sRztTdVEoHdUkRhUB7K53u768zynaKRvOqnLyz7v5hY0oh25IUIlz
RslgtSh7L7gpePsP//b43FWC817HbOB8ZzxU3V5RgewuvOEE4/OFYlEmPH4w5rtr
U4bKKFrS8Hm6dp7aQeA/CVQUR3s+gEa8OdL6IaSFKDsrq7e38Q5yi/V60cyAWlO8
IFbQhQ5xazBEEGhtYJNfujZ47RCx9tehrNC24sARuHOWZaOjA/bPENMOErP7ibn/
v30BPA18xiaT6PoMgVCtKwKhFE9cG2r9R1Mwu4UJTYT/9xLu64wuhkyR7e5p6u6d
bvSHuDSlyUTxf8fp0awASojnLcU1QEz+ebtnCFjSHsDqjY84TUrGEQ3cLPA3Mr6Y
uM6rc0kYLwpxAtSMxgd6
=HX89
-----END PGP SIGNATURE-----

--MO9llfmtwHWEsQ49H93o4KSQKWwwIDMb5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?551C2260.5050904>