From: L. Rahyen <research@science.su>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Strange crashes in JDBC code in multithreaded application.
Date: Mon, 6 Aug 2007 18:04:33 +0000
Message-ID: <200708061804.34742.research@science.su> (raw)
In-Reply-To: <Pine.BSO.4.64.0708042249250.9854@leary.csoft.net>
References: <200708050216.12872.research@science.su>
<Pine.BSO.4.64.0708042249250.9854@leary.csoft.net>
On Sunday August 5 2007 02:57, Kris Jurka wrote:
> On Sun, 5 Aug 2007, L. Rahyen wrote:
> > Exception in thread "Thread-108" java.lang.NullPointerException
> > at
> > org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:1
> >82) at ...
> > at java.lang.Thread.run(libgcj.so.70)
>
> This area of code reads:
>
> 175 if (parameters == null)
> 176 parameters = SimpleQuery.NO_PARAMETERS;
> 177
> 178 boolean describeOnly = (QUERY_DESCRIBE_ONLY & flags) != 0;
> 179
> 180 // Check parameters are all set..
> 181 if (!describeOnly)
> 182 ((V3ParameterList)parameters).checkAllParametersSet();
>
> So it's complaining that parameters is null, but the code on line 175
> should take care of that case. I note that you're using GCJ, does this
> problem occur when using a Sun JVM?
I have tried Sun JRE and after some time of testing I still don't see this
problem. So, bug was in GCJ. Sorry for the noise and thanks for your help!
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: research@science.su, books@ejurka.com
Subject: Re: Strange crashes in JDBC code in multithreaded application.
In-Reply-To: <200708061804.34742.research@science.su>
References: <200708050216.12872.research@science.su> <Pine.BSO.4.64.0708042249250.9854@leary.csoft.net> <200708061804.34742.research@science.su>
* 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