X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 176129DC84B for ; Tue, 7 Feb 2006 05:27:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93443-08 for ; Tue, 7 Feb 2006 05:27:44 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by postgresql.org (Postfix) with ESMTP id B13339DC83C for ; Tue, 7 Feb 2006 05:27:40 -0400 (AST) Received: by zproxy.gmail.com with SMTP id 14so1350601nzn for ; Tue, 07 Feb 2006 01:27:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kIcZQ8Y7EW9wIKiu+gkSmLho49OMSgoxGRyKfqrLaqv0FAXhG7C55pBvCdr66usINv4zkXG1AOcXXsLe7+d03hsiUmgGcg3fCOQc/MP2lW4pbcjePEFXN5XdYpkaV2hfcv5ryi5gr+ORwBvnF2F7FdGtAs6miAWpYOd0sIAJRyg= Received: by 10.36.97.11 with SMTP id u11mr4686626nzb; Tue, 07 Feb 2006 01:27:42 -0800 (PST) Received: by 10.37.22.44 with HTTP; Tue, 7 Feb 2006 01:27:42 -0800 (PST) Message-ID: <394cd5ed0602070127w70b3db4x@mail.gmail.com> Date: Tue, 7 Feb 2006 10:27:42 +0100 From: Ralph Moser To: pedro farinha , pgsql-jdbc@postgresql.org Subject: Re: Bug Report In-Reply-To: <1139280770.2693.58.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18702_17878697.1139304462297" References: <394cd5ed0602060002n7fffeef0i@mail.gmail.com> <394cd5ed0602060950h15ea9c4cg@mail.gmail.com> <1139280770.2693.58.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.754 required=5 tests=[AWL=-0.192, HTML_10_20=0.945, HTML_MESSAGE=0.001] X-Spam-Score: 0.754 X-Spam-Level: X-Archive-Number: 200602/43 X-Sequence-Number: 14640 ------=_Part_18702_17878697.1139304462297 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Thank you for your help. The hint with the lib directory solved my Problem. The only thing that makes me problems ist the thing with the CachedRowset you wrote about. I hope somebody solves this problem Ralph Moser 2006/2/7, pedro farinha : > > Hi, > Ralph make sure there is no older JDBC jar on the Sun Server class path. > You maybe have a datasource/Data Server type defined referencing an older > jar? look at the SAS Admin for JNDI and Datasources you probably will fin= d > something not 100% as you wanted there, or on Creator on Data Server type > form. > On Creator make sure you delete the Data base server type and recreate > using the newer jar, drop all of the defined datasources with the old DB > Server type, and remove them from the Project (right on the bottom .... > Data source references). > The most important thing though is to search for older versions of the ja= r > in the Sun Server / glassfish, and make sure you delete it, all of them. = ( > if you use SAS8 or GlassFish they should be on /lib) Then recrea= te > the Data sources and add them to the project, build and deploy, this shou= ld > add the required jar postgresql driver to the classpath of the server. A = bit > overkill? yes I also think so, but worked for me. I am 99.99% certain if > you remove the old jar from the SAS classpath and add the new one( or > redefine the DataServerType), it should do it. But hey, that was a > transcript from my notes when I had to doit! Most important for run-time,= is > to make sure the older jar is not there, It is class-loading issue. The > class loader will load the classes once, if it picks the old one first...= .. > > I have found several problems using Postgresql and CachedRowSet, still no= t > 100% if it is a driver problem or a Creator design problem, the bug you > refer it is , I think, a Creator design problem, as postgresql adheres to > the spec ( again on my view). One other issue, a bit more problematic (if > not yet solved) is the setTransactionLevel(), while transaction in progre= ss. > I have overcome that, using a patch from (sorry mate can't remember you'r= e > name) but it basically cancels the exception ( turning it into a > System.out.println('oops'), causing the "obvious" problems to go away. Bu= t > there are others, I couldn't use CachedRowSet to insert and delete, so I > dropped the use of CachedRowSet. Which is OK but not that OK! In the end = of > the day for real things you would need to create a DTO, and well, in that > case you might want to use a Object*DataSource. And that model is really = the > correct approach, I think. On other hand if the only thing you want is to > display a RecordSet in a table the new driver does the job. > > Ok , a bit verbose sorry for that, in 1 line. Make sure no other jar but > the one you want to use are on /lib ;)! > > > On Mon, 2006-02-06 at 17:59, Kris Jurka wrote: > > *On Mon, 6 Feb 2006, Ralph Moser wrote: > > > What i have meant is that in the Creator no error occours. With earlier > > Versions of the driver the Creator reports also an error befor deployin= g the > > app. (After draging a DB Table on a component) The 500DEV is the first > > version wich alows me to drag a DB Table on a component. But if i deplo= y and > > run the app I get the error i reportet before. I am 100% shure that i u= se > > the correct driver at runtime. (Testet on an other PC with only the 500= DEV > > driver installed) > > Well, please send the complete stacktrace from this error and the > datatypes of the table involved. > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly* > > ------=_Part_18702_17878697.1139304462297 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi!

Thank you for your help. The hint with the lib directory solved = my Problem.
The only thing that makes me problems ist the thing with the= CachedRowset you wrote about.
I hope somebody solves this problem

Ralph Moser

2006/2/7, pedro far= inha <pedro@geotaxi.com>:
=20 =20 Hi,
Ralph make sure there is no older JDBC jar on the Sun Server class path. Yo= u maybe have a datasource/Data Server type defined referencing an older jar= ? look at the SAS Admin for JNDI and Datasources you probably will find som= ething not 100% as you wanted there, or on Creator on Data Server type form= .=20
On Creator make sure you delete the Data base server type and recreate usin= g the newer jar, drop all of the defined datasources with the old DB Server= type, and remove them from the Project  (right on the bottom .... Dat= a source references).=20
The most important thing though is to search for older versions of the jar = in the Sun Server / glassfish, and make sure you delete it, all of them. ( = if you use SAS8 or GlassFish they should be on  <server>/lib) Th= en recreate the Data sources and add them to the project, build and deploy,= this should add the required jar postgresql driver to the classpath of the= server. A bit overkill? yes I also think so, but worked for me. I am = =20 99.99% certain if you remove the old jar from the SAS classpath and add the= new one( or redefine the DataServerType), it should do it. But hey, that w= as a transcript from my notes when I had to doit! Most important for run-ti= me, is to make sure the older jar is not there, It is class-loading issue. = The class loader will load the classes once, if it picks the old one first.= ....

I have found several problems using Postgresql and CachedRowSet, still not = 100% if it is a driver problem or a Creator design problem, the bug you ref= er it is , I think, a Creator design problem, as postgresql adheres to the = spec ( again on my view). One other issue, a bit more problematic (if not y= et solved) is the setTransactionLevel(), while transaction in progress. I h= ave overcome that, using a patch from (sorry mate can't remember you're nam= e) but it basically cancels the exception ( turning it into a=20 System.out.println('oops'), causing the "obvious" problems to go = away. But there are others, I couldn't use CachedRowSet to insert and delet= e, so I dropped the use of CachedRowSet. Which is OK but not that OK! In th= e end of the day for real things you would need to create a DTO, and well, = in that case you might want to use a Object*DataSource. And that model is r= eally the correct approach, I think. On other hand if the only thing you wa= nt is to display a RecordSet in a table the new driver does the job.

Ok , a bit verbose sorry for that, in 1 line. Make sure no other jar but th= e one you want to use are on <server>/lib ;)!



On Mon, 2006-02-06 at 17:59, Kris Jurka wrote:
On Mon, 6 Feb 2006, Ralph Moser wrote:
<= br>> What i have meant is that in the Creator no error occours. With ear= lier
> Versions of the driver the Creator reports also an error befor= deploying the
> app. (After draging a DB Table on a component) The 500DEV is the f= irst
> version wich alows me to drag a DB Table on a component. But i= f i deploy and
> run the app I get the error i reportet before. I am = 100% shure that i use
> the correct driver at runtime. (Testet on an other PC with only th= e 500DEV
> driver installed)

Well, please send the complete st= acktrace from this error and the
datatypes of the table involved.

---------------------------(end of broadcast)--------------------------= -
TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to majordomo@postgresql.org so that your
message can get through= to the mailing list cleanly

------=_Part_18702_17878697.1139304462297--