Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id E1DCE9FB225 for ; Thu, 2 Nov 2006 06:44:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 39035-04 for ; Thu, 2 Nov 2006 10:44:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id CB2EE9FB202 for ; Thu, 2 Nov 2006 06:44:12 -0400 (AST) Received: (qmail 30150 invoked from network); 2 Nov 2006 10:44:11 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 2 Nov 2006 10:44:11 -0000 In-Reply-To: <4549C108.90600@logix-tt.com> References: <20061102085426.v7c0s12eya4oc8ow@webmail.versatel.nl> <4549C108.90600@logix-tt.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Alex Stienstra , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: calling java stored functions through jdbc gives errors. Date: Thu, 2 Nov 2006 05:44:12 -0500 To: Markus Schaber X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/12 X-Sequence-Number: 16054 Alex, Also try preparing the call in psql prepare foo_plan as select uw_ping(); execute foo_plan; However I can tell you that jdbc doesn't do anything particularly different than psql or pgadmin. Dave On 2-Nov-06, at 4:57 AM, Markus Schaber wrote: > Hi, Alex, > > Alex Stienstra wrote: >> The following simple query I send to the server using JDBC: >> >> "SELECT uw_ping()" >> >> When the stored function uw_ping() is written in 'plpgsql' everything >> works fine. But when the uw_ping() is written in java and linked in >> using PL/java it gives the following error message: >> >> org.postgresql.util.PSQLException: An I/O error occured while >> sending to >> the backend. >> >> Executing the same query using pgadmin III gives no problems. >> Anyone any >> idea what the problem is? > > It might be a V2/V3 protocol difference. > > Do you get the error message immediately, or after a short timeout? > > Can you look into the server logs to see what's noted there? > > Thanks, > markus > > > -- > Markus Schaber | Logical Tracking&Tracing International AG > Dipl. Inf. | Software Development GIS > > Fight against software patents in Europe! www.ffii.org > www.nosoftwarepatents.org > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >