X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id C32E89FB35A for ; Fri, 11 Aug 2006 08:55:37 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 71444-04 for ; Fri, 11 Aug 2006 11:55:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from bay0-omc1-s36.bay0.hotmail.com (bay0-omc1-s36.bay0.hotmail.com [65.54.246.108]) by postgresql.org (Postfix) with ESMTP id 24E459FB2A4 for ; Fri, 11 Aug 2006 08:55:34 -0300 (ADT) Received: from hotmail.com ([64.4.11.4]) by bay0-omc1-s36.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Aug 2006 04:55:32 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 11 Aug 2006 04:55:32 -0700 Message-ID: Received: from 80.24.52.85 by by7fd.bay7.hotmail.msn.com with HTTP; Fri, 11 Aug 2006 11:55:29 GMT X-Originating-IP: [80.24.52.85] X-Originating-Email: [im-james@hotmail.com] X-Sender: im-james@hotmail.com From: "James Im" To: pgsql-jdbc@postgresql.org Subject: Re: SQL query never ends Date: Fri, 11 Aug 2006 11:55:29 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 11 Aug 2006 11:55:32.0395 (UTC) FILETIME=[0C5157B0:01C6BD3D] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.907 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, MSGID_FROM_MTA_HEADER, SPF_PASS X-Spam-Level: * X-Archive-Number: 200608/65 X-Sequence-Number: 15592 The file commview.zip contains traces of the postgresql port captured with Commview (demo). error4.cap should contains the error but may be the beggining is missing. In error5.cap contains all packets exchanged during the error. I'm 100% sure about this capture session. The error should be near the end of the file I guess. The thread dump for the bolcking error that occured in error5.cap is the following: "Thread-23" prio=6 tid=0x256a0b70 nid=0x744 runnable [0x2829f000..0x2829fb64] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) - locked <0x116082b0> (a java.io.BufferedInputStream) at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:256) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1163) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188) - locked <0x11603398> (a org.postgresql.core.v3.QueryExecutorImpl) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:340) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:239) at com.kumaru.services.jdbc.StatementWrapper.executeQuery(Unknown Source) at com.kumaru.servers.http.HttpUtil.storeUrlMp(Unknown Source) at com.kumaru.servers.http.HttpUtil$1.run(Unknown Source) at com.kumaru.services.pool.ThreadRunnable.run(Unknown Source) Commview makes it possible to listen to the windows loopback but with some limitations (see: http://www.tamos.com/htmlhelp/commview/loopback.htm). That's why I've also done another test. The file wireshark.zip contains 3 files with traces of the postgresql port captured with Wireshark. I could not reproduce exactly the same problem as the setup is not 100% the same. Instead of having server DB in the same windows 2000 box I moved the server into a vmware windows xp box (on the same machine). The difference (from Java point of view) is that the code (in org.postgresql... ) throws a IO exception instead of blocking. The traces are big because the error happens randomly. I hope you've got enough info because I don't think that I can do more! [attachements removed : ask me if you which to receive them] _________________________________________________________________ Få de bedste søgeresultater med MSN Search: http://search.msn.dk