Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B513463402B for ; Mon, 17 May 2010 14:48:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 98040-01 for ; Mon, 17 May 2010 17:48:07 +0000 (UTC) X-Greylist: delayed 00:06:56.745703 by SQLgrey-1.7.6 Received: from mx1.informatik.uni-stuttgart.de (mailgw.informatik.uni-stuttgart.de [129.69.211.41]) by mail.postgresql.org (Postfix) with ESMTP id 3879163FCE1 for ; Mon, 17 May 2010 14:48:07 -0300 (ADT) Received: from vis-mail.informatik.uni-stuttgart.de (vis-mail.informatik.uni-stuttgart.de [129.69.215.3]) by mx1.informatik.uni-stuttgart.de (Postfix) with ESMTP id 4513C5F87 for ; Mon, 17 May 2010 19:41:07 +0200 (CEST) Received: from [129.69.215.80] (soul.informatik.uni-stuttgart.de [129.69.215.80]) by vis-mail.informatik.uni-stuttgart.de (Postfix) with ESMTP id 3016C27000C5 for ; Mon, 17 May 2010 19:41:07 +0200 (CEST) Message-ID: <4BF17FAE.5060402@gmx.net> Date: Mon, 17 May 2010 19:41:02 +0200 From: Andre Burkovski User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: 8.4 vs 8.1 AbstractJdbc2Array - Array retrieval Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201005/38 X-Sequence-Number: 20522 Hello there, I have this unexpected Exception "org.postgresql.util.PSQLException: An I/O error occured while sending to the backend." when i try to recover contents of an java.sql.Array via getArray() method. I don't have an SSCCE (http://sscce.org/) yet, but for the same piece of code i tried both drivers: 8.1.414 and 8.4.701 And for the 8.1.414 the code runs fine. For the 8.4.701 (jdbc3 and jdbc4 variant) i got the error above. I did a little digging and debugging and found the following: The cause of the error can be found in line 165 of org.postgresql.jdbc2.AbstractJdbc2Array.java (8.4.701src) The the line "connection.getTypeInfo().getArrayDelimiter(oid);" requires the connection to be open. This is not the case for 8.1.414! This creates trouble, as i am using an ORM where data is cached. The data is available, but 8.4 driver requires the connection to be open. In the case of 8.1 driver the ORM is able to manage the retrieve the data via getArray() method although the connection is closed. Any suggestions or comments? Are you okay with this description or should i upload an SSCCE somewhere? Greetings Andre B.