pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter <peter@greatnowhere.com>
To: pgsql-jdbc@postgresql.org
Subject: Totally weird behaviour in org.postgresql.Driver
Date: Wed, 11 Mar 2009 15:43:11 +0200
Message-ID: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com> (raw)

My app used to work fine until I started getting tons of 
NullPointerExceptions in org.postgresql.Driver:586

for (int tmp = 0;tmp < protocols.length;tmp++)
I traced into that line and 'protocols' variable is null. That variable is 
private static, and is not being assigned to anywhere outside the 
constructor (why isnt it 'final'?). I'm totally at loss why and how 
protocols can become null. JVM bug perhaps? This is Tomcat 6 running on 
Ubuntu 8.10, and my webapp uses BlazeDS.

Any ideas? Could this be due to improper synchronization somewhere in my 
app?

Peter





view thread (22+ messages)  latest in thread

Message-ID: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com>
Permalink:  ../49b7bfef$0$1343$834e42db@reader.greatnowhere.com/
Also on:    postgresql.org/message-id/49b7bfef$0$1343$834e42db@reader.greatnowhere.com

 · 

reply

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: peter@greatnowhere.com
  Subject: Re: Totally weird behaviour in org.postgresql.Driver
  In-Reply-To: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com>
  References: <49b7bfef$0$1343$834e42db@reader.greatnowhere.com>

* 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