| From: | "L(dot) Rahyen" <research(at)science(dot)su> |
|---|---|
| To: | Kris Jurka <books(at)ejurka(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Strange crashes in JDBC code in multithreaded application. |
| Date: | 2007-08-06 18:04:33 |
| Message-ID: | 200708061804.34742.research@science.su |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
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!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Håkan Jacobsson | 2007-08-08 15:11:22 | Restore database from zipped textfile (.sql) created by pg_dumpall |
| Previous Message | Kris Jurka | 2007-08-05 02:57:50 | Re: Strange crashes in JDBC code in multithreaded application. |