Skip site navigation (1) Skip section navigation (2)

Re: Transient runtime error: java.lang.NegativeArraySizeException from org.postgresql.core.PGStream.ReceiveTupleV3( ...

From: S K <extsknk(at)gmail(dot)com>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Transient runtime error: java.lang.NegativeArraySizeException from org.postgresql.core.PGStream.ReceiveTupleV3( ...
Date: 2010-07-02 02:42:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Thanks for your replies.

I followed Sam's suggestion and upgraded the jdbc driver to the latest
It has been more than  a week and problem did not recur. I'm assuming the
fixed the issue (I saw in the release notes a cryptic note indicating fixes
for data transformation).

On Thu, Jul 1, 2010 at 6:27 PM, Kris Jurka <books(at)ejurka(dot)com> wrote:

> 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(
>>  atorg.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.j
>> ava:1306)
>>  atorg.postgresql.core.v3.QueryExecutorImpl.execute(
>> )
>>  atorg.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.
>> java:451)
>>  atorg.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2S
>>  atorg.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2State
> 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


Please DO NOT add my email to any marketing/communication/distribution lists
or social networking sites, without my explicit permission to do so.

In response to

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2010-07-02 05:43:51
Subject: Re: Unable to commit: transaction marked for rollback
Previous:From: Kris JurkaDate: 2010-07-02 01:37:43
Subject: Re: a problem with getting correct info about table's privileges

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group