Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSvjL-00070y-8G for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Mar 2015 22:55:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YSvjK-0002Oh-Ir for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Mar 2015 22:55:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YSqtZ-0007NI-Dc for pgsql-bugs@postgresql.org; Tue, 03 Mar 2015 17:46:13 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSqtR-0005I9-E5 for pgsql-bugs@postgresql.org; Tue, 03 Mar 2015 17:46:10 +0000 MIME-Version: 1.0 Subject: BUG #12823: jdbc4.jar caues java.lang.ClassCastException To: pgsql-bugs@postgresql.org From: Daniel.Warren@gdc4s.com Date: Tue, 03 Mar 2015 17:45:06 +0000 Message-ID: <20150303174506.2546.11348@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12823 Logged by: Daniel Warren Email address: Daniel.Warren@gdc4s.com PostgreSQL version: 9.2.0 Operating system: Linux Description: Our SSLSocketFactory. createSocket() creates org.mozilla.jss.ssl.SSLSocket. I had been using the postgresql-9.1-903.jdbc4.jar with no problems. When I upgraded to postgresql 9.3 with the postgresql-9.3-1102-jdbc4.jar I started getting the exception java.lang.ClassCastException: org.mozilla.jss.ssl.SSLSocket cannot be cast to javax.net.ssl.SSLSocket at org.postgresql.ssl.jdbc4.AbstractJdbc4MakeSSL.convert(AbstractJdbc4MakeSSL.java:117) It looks in postgresql 9.2 AbstractJdbc4MakeSSL.convert Socket newConnection = factory.createSocket was changed to SSLSocket newConnection = (SSLSocket)factory which causes the java.lang.ClassCastException. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs