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 70D039DC819 for ; Tue, 13 Dec 2005 09:48:22 -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 61626-07 for ; Tue, 13 Dec 2005 09:48:24 -0400 (AST) X-Greylist: delayed 00:06:39.309452 by SQLgrey- Received: from smtp-bal.opennet.it (smtp1.opennet.it [212.110.32.48]) by postgresql.org (Postfix) with ESMTP id BBC7F9DC814 for ; Tue, 13 Dec 2005 09:48:17 -0400 (AST) Received: (qmail 24790 invoked by uid 89); 13 Dec 2005 13:49:28 -0000 Received: from unknown (HELO comai04) (212.110.56.36) by smtp-bal.opennet.it with SMTP; 13 Dec 2005 13:49:28 -0000 Message-ID: <005801c5ffec$83c779a0$0501a8c0@comai04> From: "Stefano B." To: Subject: executeQuery hangs my application Date: Tue, 13 Dec 2005 14:52:53 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0055_01C5FFF4.E52B9930" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200512/52 X-Sequence-Number: 14383 This is a multi-part message in MIME format. ------=_NextPart_000_0055_01C5FFF4.E52B9930 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a problem with the PostgreSQL JDBC drivers 8.1+. In my code I call the executeQuery method and sometimes it seems to lock = my application. I tried to update the driver to the newer 8.2 version but I obtained the = same result ... The database server version is 8.1 for Windows (but I am not the = administrator) I have found this problem (for now) only on this server ... the jdbc log is the following: ***************************************************** 14:09:10.171 (2) PostgreSQL 8.2devel JDBC3 with SSL (build 500) 14:09:10.171 (2) Trying to establish a protocol version 3 connection to = <_the_server_IP_>:5432 14:09:10.265 (2) FE=3D> StartupPacket(user=3Dpostgres, = database=3Dbarricalla, client_encoding=3DUNICODE,=20 DateStyle=3DISO) 14:09:10.390 (2) <=3DBE AuthenticationReqMD5(salt=3Dbe98c8a8) 14:09:10.390 (2) FE=3D> = Password(md5digest=3Dmd5724bad3aac24aa6aed8dfebfe9eafcfa) 14:09:10.468 (2) <=3DBE AuthenticationOk 14:09:10.468 (2) <=3DBE ParameterStatus(client_encoding =3D UNICODE) 14:09:10.468 (2) <=3DBE ParameterStatus(DateStyle =3D ISO, MDY) 14:09:10.468 (2) <=3DBE ParameterStatus(integer_datetimes =3D off) 14:09:10.468 (2) <=3DBE ParameterStatus(is_superuser =3D on) 14:09:10.468 (2) <=3DBE ParameterStatus(server_encoding =3D UTF8) 14:09:10.468 (2) <=3DBE ParameterStatus(server_version =3D 8.1.1) 14:09:10.468 (2) <=3DBE ParameterStatus(session_authorization =3D = postgres) 14:09:10.468 (2) <=3DBE ParameterStatus(standard_conforming_strings =3D = off) 14:09:10.468 (2) <=3DBE ParameterStatus(TimeZone =3D CET) 14:09:10.468 (2) <=3DBE BackendKeyData(pid=3D1664,ckey=3D1388535757) 14:09:10.468 (2) <=3DBE ReadyForQuery(I) 14:09:10.468 (2) compatible =3D 8.2 14:09:10.468 (2) loglevel =3D 2 14:09:10.468 (2) prepare threshold =3D 5 getConnection returning = driver[className=3Dorg.postgresql.Driver,org.postgresql.Driver@15fc672] 14:09:10.468 (2) simple execute,=20 handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHand= ler@9770a3, maxRows=3D0, fetchSize=3D0,=20 flags=3D17 14:09:10.468 (2) FE=3D> Parse(stmt=3Dnull,query=3D"SELECT = max("fulldate"),min("fulldate") FROM "data_cab_a"=20 ",oids=3D{}) 14:09:10.484 (2) FE=3D> Bind(stmt=3Dnull,portal=3Dnull) 14:09:10.484 (2) FE=3D> Describe(portal=3Dnull) 14:09:10.484 (2) FE=3D> Execute(portal=3Dnull,limit=3D0) 14:09:10.484 (2) FE=3D> Sync 14:09:10.687 (2) <=3DBE ParseComplete [null] 14:09:10.687 (2) <=3DBE BindComplete [null] 14:09:10.687 (2) <=3DBE RowDescription(2) 14:09:10.687 (2) <=3DBE DataRow 14:09:10.687 (2) <=3DBE CommandStatus(SELECT) 14:09:10.828 (2) <=3DBE ReadyForQuery(I) 14:09:11.187 (2) simple execute,=20 handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHand= ler@4298e, maxRows=3D0, fetchSize=3D0,=20 flags=3D17 14:09:11.187 (2) FE=3D> Parse(stmt=3Dnull,query=3D"SELECT * FROM = "data_cab_a" WHERE "fulldate" < timestamp=20 '2005-11-11 00:00:00' AND "fulldate" >=3D timestamp '2005-10-12 = 00:00:00'",oids=3D{}) 14:09:11.187 (2) FE=3D> Bind(stmt=3Dnull,portal=3Dnull) 14:09:11.187 (2) FE=3D> Describe(portal=3Dnull) 14:09:11.187 (2) FE=3D> Execute(portal=3Dnull,limit=3D0) 14:09:11.187 (2) FE=3D> Sync 14:09:11.578 (2) <=3DBE ParseComplete [null] 14:09:11.578 (2) <=3DBE BindComplete [null] 14:09:11.578 (2) <=3DBE RowDescription(13) 14:09:11.578 (2) <=3DBE DataRow 14:09:11.578 (2) <=3DBE DataRow 14:09:11.578 (2) <=3DBE DataRow 14:09:11.593 (2) <=3DBE DataRow 14:09:11.593 (2) <=3DBE DataRow 14:09:11.593 (2) <=3DBE DataRow 14:09:11.593 (2) <=3DBE DataRow 14:09:11.593 (2) <=3DBE DataRow ... ... ... other ~5000 lines ... ... 14:10:06.109 (2) <=3DBE CommandStatus(SELECT) 14:10:06.109 (2) <=3DBE ReadyForQuery(I) 14:10:42.515 (2) simple execute,=20 handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHand= ler@11ed166, maxRows=3D0,=20 fetchSize=3D0, flags=3D17 14:10:42.515 (2) FE=3D> Parse(stmt=3Dnull,query=3D"SELECT * FROM = "data_cab_a" WHERE "fulldate" < timestamp=20 '2005-12-11 00:00:00' AND "fulldate" >=3D timestamp '2005-11-11 = 00:00:00'",oids=3D{}) 14:10:42.515 (2) FE=3D> Bind(stmt=3Dnull,portal=3Dnull) 14:10:42.515 (2) FE=3D> Describe(portal=3Dnull) 14:10:42.515 (2) FE=3D> Execute(portal=3Dnull,limit=3D0) 14:10:42.515 (2) FE=3D> Sync 14:10:42.859 (2) <=3DBE ParseComplete [null] 14:10:42.859 (2) <=3DBE BindComplete [null] 14:10:42.859 (2) <=3DBE RowDescription(13) 14:10:42.859 (2) <=3DBE DataRow 14:10:42.859 (2) <=3DBE DataRow 14:10:42.859 (2) <=3DBE DataRow 14:10:42.859 (2) <=3DBE DataRow ... ... other ~5000 lines ... 14:11:21.140 (2) <=3DBE DataRow 14:11:21.140 (2) <=3DBE DataRow 14:11:21.140 (2) <=3DBE DataRow 14:11:21.140 (2) <=3DBE DataRow 14:11:21.140 (2) <=3DBE DataRow 14:11:21.140 (2) <=3DBE DataRow *************************************************************************= ***** at this point no other log messages are printed and the application = seems locked on the executeQuery method. The database connection is opened (even if I wait for 2 or 3 hours ...) Any hints? Thanks in advance. Stefano ------=_NextPart_000_0055_01C5FFF4.E52B9930 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I have a problem with the PostgreSQL = JDBC drivers=20 8.1+.
 
In my code I call the executeQuery = method and=20 sometimes it seems to lock my application.
I tried to update the driver to the = newer 8.2=20 version but I obtained the same result ...
 
The database server version is 8.1 for = Windows (but=20 I am not the administrator)
I have found this problem (for now) = only on this=20 server ...
 
the jdbc log is the = following:
 
*****************************************************
14:09:10.171 (2) PostgreSQL 8.2devel = JDBC3 with SSL=20 (build 500)
14:09:10.171 (2) Trying to establish a protocol version 3 = connection to <_the_server_IP_>:5432
14:09:10.265 (2)  = FE=3D>=20 StartupPacket(user=3Dpostgres, database=3Dbarricalla, = client_encoding=3DUNICODE,=20
 
DateStyle=3DISO)
14:09:10.390 = (2)  <=3DBE=20 AuthenticationReqMD5(salt=3Dbe98c8a8)
14:09:10.390 (2)  = FE=3D>=20 Password(md5digest=3Dmd5724bad3aac24aa6aed8dfebfe9eafcfa)
14:09:10.468= =20 (2)  <=3DBE AuthenticationOk
14:09:10.468 (2)  <=3DBE = ParameterStatus(client_encoding =3D UNICODE)
14:09:10.468 (2)  = <=3DBE=20 ParameterStatus(DateStyle =3D ISO, MDY)
14:09:10.468 (2)  = <=3DBE=20 ParameterStatus(integer_datetimes =3D off)
14:09:10.468 (2)  = <=3DBE=20 ParameterStatus(is_superuser =3D on)
14:09:10.468 (2)  <=3DBE = ParameterStatus(server_encoding =3D UTF8)
14:09:10.468 (2)  = <=3DBE=20 ParameterStatus(server_version =3D 8.1.1)
14:09:10.468 (2)  = <=3DBE=20 ParameterStatus(session_authorization =3D postgres)
14:09:10.468 = (2) =20 <=3DBE ParameterStatus(standard_conforming_strings =3D = off)
14:09:10.468=20 (2)  <=3DBE ParameterStatus(TimeZone =3D CET)
14:09:10.468 = (2) =20 <=3DBE BackendKeyData(pid=3D1664,ckey=3D1388535757)
14:09:10.468 = (2) =20 <=3DBE ReadyForQuery(I)
14:09:10.468 (2)     = compatible=20 =3D 8.2
14:09:10.468 (2)     loglevel =3D = 2
14:09:10.468=20 (2)     prepare threshold =3D 5
getConnection = returning=20 driver[className=3Dorg.postgresql.Driver,org.postgresql.Driver@15fc672]14:09:10.468=20 (2) simple execute,
 
handler=3Dorg.postgresql.jdbc2.AbstractJdbc2St= atement$StatementResultHandler@9770a3,=20 maxRows=3D0, fetchSize=3D0,
 
flags=3D17
14:09:10.468 (2)  = FE=3D>=20 Parse(stmt=3Dnull,query=3D"SELECT max("fulldate"),min("fulldate") FROM = "data_cab_a"=20
 
",oids=3D{})
14:09:10.484 (2)  = FE=3D>=20 Bind(stmt=3Dnull,portal=3Dnull)
14:09:10.484 (2)  FE=3D>=20 Describe(portal=3Dnull)
14:09:10.484 (2)  FE=3D>=20 Execute(portal=3Dnull,limit=3D0)
14:09:10.484 (2)  FE=3D>=20 Sync
14:09:10.687 (2)  <=3DBE ParseComplete = [null]
14:09:10.687=20 (2)  <=3DBE BindComplete [null]
14:09:10.687 (2)  = <=3DBE=20 RowDescription(2)
14:09:10.687 (2)  <=3DBE = DataRow
14:09:10.687=20 (2)  <=3DBE CommandStatus(SELECT)
14:09:10.828 (2)  = <=3DBE=20 ReadyForQuery(I)
14:09:11.187 (2) simple execute,
 
handler=3Dorg.postgresql.jdbc2.AbstractJdbc2Sta= tement$StatementResultHandler@4298e,=20 maxRows=3D0, fetchSize=3D0,
 
flags=3D17
14:09:11.187 (2)  = FE=3D>=20 Parse(stmt=3Dnull,query=3D"SELECT * FROM "data_cab_a"  WHERE = "fulldate" <=20 timestamp
 
'2005-11-11 00:00:00' AND  = "fulldate" >=3D=20 timestamp '2005-10-12 00:00:00'",oids=3D{})
14:09:11.187 (2)  = FE=3D>=20 Bind(stmt=3Dnull,portal=3Dnull)
14:09:11.187 (2)  FE=3D>=20 Describe(portal=3Dnull)
14:09:11.187 (2)  FE=3D>=20 Execute(portal=3Dnull,limit=3D0)
14:09:11.187 (2)  FE=3D>=20 Sync
14:09:11.578 (2)  <=3DBE ParseComplete = [null]
14:09:11.578=20 (2)  <=3DBE BindComplete [null]
14:09:11.578 (2)  = <=3DBE=20 RowDescription(13)
14:09:11.578 (2)  <=3DBE = DataRow
14:09:11.578=20 (2)  <=3DBE DataRow
14:09:11.578 (2)  <=3DBE=20 DataRow
14:09:11.593 (2)  <=3DBE DataRow
14:09:11.593 = (2) =20 <=3DBE DataRow
14:09:11.593 (2)  <=3DBE = DataRow
14:09:11.593=20 (2)  <=3DBE DataRow
14:09:11.593 (2)  <=3DBE = DataRow
 
...
...
... other ~5000=20 lines
...
...
 

14:10:06.109 (2)  <=3DBE = CommandStatus(SELECT)
14:10:06.109=20 (2)  <=3DBE ReadyForQuery(I)
 
14:10:42.515 (2) simple execute,
 
handler=3Dorg.postgresql.jdbc2.AbstractJdbc2S= tatement$StatementResultHandler@11ed166,=20 maxRows=3D0,
 
fetchSize=3D0, flags=3D17
14:10:42.515 (2)  FE=3D>=20 Parse(stmt=3Dnull,query=3D"SELECT * FROM "data_cab_a"  WHERE = "fulldate" <=20 timestamp
 
'2005-12-11 00:00:00' AND  "fulldate" >=3D timestamp = '2005-11-11=20 00:00:00'",oids=3D{})
14:10:42.515 (2)  FE=3D>=20 Bind(stmt=3Dnull,portal=3Dnull)
14:10:42.515 (2)  FE=3D>=20 Describe(portal=3Dnull)
14:10:42.515 (2)  FE=3D>=20 Execute(portal=3Dnull,limit=3D0)
14:10:42.515 (2)  FE=3D>=20 Sync
14:10:42.859 (2)  <=3DBE ParseComplete = [null]
14:10:42.859=20 (2)  <=3DBE BindComplete [null]
14:10:42.859 (2)  = <=3DBE=20 RowDescription(13)
14:10:42.859 (2)  <=3DBE = DataRow
14:10:42.859=20 (2)  <=3DBE DataRow
14:10:42.859 (2)  <=3DBE=20 DataRow
14:10:42.859 (2)  <=3DBE DataRow
 
...
... other ~5000 lines
...
 
14:11:21.140 (2)  <=3DBE DataRow
14:11:21.140 (2)  = <=3DBE=20 DataRow
14:11:21.140 (2)  <=3DBE DataRow
14:11:21.140 = (2) =20 <=3DBE DataRow
14:11:21.140 (2)  <=3DBE = DataRow
14:11:21.140=20 (2)  <=3DBE DataRow
********************************************************************= **********
 
at this point no other log messages are printed and the application = seems=20 locked on the executeQuery method.
The database connection is opened (even if I wait for 2 or 3 hours=20 ...)
 
Any hints?
Thanks in advance.
 
Stefano
 
 
 
 
------=_NextPart_000_0055_01C5FFF4.E52B9930--