Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 693269FB816 for ; Mon, 6 Aug 2007 15:01:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 56738-03 for ; Mon, 6 Aug 2007 15:01:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mx2-1.hc.ru (mx2-1.hc.ru [89.111.176.22]) by postgresql.org (Postfix) with ESMTP id 08D1A9FB6A6 for ; Mon, 6 Aug 2007 15:01:22 -0300 (ADT) Received: from mail2.hc.ru ([89.111.176.39] helo=mox.smtp.ru) by mx2-1.hc.ru with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1II6tf-0009SZ-9k; Mon, 06 Aug 2007 22:01:41 +0400 Received: from [83.149.43.35] (account research@science.mass.hc.ru HELO [10.200.220.45]) by mox.smtp.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 315279623; Mon, 06 Aug 2007 22:05:09 +0400 From: "L. Rahyen" To: Kris Jurka Subject: Re: Strange crashes in JDBC code in multithreaded application. Date: Mon, 6 Aug 2007 18:04:33 +0000 User-Agent: KMail/1.9.5 Cc: pgsql-jdbc@postgresql.org References: <200708050216.12872.research@science.su> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708061804.34742.research@science.su> X-SpamTest-Envelope-From: research@science.su X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1339 [August 6 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.056 tagged_above=0 required=5 tests=AWL=-1.339, BAYES_40=-0.185, RCVD_IN_BL_SPAMCOP_NET=1.96, RCVD_IN_SORBS_WEB=0.619 X-Spam-Level: * X-Archive-Number: 200708/39 X-Sequence-Number: 17352 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!