Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id F10F79FA621 for ; Thu, 2 Nov 2006 05:57:34 -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 31322-08 for ; Thu, 2 Nov 2006 09:57:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id EDA9E9FA4A5 for ; Thu, 2 Nov 2006 05:57:31 -0400 (AST) Received: from kingfisher.intern.logix-tt.com (84-72-188-217.dclient.hispeed.ch [84.72.188.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 1884464B53; Thu, 2 Nov 2006 11:00:09 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id BB6E7185A6A32; Thu, 2 Nov 2006 10:57:28 +0100 (CET) Message-ID: <4549C108.90600@logix-tt.com> Date: Thu, 02 Nov 2006 10:57:28 +0100 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.7 (X11/20060927) MIME-Version: 1.0 To: Alex Stienstra Cc: pgsql-jdbc@postgresql.org Subject: Re: calling java stored functions through jdbc gives errors. References: <20061102085426.v7c0s12eya4oc8ow@webmail.versatel.nl> In-Reply-To: <20061102085426.v7c0s12eya4oc8ow@webmail.versatel.nl> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/11 X-Sequence-Number: 16053 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