From: Markus Schaber <schabi@logix-tt.com>
To: Alex Stienstra <alex.stienstra@zonnet.nl>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: calling java stored functions through jdbc gives errors.
Date: Thu, 02 Nov 2006 10:57:28 +0100
Message-ID: <4549C108.90600@logix-tt.com> (raw)
In-Reply-To: <20061102085426.v7c0s12eya4oc8ow@webmail.versatel.nl>
References: <20061102085426.v7c0s12eya4oc8ow@webmail.versatel.nl>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: schabi@logix-tt.com, alex.stienstra@zonnet.nl
Subject: Re: calling java stored functions through jdbc gives errors.
In-Reply-To: <4549C108.90600@logix-tt.com>
References: <20061102085426.v7c0s12eya4oc8ow@webmail.versatel.nl> <4549C108.90600@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox