pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel.Warren@gdc4s.com
To: pgsql-bugs@postgresql.org
Subject: BUG #12823: jdbc4.jar caues java.lang.ClassCastException
Date: Tue, 03 Mar 2015 17:45:06 +0000
Message-ID: <20150303174506.2546.11348@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



Message-ID: <20150303174506.2546.11348@wrigleys.postgresql.org>
Permalink:  ../20150303174506.2546.11348@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20150303174506.2546.11348@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Daniel.Warren@gdc4s.com
  Subject: Re: BUG #12823: jdbc4.jar caues java.lang.ClassCastException
  In-Reply-To: <20150303174506.2546.11348@wrigleys.postgresql.org>
  References: <20150303174506.2546.11348@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox