Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 240149F9A1A for ; Sun, 7 Oct 2007 20:05:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 31126-03 for ; Sun, 7 Oct 2007 20:05:05 -0300 (ADT) X-Greylist: delayed 00:06:41.12848 by SQLgrey-1.7.5 Received: from web61315.mail.yahoo.com (web61315.mail.yahoo.com [209.73.179.84]) by postgresql.org (Postfix) with SMTP id B297F9F99E2 for ; Sun, 7 Oct 2007 20:05:15 -0300 (ADT) Received: (qmail 20301 invoked by uid 60001); 7 Oct 2007 22:58:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Tc+pV+tSD03AodbMCSXuw6hAj5BaAr6QxV6aCvmLkElDd7vAl8Ry86C0z5ovL8aUO2cMQrvFmHJIBV0PMNk+JTBSa7KRHmE4Fsp8x/yWo1MrQWgsKSObqAAS1STwHok4veOfu44agSSyddZp+DQAvIp+QKJlIG7+0d9Z4K10QlE=; X-YMail-OSG: BNH1.VkVM1lt_e0gaYY9kaYSLsMTQLciJ2RW57clU9K99Z1c7rLOmd58OUCrAYQOxDUY6vDIQXxRVS_sc2ixWjQB7_GjsfYDErNrjcDtkR6RfvxkGbf7Fbeva4qdBiU- Received: from [92.80.214.32] by web61315.mail.yahoo.com via HTTP; Sun, 07 Oct 2007 15:58:32 PDT Date: Sun, 7 Oct 2007 15:58:32 -0700 (PDT) From: "Mike C." Subject: Re: [BUGS] BUG #2856: Jdbc 4 connector running on JDK 1.6 should To: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-572096308-1191797912=:20048" Content-Transfer-Encoding: 8bit Message-ID: <968502.20048.qm@web61315.mail.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/61 X-Sequence-Number: 17633 --0-572096308-1191797912=:20048 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Kris Jurka wrote: On Fri, 28 Sep 2007, Mike C. wrote: > On Fri, 5 Jan 2007, Steve Langridge wrote: > >> At the present time, I am not really interested in actually using the client >> info data at all - I really just need the getClientInfo() and setClientInfo() >> to rather not raise a not-implemented exception. With the JDBC 3 driver >> under Java 1.5, there were no problems, so I presume these methods were >> implemented - it is now a real hassle since when running under Java 1.6, one >> has to use the JDBC 4 driver. >> > > This is getting old, would you accept the naive implementation and > leave the bug open until someone implements the real logic? It's really > a showstopper on Glassfish / JDK 1.6 > I've implemented this in a similar fashion. The Javadoc spec indicates that setting a clientinfo property that isn't supported is an error, so I've done that. So now it won't throw an error on getClientInfo or setClientInfo with a null or empty properties. Can you test this jar file and see if it works for you? http://ejurka.com/pgsql/jars/clientinfo/ Kris Jurka Hi, thanks Michael and Kris for your replies. I have tested your jar and it's allright, the log file is clean and the application works as expected, this with Glassfish build b41d I currently use. I will test later with a more recent build, but I don't expect any different behavior. --------------------------------- Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --0-572096308-1191797912=:20048 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Kris Jurka <books@ejurka.com> wrote:


On Fri, 28 Sep 2007, Mike C. wrote:

> On Fri, 5 Jan 2007, Steve Langridge wrote:
>
>> At the present time, I am not really interested in actually using the client
>> info data at all - I really just need the getClientInfo() and setClientInfo()
>> to rather not raise a not-implemented exception. With the JDBC 3 driver
>> under Java 1.5, there were no problems, so I presume these methods were
>> implemented - it is now a real hassle since when running under Java 1.6, one
>> has to use the JDBC 4 driver.
>>
>
> This is getting old, would you accept the naive implementation and
> leave the bug open until someone implements the real logic? It's really
> a showstopper on Glassfish / JDK 1.6
>

I've implemented this in a similar fashion. The Javadoc spec indicates
that setting a clientinfo property that isn't supported is an error, so
I've done that. So now it won't throw an error on getClientInfo or
setClientInfo with a null or empty properties. Can you test this jar file
and see if it works for you?

http://ejurka.com/pgsql/jars/clientinfo/

Kris Jurka

Hi, thanks Michael and Kris for your replies. I have tested your jar and it's allright, the log file is clean and the application works as expected, this with Glassfish build b41d I currently use. I will test later with a more recent build, but I don't expect any different behavior.
 


Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. --0-572096308-1191797912=:20048--