X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C9E0853404 for ; Wed, 20 Apr 2005 19:53:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69518-08 for ; Wed, 20 Apr 2005 22:53:13 +0000 (GMT) Received: from mail01l.rapidsite.net (mail01l.rapidsite.net [131.103.218.197]) by svr1.postgresql.org (Postfix) with SMTP id 419E852951 for ; Wed, 20 Apr 2005 19:53:11 -0300 (ADT) Received: from www.cycletime.com (207.201.128.135) by mail01l.rapidsite.net (RS ver 1.0.95vs) with SMTP id 1-010047591 for ; Wed, 20 Apr 2005 18:53:11 -0400 (EDT) Subject: JDBC locking on processResults From: Mike Heath Reply-To: mheath@avaloninc.com To: pgsql-jdbc@postgresql.org Content-Type: text/plain Organization: Avalon Digital Marketing Systems, Inc. Date: Wed, 20 Apr 2005 16:53:10 -0600 Message-Id: <1114037590.6558.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1 Content-Transfer-Encoding: 7bit X-Loop-Detect: 1 X-DistLoop-Detect: 1 X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200504/101 X-Sequence-Number: 12708 I'm using Postgresql 8.0.2 on SuSE Linux Professional 9.2. I'm using Java version 1.5.0_02. I'm using The 8.0.311 build of the JDBC driver. I've spent all day trying to debug this problem and the following is as far as I've gotten. I've been stepping through the JDBC driver code and when I get to org.postgresql.jdbc2.AbstractJdbc2Statement (object is actually of type Jdbc3PreparedStatement) in method int[] executeBatch() Value in queries (as a string produced to toString() method) ="insert into assets (report_id, create_date, modify_date, asset_name, parent_id, asset_type_id, create_user_id, modify_user_id, account_id, disabled, hidden, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)" The value in parameterLists.SimpleParameterList = "[java.lang.Object@19afdb9, 2005-04-20 16:36:01.566000-0600, 2005-04-20 16:36:01.566000-0600, Image test, java.lang.Object@19afdb9, 9, 1, 1, 1, 0, 0, 565]" This all looks simple enough. At least, I can't see anything out of the ordinary here. However, when I trace down to org.postgresql.core.V3.QueryExecutorImpl.processResults(ResutlHandler, int) (line 1122) it makes a call to pgStream.ReceiveChar() and just locks. It appears as though it's waiting for something from the server and the server isn't sending it. I don't see any errors in the server logs. I'm at the end of my rope. Any ideas or suggestions and what else I can do to debug this? A great deal of other queries and updates run just fine on this database. It's this particular case that is broken and I can't figure it out. -Mike