Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCA7i-0002NU-VL for pgsql-jdbc@arkaria.postgresql.org; Tue, 29 Jul 2014 16:19:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCA7i-00057f-9U for pgsql-jdbc@arkaria.postgresql.org; Tue, 29 Jul 2014 16:19:34 +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 1XCA7g-00057Z-VQ for pgsql-jdbc@postgresql.org; Tue, 29 Jul 2014 16:19:33 +0000 Received: from nm26-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.74]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCA7a-00086S-GR for pgsql-jdbc@postgresql.org; Tue, 29 Jul 2014 16:19:31 +0000 Received: from [66.196.81.174] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 29 Jul 2014 16:19:23 -0000 Received: from [98.139.212.249] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 29 Jul 2014 16:19:23 -0000 Received: from [127.0.0.1] by omp1058.mail.bf1.yahoo.com with NNFMP; 29 Jul 2014 16:19:23 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 116401.81935.bm@omp1058.mail.bf1.yahoo.com Received: (qmail 38869 invoked by uid 60001); 29 Jul 2014 16:19:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1406650763; bh=FdO7xe4vjrhFKDCyzMpTqkoeDQTQ10VdMIvFtiiHdQY=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=uNz48JQObs+yo1UahV5Ot0OTznqUnDqmXDk8Xh39Nqh0bQbIPxylnYEuQn6vMQmeV9l0cLBu4GmPGfWbREjWDL9xFnX+Doig9JQF4aerY5e1c15aw0pgyjmkG8YNwP915+7etg1VvGNvSLkuirBbJ7qmOQy03bCQqfhGmwXx78g= X-YMail-OSG: GeyEJvgVM1m_aCKtfLX_FuE9hPCBmHh9ssSZG4b_lWQYXjO AYpBk6SISXpOmkLV7TyiuG8UG5nFiaKJj_vQAMvpR3_OkccsNy02iTD7I1_q 8AVrRYz8uRKYLKxZL_wgBhC2fyhqKc1exF37WuBZ7I9WneenUnuB9t9Hnrtb EAHSkaKDl9ozW8Zgwbt3bvxHS2EyT8M2SMav07O0O4T.mzWsQ3GclMXTSsa_ HOtzINMXST8bbicR5AbrdSl601AwpB0WNknT9FkPk8FCZJjwRUTCu08Ob9fO DPmwESGkmj_AFdoW8iLiRz9NhuCebwZxQ51DcjPdRSnq2pCNVSbte6Oq7FGW XSjQsKcpsVusDGl9G_rSH8zierxOGMejpzfROYwJqWZetSiuWHj1Q4Q_9ivz i.Daqfk4h7sR4kxEpfaUIdDmFCIrIEwIx9wOeI8tuEhCVZ4v9ZxEa7DyRRPM QFCHvQGBw_Q5aPqePBpUTONCxmpMNkpYH9VjlCOYMPfFMaz2sgsbwhCRGhAn f9urzzRbtm7kjHXW0A_kxiROuIsGykgM.d915MzDl6I8ujaZFGCMnXGh0P3x 1_wA8Ka_7CC2OxAfU0M08uZPlYXf1f4ypjoWKWNI- Received: from [207.156.55.2] by web162905.mail.bf1.yahoo.com via HTTP; Tue, 29 Jul 2014 09:19:22 PDT X-Rocket-MIMEInfo: 002.001, U28gaGVyZSdzIHdoZXJlIEkgYW0gbm93LiBJIGNhbiBub3cgcG9pbnQgbXkgZmluZ2VyIGF0IFRvbWNhdCA3IERCQ1AgYmVpbmcgdGhlIHdlYWsgbGluay4KClJldHJpZXZpbmcgZGF0YSBmcm9tIHRoZSBkYXRhYmFzZSB3aXRoIHBsYWluIEpEQkMgaW4gYSBtYWluIG1ldGhvZCB3b3Jrcy4KUmV0cmlldmluZyBkYXRhIGZyb20gdGhlIGRhdGFiYXNlIGNvLW9wdGluZyBUb21jYXQgSk5ESSBuYW1pbmcgcm91dGluZXMgZnJvbSB0b21jYXQtY2F0YWxpbmEtNy4wLjUzIGluIGEgbWFpbiBtZXRob2Qgd29ya3MuClIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.196.685 References: <1406131842.96108.YahooMailNeo@web162901.mail.bf1.yahoo.com> <1406142837.33674.YahooMailNeo@web162903.mail.bf1.yahoo.com> <1406301644.98332.YahooMailNeo@web162906.mail.bf1.yahoo.com> Message-ID: <1406650762.83756.YahooMailNeo@web162905.mail.bf1.yahoo.com> Date: Tue, 29 Jul 2014 09:19:22 -0700 From: CG Reply-To: CG Subject: Re: Upgrade to Scientific Linux 6.5 x86_64 breaks query To: Dave Cramer Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <1406301644.98332.YahooMailNeo@web162906.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-2143897565-625173833-1406650762=:83756" X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org ---2143897565-625173833-1406650762=:83756 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable So here's where I am now. I can now point my finger at Tomcat 7 DBCP being = the weak link.=0A=0ARetrieving data from the database with plain JDBC in a = main method works.=0ARetrieving data from the database co-opting Tomcat JND= I naming routines from tomcat-catalina-7.0.53 in a main method works.=0ARet= rieving data from the database with plain JDBC running in a servlet under t= omcat works.=0ARetrieving data from the database using tomcat's built-in co= ntext DBCP connection pooling in a servlet fails.=0A=0AClearing up a few mi= stakes I made in round one: We're using Centos and not Scientific Linux. Sm= all and possibly irrelevant detail, but a detail none the less.=0AI also ov= erstated the problem target was Centos 6.5 x86_64 over Centos 6.5 i686.=A0= =0AI have been able to demonstrate that Tomcat 6 works on Centos 6.5 x86_64= through DBCP connection pooling while Tomcat 7 on the same server fails.= =A0=0AI can run Tomcat 7 on Centos 6.5 i686 and fail.=0A=0AI can run Tomcat= 7 on Windows and not fail. This is odd, and probably will need some furthe= r examining...=0A=0AMy new problem target looks like it is PostgreSQL JDBC = running through Tomcat 7 DBCP connection pooling on Centos 6.5.=0A=0AThere = is one interesting difference between Tomcat 6 and Tomcat 7 that I can see = in the JDBC logs:=0A=0AThis appears in Tomcat 6 logs. It does not appear in= Tomcat 7 logs:=0A=0A15:15:23.689 (2) =A0<=3DBE ReadyForQuery(I)=0A15:15:23= .689 (2) =A0 =A0 compatible =3D 8.3=0A15:15:23.689 (2) =A0 =A0 loglevel =3D= 2=0A15:15:23.690 (2) =A0 =A0 prepare threshold =3D 5=0A15:15:23.715 (2) si= mple execute, handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Statement$Stateme= ntResultHandler@1364ee5, maxRows=3D0, fetchSize=3D0, flags=3D17=0A15:15:23.= 716 (2) =A0FE=3D> Parse(stmt=3Dnull,query=3D"SELECT oid FROM pg_catalog.pg_= type WHERE typname =3D $1",oids=3D{0})=0A15:15:23.716 (2) =A0FE=3D> Bind(st= mt=3Dnull,portal=3Dnull,$1=3D)=0A15:15:23.717 (2) =A0FE=3D> Descr= ibe(portal=3Dnull)=0A15:15:23.717 (2) =A0FE=3D> Execute(portal=3Dnull,limit= =3D0)=0A15:15:23.717 (2) =A0FE=3D> Sync=0A15:15:23.720 (2) =A0<=3DBE ParseC= omplete [null]=0A15:15:23.720 (2) =A0<=3DBE BindComplete [null]=0A15:15:23.= 722 (2) =A0<=3DBE RowDescription(1)=0A15:15:23.724 (2) =A0<=3DBE DataRow=0A= 15:15:23.724 (2) =A0<=3DBE CommandStatus(SELECT 1)=0A15:15:23.740 (2) =A0<= =3DBE ReadyForQuery(I)=0A=0AAnd that is what is missing from Tomcat 7. Tomc= at 7 goes straight for the SQL prepare without examining the PGInterval par= ameter and determining the internal type.=0A=0AMaybe someone knows what tri= ggers this pre-prepare inspection step?=0A=0A=0A=0AOn Friday, July 25, 2014= 11:24 AM, CG wrote:=0A =0A=0A=0A@Tom : Digging around i= n the JDBC output logs, I have confirmed that both 32bit and 64bit servers = are using protocol version 3 to communicate with our PostgreSQL server. Als= o, we've been very methodical to keep the environment as-same-as-possible b= etween the servers. All the artifacts and configs were copied over unchange= d.=0A=0A=0A@Dave : As you suggest, my next steps are going to be trying to = create the simplest example that can repeatably demonstrate the problem.=A0= =0A=0APsql is fine. "PREPARE foo (interval) AS SELECT * FROM t_vectors WHER= E trans_date BETWEEN now() - $1 AND now();" executes as expected.=0A=0AThe = full application environment has quite a few working parts. On one side, we= 're using MyBatis 2.3.5 to handle data access at the code level. On the oth= er side is Tomcat's JNDI connection pooling. Right in the middle is the Pos= tgreSQL JDBC driver. My gut says there's something up with JDBC client-side= prepare, but I'll start by eliminating MyBatis and connection pooling so I= 'm not pointing my finger at the wrong thing.=0A=0AI'll be back with some m= ore data soon! Thanks all.=0A=0ACG=0A=0A=0AOn Thursday, July 24, 2014 8:09 = AM, Dave Cramer wrote:=0A =0A=0A=0ADo you still have acc= ess to the 32 bit system?=0A=0AI'd be curious what happens if you try prepa= ring a statement on each that just has the between=A0=0A=0Aso prepare foo (= interval) as select * from xxx where trans_date between now()-?=0A=0Ausing = psql ?=0A=0A=0ADave Cramer=0A=0Adave.cramer(at)credativ(dot)ca=0Ahttp://www= .credativ.ca=0A=0A=0A=0AOn 23 July 2014 15:13, CG wrote:= =0A=0A=0A>=0A>I can change the SQL statement around to get it to run.=A0=0A= >=0A>=0A>The parenthesis don't work, but if I explicitly cast that second p= arameter to interval "CAST( $2 AS interval)" I can force it to work. That's= not ideal.=0A>=0A>=0A>I don't think it is the lack of an operator. Timesta= mptz should not be comparable directly to an interval, right? That's like s= aying "2 + 2 >=3D Orange" or "today is greater than a minute". I think some= thing is eating that first "now() -" so that what is being prepared looks l= ike "trans_date between $2 and now()".=0A>=0A>=0A>The question is what is c= ausing valid SQL, prepared properly on 32bit linux to fail to prepare prope= rly on 64bit linux? Based on that log, it looks like client-side prepare is= falling down.=0A>=0A>=0A>=0A>On Wednesday, July 23, 2014 1:49 PM, Dave Cra= mer wrote:=0A> =0A>=0A>=0A>The crux of the problem is th= is: =A0ERROR: operator does not exist: timestamp with time zone >=3D interv= al=0A>=0A>=0A>which appears to be caused by=A0trans_date between now() - $2= and now()=0A>=0A>=0A>What happens if you change it to :=0A>=0A>=0A>trans_d= ate between (now() - $2) and now()=0A>=0A>=0A>=0A>=0A>=0A>=0A>=0A>Dave Cram= er=0A>=0A>dave.cramer(at)credativ(dot)ca=0A>http://www.credativ.ca=0A>=0A>= =0A>=0A>On 23 July 2014 12:10, CG wrote:=0A>=0A>Using Po= stgreSQL 9.1.3; JDBC3 driver (tried several versions-- all suffer from the = same issue); MyBatis 2.3.5=A0=0A>>=0A>>We're migrating our app to a virtual= ized 64bit Linux server from a virtualized 32bit Linux server, same farm. W= hat worked fine on 32bit Scientific Linux breaks on 64bit... Same JVM versi= on (although we tried 64 and 32 bit JVM both with same issue). We've done o= ur best to make sure the ONLY thing different is the 64bit OS. Hitting the = same 9.1.3 back end...=0A>>=0A>>We've been sifting through everything and w= e can't conceive of what could possibly cause this problem. Also, this quer= y runs fine on other platforms.=0A>>=0A>>Maybe you can see something I can'= t:=0A>>=0A>>10:02:40.596 (2) =A0<=3DBE ReadyForQuery(I)=0A>>10:02:40.601 (2= ) simple execute, handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Statement$Sta= tementResultHandler@1792d2c, maxRows=3D0, fetchSize=3D0, flags=3D1=0A>>10:0= 2:40.601 (2) =A0FE=3D> Bind(stmt=3DS_1,portal=3Dnull)=0A>>10:02:40.601 (2) = =A0FE=3D> Execute(portal=3Dnull,limit=3D0)=0A>>10:02:40.601 (2) =A0FE=3D> P= arse(stmt=3Dnull,query=3D" =A0 =A0 =A0select =A0 =A0t_uuid as t_uuid, =A0 = =A0last(latitude) as latitude, =A0 =A0last(longitude) as longitude, =A0 =A0= last(trans_date) as trans_date, =A0 =A0last(speed) as speed, =A0 =A0last(di= rection) as direction, =A0 =A0last(revision) as revision =A0 from ( =A0 =A0= =A0 SELECT =A0 =A0 trans_date, =A0 =A0 t_uuid, =A0 =A0 latitude, =A0 =A0 l= ongitude, =A0 =A0 speed, =A0 =A0 direction, =A0 =A0 revision =A0 =A0FROM = =A0 =A0 t_vectors =A0 =A0WHERE =A0 =A0 group_uuid =3D $1 =A0 =A0 and trans_= date between now() - $2 and now() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 AND =A0 =A0 =A0 t_uuid in =A0 =A0 =A0 =A0( =A0 =A0 =A0 =A0$3 =A0 =A0 = =A0 , =A0 =A0 =A0 =A0$4 =A0 =A0 =A0 ,=0A =A0 =A0 =A0 =A0$5 =A0 =A0 =A0 , = =A0 =A0 =A0 =A0$6 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$7 =A0 =A0 =A0 , =A0 =A0 =A0= =A0$8 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$9 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$10 =A0= =A0 =A0 , =A0 =A0 =A0 =A0$11 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$12 =A0 =A0 =A0 = , =A0 =A0 =A0 =A0$13 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$14 =A0 =A0 =A0 , =A0 =A0= =A0 =A0$15 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$16 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$= 17 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$18 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$19 =A0 = =A0 =A0 , =A0 =A0 =A0 =A0$20 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$21 =A0 =A0 =A0 ,= =A0 =A0 =A0 =A0$22 =A0 =A0 =A0 ,=0A =A0 =A0 =A0 =A0$23 =A0 =A0 =A0 , =A0 = =A0 =A0 =A0$24 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$25 =A0 =A0 =A0 ,=0A>>=A0 =A0 $= 26 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$27 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$28 =A0 = =A0 =A0 , =A0 =A0 =A0 =A0$29 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$30 =A0 =A0 =A0 ,= =A0 =A0 =A0 =A0$31 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$32 =A0 =A0 =A0 , =A0 =A0 = =A0 =A0$33 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$34 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$3= 5 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$36 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$37 =A0 =A0= =A0 , =A0 =A0 =A0 =A0$38 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$39 =A0 =A0 =A0 , = =A0 =A0 =A0 =A0$40 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$41 =A0 =A0 =A0 , =A0 =A0 = =A0 =A0$42 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$43 =A0 =A0 =A0 , =A0=0A =A0 =A0 = =A0$44 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$45 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$46 = =A0 =A0 =A0 , =A0 =A0 =A0 =A0$47 =A0 =A0 =A0 , =A0 =A0 =A0 =A0$48 =A0 =A0 = =A0 , =A0 =A0 =A0 =A0$49 =A0 =A0 =A0 ) =A0 =A0 =A0 =A0 =A0 =A0 =A0 order by= =A0 =A0 trans_date asc =A0 =A0 =A0 ) foo =A0 group by =A0 =A0t_uuid =A0",o= ids=3D{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0})=0A>>10:02:40.601 (2) =A0FE=3D> Bind(stmt=3D= null,portal=3Dnull,$1=3D<394fa90e-75a3-4dd1-9205-341409bcba4b>,$2=3D<0 year= s 0 mons 0 days 1 hours 0 mins 0.00=0A>>=0A=A0secs>,$3=3D,$4=3D<3552acd6-e294-4d88-bd67-a856b4f5965c>,$5=3D<881d= 0513-37b9-4935-8051-b66552bada74>,$6=3D,$7=3D,$8=3D<13c75de7-1e73-4dcd-906= b-cee83ee0212e>,$9=3D<362d4c76-c09d-4e4f-8c05-821e9d46ba83>,$10=3D<76e02c3d= -c108-443a-9cb3-6a1e138f00c6>,$11=3D,= $12=3D<197c368a-669c-4d44-867b-6382726bae99>,$13=3D<8ae1f446-8364-4061-a89e= -0058735cd35a>,$14=3D,$15=3D<7a4777eb= -3767-43f8-9d67-f1caf3eff2b4>,$16=3D,= $17=3D<8f4c2594-b368-43d2-8a27-8af24dc92512>,$18=3D<10ad0508-9eca-47e3-96f5= -99745fbdcede>,$19=3D<112944c7-eef0-49c3-af79-9b54b484ca0c>,$20=3D,$21=3D,= $22=3D<3448505e-b740-4084-8=0A91e-e2ff34c3754f>,$23=3D<8a3b486d-5e41-46e1-9= 9fa-51f4f38af2fa>,$24=3D,$25=3D<12a70= 091-0853-44=0A>>99-8f05-d80e3045ce5e>,$26=3D,$27=3D<5b41b6cb-de51-40ff-8488-7f3403b1f0a8>,$28=3D<83a3fe9b-cfb5-4= 908-b5fb-5b32a7be5eb1>,$29=3D<0a963150-eea0-4396-aa2a-9319ca9c9866>,$30=3D<= 0346505e-98be-4585-aeea-3b38df4a56a2>,$31=3D<069bf54d-c230-4bef-884b-46e54e= 28c65e>,$32=3D<8286bd41-ccd1-47bd-a1aa-1631d3ccbd56>,$33=3D,$34=3D<72f2af01-c359-45f9-bb20-37c7479869f3>,$35=3D<= 0143076a-3f9e-487d-bdec-c1a6a110f748>,$36=3D<2bc64e73-c771-43c8-aa83-b11059= 512a0f>,$37=3D,$38=3D<3c43a0dd-292a-4= 4cc-a097-ab2f77757d25>,$39=3D<8b84e953-d6a9-42ae-9caa-481c164354db>,$40=3D<= 26d842b6-71e2-438f-a147-e18d102d21d5>,$41=3D,$42=3D,$43=3D,$44=3D,$45=3D<= 70d=0A2924f-c8cb-4594-a67b-261ca300406e>,$46=3D<60ad8ae8-4722-4a02-8d4f-88a= 0052299fc>,$47=3D<350558cc-e56f-4fb2-86f8-3d3252b56bce>=0A>>=0A>>,$48=3D,$49=3D<2e5ecda2-bfdd-400a-a48a-e08e07d4= ced4>)=0A>>10:02:40.602 (2) =A0FE=3D> Describe(portal=3Dnull)=0A>>10:02:40.= 602 (2) =A0FE=3D> Execute(portal=3Dnull,limit=3D0)=0A>>10:02:40.602 (2) =A0= FE=3D> Sync=0A>>10:02:40.604 (2) =A0<=3DBE BindComplete [null]=0A>>10:02:40= .604 (2) =A0<=3DBE CommandStatus(BEGIN)=0A>>10:02:40.607 (2) =A0<=3DBE Erro= rMessage(ERROR: operator does not exist: timestamp with time zone >=3D inte= rval=0A>>=A0 Hint: No operator matches the given name and argument type(s).= You might need to add explicit type casts.=0A>>=A0 Position: 410)=0A>>org.= postgresql.util.PSQLException: ERROR: operator does not exist: timestamp wi= th time zone >=3D interval=0A>>=A0 Hint: No operator matches the given name= and argument type(s). You might need to add explicit type casts.=0A>>=A0 P= osition: 410=0A>>=A0 =A0 =A0 =A0 at org.postgresql.core.v3.QueryExecutorImp= l.receiveErrorResponse(QueryExecutorImpl.java:1592)=0A>>=A0 =A0 =A0 =A0 at = org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.j= ava:1327)=0A>>=A0 =A0 =A0 =A0 at org.postgresql.core.v3.QueryExecutorImpl.e= xecute(QueryExecutorImpl.java:192)=0A>>=A0 =A0 =A0 =A0 at org.postgresql.jd= bc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:451)=0A>>=A0= =A0 =A0 =A0 at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlag= s(AbstractJdbc2Statement.java:350)=0A>>=A0 =A0 =A0 =A0 at org.postgresql.jd= bc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:343)=0A>>=A0= =A0 =A0 =A0 at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.exe= cute(DelegatingPreparedStatement.java:172)=0A>>=A0 =A0 =A0 =A0 at org.apach= e.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedSt= atement.java:172)=0A>>=A0 =A0 =A0 =A0 at com.ibatis.sqlmap.engine.execution= .DefaultSqlExecutor.executeQuery(DefaultSqlExecutor.java:183)=0A>>=A0 =A0 = =A0 =A0 at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlEx= ecuteQuery(MappedStatement.java:221)=0A>>=A0 =A0 =A0 =A0 at com.ibatis.sqlm= ap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(Mapped= Statement.java:189)=0A>>=A0 =A0 =A0 =A0 at com.ibatis.sqlmap.engine.mapping= .statement.MappedStatement.executeQueryForList(MappedStatement.java:139)=0A= >>=A0 =A0 =A0 =A0 at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.q= ueryForList(SqlMapExecutorDelegate.java:578)=0A>>=A0 =A0 =A0 =A0 at com.iba= tis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDe= legate.java:552)=0A>>=A0 =A0 =A0 =A0 at com.ibatis.sqlmap.engine.impl.SqlMa= pSessionImpl.queryForList(SqlMapSessionImpl.java:118)=0A>>=A0 =A0 =A0 =A0 a= t com.foo.service.db.ibatis.lib.SqlMapExecutor.queryForList(SqlMapExecutor.= java:139)=0A>>=A0 =A0 =A0 =A0 at com.foo.service.db.ibatis.DepDaoIbatis.use= rsList(DepDaoIbatis.java:3352)=0A>>=A0 =A0 =A0 =A0 at com.foo.util.Util.fet= chSettings(Util.java:109)=0A>>=A0 =A0 =A0 =A0 at com.foo.util.Util.fetchUpd= ates(Util.java:221)=0A>>=A0 =A0 =A0 =A0 at com.foo.util.Util.fetchInit(Util= .java:168)=0A>>=A0 =A0 =A0 =A0 at com.foo.service.process.InitProcessor.pro= cess(InitProcessor.java:57)=0A>>=A0 =A0 =A0 =A0 at com.foo.service.process.= InitProcessor.process(InitProcessor.java:29)=0A>>=A0 =A0 =A0 =A0 at com.foo= .service.scaffolding.AbstractProcessor.process(AbstractProcessor.java:55)= =0A>>=A0 =A0 =A0 =A0 at com.foo.service.scaffolding.AbstractProcessor.proce= ss(AbstractProcessor.java:28)=0A>>=A0 =A0 =A0 =A0 at com.restservice.proces= s.AuthenticatedProcessor.process(AuthenticatedProcessor.java:38)=0A>>=A0 = =A0 =A0 =A0 at com.restservice.process.AuthenticatedProcessor.process(Authe= nticatedProcessor.java:12)=0A>>=A0 =A0 =A0 =A0 at com.restservice.process.S= erializedProcessor.processRequest(SerializedProcessor.java:74)=0A>>=A0 =A0 = =A0 =A0 at com.restservice.process.SerializedProcessor.process(SerializedPr= ocessor.java:59)=0A>>=A0 =A0 =A0 =A0 at com.restservice.RestService.process= (RestService.java:224)=0A>>=A0 =A0 =A0 =A0 at com.restservice.RestService.p= rocessWrapper(RestService.java:122)=0A>>=A0 =A0 =A0 =A0 at com.restservice.= RestService.doPost(RestService.java:101)=0A>>=A0 =A0 =A0 =A0 at javax.servl= et.http.HttpServlet.service(HttpServlet.java:646)=0A>>=A0 =A0 =A0 =A0 at ja= vax.servlet.http.HttpServlet.service(HttpServlet.java:727)=0A>>=A0 =A0 =A0 = =A0 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App= licationFilterChain.java:303)=0A>>=A0 =A0 =A0 =A0 at org.apache.catalina.co= re.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)=0A>>=A0= =A0 =A0 =A0 at org.apache.catalina.filters.SetCharacterEncodingFilter.doFi= lter(SetCharacterEncodingFilter.java:108)=0A>>=A0 =A0 =A0 =A0 at org.apache= .catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCha= in.java:241)=0A>>=A0 =A0 =A0 =A0 at org.apache.catalina.core.ApplicationFil= terChain.doFilter(ApplicationFilterChain.java:208)=0A>>=A0 =A0 =A0 =A0 at c= om.foo.util.GZIPFilter.doFilter(GZIPFilter.java:33)=0A>>=A0 =A0 =A0 =A0 at = org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio= nFilterChain.java:241)=0A>>=A0 =A0 =A0 =A0 at org.apache.catalina.core.Appl= icationFilterChain.doFilter(ApplicationFilterChain.java:208)=0A>>=A0 =A0 = =A0 =A0 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWra= pperValve.java:220)=0A>>=A0 =A0 =A0 =A0 at org.apache.catalina.core.Standar= dContextValve.invoke(StandardContextValve.java:122)=0A>>=A0 =A0 =A0 =A0 at = org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBas= e.java:501)=0A>>=A0 =A0 =A0 =A0 at org.apache.catalina.core.StandardHostVal= ve.invoke(StandardHostValve.java:171)=0A>>=A0 =A0 =A0 =A0 at com.googlecode= .psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)=0A>>=A0 =A0= =A0 =A0 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportV= alve.java:102)=0A>>=A0 =A0 =A0 =A0 at org.apache.catalina.valves.AccessLogV= alve.invoke(AccessLogValve.java:950)=0A>>=A0 =A0 =A0 =A0 at org.apache.cata= lina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)=0A>>=A0 = =A0 =A0 =A0 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd= apter.java:408)=0A>>=A0 =A0 =A0 =A0 at org.apache.coyote.http11.AbstractHtt= p11Processor.process(AbstractHttp11Processor.java:1040)=0A>>=A0 =A0 =A0 =A0= at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Ab= stractProtocol.java:607)=0A>>=A0 =A0 =A0 =A0 at org.apache.tomcat.util.net.= JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)=0A>>=A0 =A0 =A0 =A0 a= t java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor= .java:886)=0A>>=A0 =A0 =A0 =A0 at java.util.concurrent.ThreadPoolExecutor$W= orker.run(ThreadPoolExecutor.java:908)=0A>>=A0 =A0 =A0 =A0 at org.apache.to= mcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)=0A>>= =A0 =A0 =A0 =A0 at java.lang.Thread.run(Thread.java:662)=0A>>=0A>>=0A>>--= =0A>>Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)=0A>>To ma= ke changes to your subscription:=0A>>http://www.postgresql.org/mailpref/pgs= ql-jdbc=0A>>=0A>=0A>=0A> ---2143897565-625173833-1406650762=:83756 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
So her= e's where I am now. I can now point my finger at Tomcat 7 DBCP being the we= ak link.

Retrieving data fro= m the database with plain JDBC in a main method works.
Retrieving data from the database co-opting Tomcat= JNDI naming routines from tomcat-catalina-7.0.53 in a main method works.
Retrieving da= ta from the database with plain JDBC running in a servlet under tomcat work= s.
Retrievin= g data from the database using tomcat's built-in context DBCP connection po= oling in a servlet fails.

Clearing up a few mistakes I made in round one: We= 're using Centos and not Scientific Linux. Small and possibly irrelevant de= tail, but a detail none the less.
I also overstated the problem target was Centos 6.5 x= 86_64 over Centos 6.5 i686. 
I have been able to demonstrate that Tomcat 6 wor= ks on Centos 6.5 x86_64 through DBCP connection pooling while Tomcat 7 on t= he same server fails. 
I can run Tomcat 7 on Centos 6.5 i686 and fail.

My new problem target looks like i= t is PostgreSQL JDBC running through Tomcat 7 DBCP connection pooling on Ce= ntos 6.5.
There is one interesting difference between Tomcat 6 and Tomca= t 7 that I can see in the JDBC logs:

This appears in Tomcat 6 logs. It does not appe= ar in Tomcat 7 logs:

15:15:23.689 (2)  <=3DBE ReadyForQuery(I)
15:15:23.689 (2= )     compatible =3D 8.3
15:15:23.689 (2)     loglevel =3D 2
15:15:23.690 (2)   &nbs= p; prepare threshold =3D 5
15:15:23.715 (2) simple execute, handler=3Dorg.postgresql.jdb= c2.AbstractJdbc2Statement$StatementResultHandler@1364ee5, maxRows=3D0, fetc= hSize=3D0, flags=3D17
15:15:23.716 (2)  FE=3D> Parse(stmt=3Dnull,query=3D"SELECT= oid FROM pg_catalog.pg_type WHERE typname =3D $1",oids=3D{0})
15:15:23.716 (2)  FE= =3D> Bind(stmt=3Dnull,portal=3Dnull,$1=3D<interval>)
15:15:23.717 (2)  FE= =3D> Describe(portal=3Dnull)
15:15:23.717 (2)  FE=3D> Execute(portal=3Dnull,l= imit=3D0)
15:15:23.717 (2)  FE=3D> Sync
15:15:23.720 (2)  <=3DBE Parse= Complete [null]
15:15:23.720 (2)  <=3DBE BindComplete [null]
15:15:23.722 (2)  <=3DBE= RowDescription(1)
15:15:23.724 (2)  <=3DBE DataRow
15:15:23.724 (2)  <=3DBE CommandS= tatus(SELECT 1)
15:15:23.740 (2)  <=3DBE ReadyForQuery(I)

And that is what is missing from Tomcat 7. Tomcat 7 goes straight for the SQL prepa= re without examining the PGInterval parameter and determining the internal = type.

Maybe someone= knows what triggers this pre-prepare inspection step?

=


On= Friday, July 25, 2014 11:24 AM, CG <cgg007@yahoo.com> wrote:


@Tom : Digg= ing around in the JDBC output logs, I have confirmed that both 32bit and 64bit servers are using protocol version 3 to communicate w= ith our PostgreSQL server. Also, we've been very methodical to keep the env= ironment as-same-as-possible between the servers. All the artifacts and con= figs were copied over unchanged.

<= div class=3D"" style=3D"">
@Dave : As you suggest, my next steps are going to be= trying to create the simplest example that can repeatably demonstrate the = problem. 

Psql is fine. "PREPARE foo (inte= rval) AS SELECT * FROM t_vectors WHERE trans_date BETWEEN now() - $1 AND no= w();" executes as expected.

The full a= pplication environment has quite a few working parts. On one side, we're us= ing MyBatis 2.3.5 to handle=0A data access at the code level. On the other = side is Tomcat's JNDI connection pooling. Right in the middle is the Postgr= eSQL JDBC driver. My gut says there's something up with JDBC client-side pr= epare, but I'll start by eliminating MyBatis and connection pooling so I'm = not pointing my finger at the wrong thing.

I'll be back with some more data soon! Thanks all.

CG


=
= On Thursday, July 24, 2014 8:09 AM, Dave Cramer <pg@fastcrypt.com> w= rote:


Do you still = have access to the 32 bit system?

I'd be curious w= hat happens if you try preparing a statement on each that just has the between 

so prepare foo (interval) as = select * from xxx where trans_date between now()-?
=0A=0A

using psql ?
=0A

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca
=0A
On 23 July 2014 15:13, CG <cgg007@yahoo.com> wrote:<= br clear=3D"none" class=3D"" style=3D"">
=0A=0A


<= div class=3D"" style=3D"color:rgb(0,0,0);font-size:16px;font-family:Helveti= caNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;fon= t-style:normal;background-color:transparent;">=0A=0AThe parenthesis don't w= ork, but if I explicitly cast that second parameter to interval "CAST( $2 A= S interval)" I can force it to work. That's not ideal.
=0A=0A
I don't think it= is the lack of an operator. Timestamptz should not be comparable directly = to an interval, right? That's like saying "2 + 2 >=3D Orange" or "today = is greater than a minute". I think something is eating that first "now() -"= so that what is being prepared looks like "trans_date between $2 and now()= ".
=0A=0A

=0A=0AThe question is what is causing valid SQL, prepared properly on = 32bit linux to fail to prepare properly on 64bit linux? Based on that log, = it looks like client-side prepare is falling down.


=0A=0A
=0A=0A
On Wednesday, July 23, 2014 1:49 PM, Dave Cramer <pg@fastcrypt.com> wrote:


=0A=0A
The crux of the problem is this:  ERROR: operator does not= exist: timestamp with time zone >=3D=0A interval

=0A=0A
which appears to = be caused by trans_date between now() - $2 and now()
=

=0A=0A=0A=0A
What happens if you change it to :

trans_date= between (now() - $2) and now()
=0A=0A=0A=0A


On = 23 July 2014 12:10, CG <cgg007@yahoo= .com> wrote:
=0A=0A
=0A=0AUsing PostgreSQL = 9.1.3; JDBC3 driver (tried several versions-- all suffer from the same issu= e); MyBatis 2.3.5 
=0A
=0AWe're migrating our app to a virtualize= d 64bit Linux server from a virtualized 32bit Linux server, same farm. What= worked fine on 32bit Scientific Linux breaks on 64bit... Same JVM version = (although we tried 64 and 32 bit JVM both with same issue). We've done our = best to make sure the ONLY thing different is the 64bit OS. Hitting the sam= e 9.1.3 back end...
=0A=0A=0A=0A=0A=
=0AWe've been sifting through ever= ything and we can't conceive of what could possibly cause this problem. Als= o, this query runs fine on other platforms.
=0A
=0AMaybe you can see s= omething I can't:
=0A
=0A10:02:40.596 (2)  <=3DBE ReadyForQuer= y(I)
=0A10:02:40.601 (2) simple exe= cute, handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Statement$StatementResult= Handler@1792d2c, maxRows=3D0, fetchSize=3D0, flags=3D1
=0A10:02:40.601 (2)  FE=3D> Bind(stmt=3DS_1,por= tal=3Dnull)
=0A10:02:40.601 (2) &nb= sp;FE=3D> Execute(portal=3Dnull,limit=3D0)
=0A10:02:40.601 (2)  FE=3D> Parse(stmt=3Dnull,query=3D" =      select    t_uuid as t_uuid,    last= (latitude) as latitude,    last(longitude) as longitude,   &= nbsp;last(trans_date) as trans_date,    last(speed) as speed, &nb= sp;  last(direction) as direction,    last(revision) as revi= sion   from (       SELECT     trans_date, &n= bsp;   t_uuid,     latitude,     longitude,  =   speed,     direction,     revision    = ;FROM     t_vectors    WHERE     group_uuid = =3D $1     and trans_date between now() - $2 and now()   &nb= sp;                   AND &nbs= p;     t_uuid in        (      = ;  $3       ,        $4   &nbs= p;   ,=0A        $5       ,   =      $6       ,        $7=       ,        $8       = ,        $9       ,      =  $10       ,        $11   &nb= sp;   ,        $12       ,   &= nbsp;    $13       ,        $1= 4       ,        $15      = ; ,        $16       ,     &nb= sp;  $17       ,        $18   =     ,        $19       ,  = ;      $20       ,        = ;$21       ,        $22     &n= bsp; ,=0A        $23       ,   &nbs= p;    $24       ,        $25 &= nbsp;     ,
=0A=0A=0A&nbs= p;   $26       ,        $27   =     ,        $28       ,  = ;      $29       ,        = ;$30       ,        $31     &n= bsp; ,        $32       ,     =    $33       ,        $34 &nbs= p;     ,        $35       , &n= bsp;      $36       ,       &n= bsp;$37       ,        $38    =   ,        $39       ,   &nbs= p;    $40       ,        $41 &= nbsp;     ,        $42       ,=        $43       ,  =0A   &nb= sp;  $44       ,        $45   =     ,        $46       ,  = ;      $47       ,        = ;$48       ,        $49     &n= bsp; )               order by   &nb= sp; trans_date asc       ) foo   group by    = t_uuid  ",oids=3D{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0})
=0A=0A=0A=0A=0A10:02:40.601 (2)  FE=3D> Bind(stmt=3Dnu= ll,portal=3Dnull,$1=3D<394fa90e-75a3-4dd1-9205-341409bcba4b>,$2=3D<= ;0 years 0 mons 0 days 1 hours 0 mins 0.00
=0A secs>,$3=3D<cdd1aa29-48ae-4a8d-884f-43ea795def= de>,$4=3D<3552acd6-e294-4d88-bd67-a856b4f5965c>,$5=3D<881d0513-= 37b9-4935-8051-b66552bada74>,$6=3D<fa21ec58-47e7-478a-b8b0-42a937200e= 70>,$7=3D<ec909e6b-c214-4fbe-aea0-9baf4a33b54a>,$8=3D<13c75de7-= 1e73-4dcd-906b-cee83ee0212e>,$9=3D<362d4c76-c09d-4e4f-8c05-821e9d46ba= 83>,$10=3D<76e02c3d-c108-443a-9cb3-6a1e138f00c6>,$11=3D<dbc8ee6= d-b04d-4f48-90a3-b2a2bbd5de6e>,$12=3D<197c368a-669c-4d44-867b-6382726= bae99>,$13=3D<8ae1f446-8364-4061-a89e-0058735cd35a>,$14=3D<fd14= 8cc9-4b13-4773-9b7b-d5f2d1ca3a00>,$15=3D<7a4777eb-3767-43f8-9d67-f1ca= f3eff2b4>,$16=3D<f526b7ee-7823-4e4b-8bd5-dca091ca6aea>,$17=3D<8= f4c2594-b368-43d2-8a27-8af24dc92512>,$18=3D<10ad0508-9eca-47e3-96f5-9= 9745fbdcede>,$19=3D<112944c7-eef0-49c3-af79-9b54b484ca0c>,$20=3D&l= t;da94401d-10c5-4607-9b09-fa2202bba846>,$21=3D<ce9a4ddd-3c47-4bb9-af5= 5-4d0c6c0600f8>,$22=3D<3448505e-b740-4084-8=0A91e-e2ff34c3754f>,$2= 3=3D<8a3b486d-5e41-46e1-99fa-51f4f38af2fa>,$24=3D<a3260ac3-3811-48= 57-95a6-2cbcd1f8119b>,$25=3D<12a70091-0853-44
=0A=0A=0A99-8f05-d80e3045ce5e>,$26=3D<e21a63e8-2835-= 4942-9a9e-18e1310a74e6>,$27=3D<5b41b6cb-de51-40ff-8488-7f3403b1f0a8&g= t;,$28=3D<83a3fe9b-cfb5-4908-b5fb-5b32a7be5eb1>,$29=3D<0a963150-ee= a0-4396-aa2a-9319ca9c9866>,$30=3D<0346505e-98be-4585-aeea-3b38df4a56a= 2>,$31=3D<069bf54d-c230-4bef-884b-46e54e28c65e>,$32=3D<8286bd41= -ccd1-47bd-a1aa-1631d3ccbd56>,$33=3D<f7a3f9e2-e94b-4ff7-8b03-4e8549be= 07cb>,$34=3D<72f2af01-c359-45f9-bb20-37c7479869f3>,$35=3D<01430= 76a-3f9e-487d-bdec-c1a6a110f748>,$36=3D<2bc64e73-c771-43c8-aa83-b1105= 9512a0f>,$37=3D<a5b56133-7cd2-476d-bde6-1b8af68bc265>,$38=3D<3c= 43a0dd-292a-44cc-a097-ab2f77757d25>,$39=3D<8b84e953-d6a9-42ae-9caa-48= 1c164354db>,$40=3D<26d842b6-71e2-438f-a147-e18d102d21d5>,$41=3D<= ;f588610a-507a-4c4c-93bb-a6466ed140ba>,$42=3D<d5a145c8-f8bd-486f-a0d7= -f897715915c5>,$43=3D<bd0ed505-27e8-43b4-be4e-664adc98a38c>,$44=3D= <b0948960-11b7-4bca-9d9c-4f8d7b91962c>,$45=3D<70d=0A2924f-c8cb-459= 4-a67b-261ca300406e>,$46=3D<60ad8ae8-4722-4a02-8d4f-88a0052299fc>,= $47=3D<350558cc-e56f-4fb2-86f8-3d3252b56bce>

=0A= =0A=0A,$48=3D<de7259b4-e1c8-481c-9043-46f09a0926de>,$49=3D<2e5ecda= 2-bfdd-400a-a48a-e08e07d4ced4>)
= =0A10:02:40.602 (2)  FE=3D> Describe(portal=3Dnull)
=0A10:02:40.602 (2)  FE=3D> Execute(portal= =3Dnull,limit=3D0)
=0A10:02:40.602 = (2)  FE=3D> Sync
=0A10:02:4= 0.604 (2)  <=3DBE BindComplete [null]
=0A10:02:40.604 (2)  <=3DBE CommandStatus(BEGIN)
=0A10:02:40.607 (2)  <=3DBE ErrorM= essage(ERROR: operator does not exist: timestamp with time zone >=3D int= erval
=0A  Hint: No operator m= atches the given name and argument type(s). You might need to add explicit = type casts.
=0A  Position: 410= )
=0Aorg.postgresql.util.PSQLExcept= ion: ERROR: operator does not exist: timestamp with time zone >=3D inter= val
=0A  Hint: No operator mat= ches the given name and argument type(s). You might need to add explicit ty= pe casts.
=0A  Position: 410=0A        at or= g.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorIm= pl.java:1592)
=0A    &nbs= p;   at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryE= xecutorImpl.java:1327)
=0A  &n= bsp;     at org.postgresql.core.v3.QueryExecutorImpl.execute(Quer= yExecutorImpl.java:192)
=0A  &= nbsp;     at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(= AbstractJdbc2Statement.java:451)
= =0A        at org.postgresql.jdbc2.AbstractJdbc2Stateme= nt.executeWithFlags(AbstractJdbc2Statement.java:350)
=0A        at org.postgresql.jdbc2.Ab= stractJdbc2Statement.execute(AbstractJdbc2Statement.java:343)
=0A        at org.apache.tom= cat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStateme= nt.java:172)
=0A     = ;   at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute= (DelegatingPreparedStatement.java:172)
=0A        at com.ibatis.sqlmap.engine.execution.= DefaultSqlExecutor.executeQuery(DefaultSqlExecutor.java:183)
=0A        at com.ibatis.sqlm= ap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement= .java:221)
=0A      =   at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.execut= eQueryWithCallback(MappedStatement.java:189)
=0A        at com.ibatis.sqlmap.engine.mappin= g.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)=0A        at co= m.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecu= torDelegate.java:578)
=0A  &nb= sp;     at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.q= ueryForList(SqlMapExecutorDelegate.java:552)
=0A        at com.ibatis.sqlmap.engine.impl.S= qlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
=0A        at com.foo.service.db= .ibatis.lib.SqlMapExecutor.queryForList(SqlMapExecutor.java:139)
=0A        at com.foo.s= ervice.db.ibatis.DepDaoIbatis.usersList(DepDaoIbatis.java:3352)
=0A        at com.foo.util= .Util.fetchSettings(Util.java:109)
= =0A        at com.foo.util.Util.fetchUpdates(Util.java:= 221)
=0A       = at com.foo.util.Util.fetchInit(Util.java:168)
=0A        at com.foo.service.process.InitP= rocessor.process(InitProcessor.java:57)
=0A        at com.foo.service.process.InitProcess= or.process(InitProcessor.java:29)
= =0A        at com.foo.service.scaffolding.AbstractProce= ssor.process(AbstractProcessor.java:55)
=0A        at com.foo.service.scaffolding.Abstrac= tProcessor.process(AbstractProcessor.java:28)
=0A        at com.restservice.process.Authen= ticatedProcessor.process(AuthenticatedProcessor.java:38)
=0A        at com.restservice.pro= cess.AuthenticatedProcessor.process(AuthenticatedProcessor.java:12)
=0A        at com.rest= service.process.SerializedProcessor.processRequest(SerializedProcessor.java= :74)
=0A       = at com.restservice.process.SerializedProcessor.process(SerializedProcessor= .java:59)
=0A      &= nbsp; at com.restservice.RestService.process(RestService.java:224)
=0A        at com.rests= ervice.RestService.processWrapper(RestService.java:122)
=0A        at com.restservice.Rest= Service.doPost(RestService.java:101)
=0A        at javax.servlet.http.HttpServlet.service(= HttpServlet.java:646)
=0A  &nb= sp;     at javax.servlet.http.HttpServlet.service(HttpServlet.jav= a:727)
=0A      &nbs= p; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl= icationFilterChain.java:303)
=0A&nb= sp;       at org.apache.catalina.core.ApplicationFilterChain= .doFilter(ApplicationFilterChain.java:208)
=0A        at org.apache.catalina.filters.SetCh= aracterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
=0A        at org.apac= he.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterC= hain.java:241)
=0A    &nb= sp;   at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl= icationFilterChain.java:208)
=0A&nb= sp;       at com.foo.util.GZIPFilter.doFilter(GZIPFilter.jav= a:33)
=0A       = ; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli= cationFilterChain.java:241)
=0A&nbs= p;       at org.apache.catalina.core.ApplicationFilterChain.= doFilter(ApplicationFilterChain.java:208)
=0A        at org.apache.catalina.core.StandardW= rapperValve.invoke(StandardWrapperValve.java:220)
=0A        at org.apache.catalina.core= .StandardContextValve.invoke(StandardContextValve.java:122)
=0A        at org.apache.catal= ina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
=0A        at org.a= pache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)=0A        at com= .googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)<= br clear=3D"none" class=3D"" style=3D"">=0A        at o= rg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102= )
=0A        at= org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)<= br clear=3D"none" class=3D"" style=3D"">=0A        at o= rg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java= :116)
=0A       = ; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java= :408)
=0A       = ; at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp1= 1Processor.java:1040)
=0A  &nb= sp;     at org.apache.coyote.AbstractProtocol$AbstractConnectionH= andler.process(AbstractProtocol.java:607)
=0A        at org.apache.tomcat.util.net.JIoEndp= oint$SocketProcessor.run(JIoEndpoint.java:314)
=0A        at java.util.concurrent.ThreadPo= olExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
=0A        at java.util.concurrent.= ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
=0A        at org.apache.tomcat= .util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
=0A        at java.lang= .Thread.run(Thread.java:662)
=0A
=0A
=0A--
=0ASent via pgsql-jdbc = mailing list (pgsql-jdbc@postgresql.org)
=0ATo make changes to your subscription:
=0Ahttp://www.postgresql.org/mailpref/pgsql-jdbc
=0A
<= br clear=3D"none" class=3D"" style=3D"">







---2143897565-625173833-1406650762=:83756--