From owner-freebsd-ports@FreeBSD.ORG Wed Apr 1 16:52:56 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C473A90F for ; Wed, 1 Apr 2015 16:52:56 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 68C4F9AF for ; Wed, 1 Apr 2015 16:52:56 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t31Gqnn6058233 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 1 Apr 2015 17:52:49 +0100 (BST) (envelope-from matthew@freebsd.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=freebsd.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t31Gqnn6058233 Authentication-Results: smtp.infracaninophile.co.uk/t31Gqnn6058233; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <551C2260.5050904@freebsd.org> Date: Wed, 01 Apr 2015 17:52:48 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: databases/mysql-connector-java: Looks broken to me References: <20150401173142.1b36d256@rsbsd.rsb> In-Reply-To: <20150401173142.1b36d256@rsbsd.rsb> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MO9llfmtwHWEsQ49H93o4KSQKWwwIDMb5" X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 16:52:56 -0000 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--