From: Kris Jurka <books@ejurka.com>
To: S K <extsknk@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Transient runtime error: java.lang.NegativeArraySizeException from org.postgresql.core.PGStream.ReceiveTupleV3(PGStream.java:349) ...
Date: Thu, 1 Jul 2010 21:27:13 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1007012117100.12707@leary.csoft.net> (raw)
In-Reply-To: <AANLkTik3nCt-gWIotILErTkkzPshdyXVgvEIkACHKHpX@mail.gmail.com>
References: <AANLkTik3nCt-gWIotILErTkkzPshdyXVgvEIkACHKHpX@mail.gmail.com>
On Tue, 22 Jun 2010, S K wrote:
>
> Our application has been in production for a couple of years. Recent
> investigation into a problem revealed the following error started a few
> months back. I restarted the application, but the error appears after a few
> days and the thread dies.
>
> Caused by: java.lang.NegativeArraySizeException
> at org.postgresql.core.PGStream.ReceiveTupleV3(PGStream.java:349)
> atorg.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.j
> ava:1306)
> atorg.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:192
> )
> atorg.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.
> java:451)
> atorg.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2S
> tatement.java:350)
> atorg.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2State
> ment.java:254)
I haven't seen an error like this before. It most likely indicates that
the driver has lost protocol sync with the server and is reading the wrong
part of the message. This is difficult to debug because it's unknown how
far back synchronization was lost. To try to debug this I would modify
the driver to log the negative array size value and as much of the message
parts I could find around it. That may give some clues as to why the
driver is confused. Additionally, I would try to determine the triggering
query and see if I could reproduce it.
Kris Jurka
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: books@ejurka.com, extsknk@gmail.com
Subject: Re: Transient runtime error: java.lang.NegativeArraySizeException from org.postgresql.core.PGStream.ReceiveTupleV3(PGStream.java:349) ...
In-Reply-To: <alpine.BSO.2.00.1007012117100.12707@leary.csoft.net>
References: <AANLkTik3nCt-gWIotILErTkkzPshdyXVgvEIkACHKHpX@mail.gmail.com> <alpine.BSO.2.00.1007012117100.12707@leary.csoft.net>
* 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