pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Goodenough <david.goodenough@btconnect.com>
To: pgsql-jdbc@postgresql.org
Subject: Problem with background thread in Tomcat 5.5.9
Date: Wed, 8 Mar 2006 15:54:33 +0000
Message-ID: <200603081554.33981.david.goodenough@btconnect.com> (raw)

I am trying to run a servlet in Tomcat 5.5.9 which has a background thread.
This thread uses JDBC, and in particular the 8.1 Postgresql JDBC driver.  The
foreground bits of the servlet work quite properly.

But when the executeQuery function goes off and tries to get a 
PhantomReference object it fails with a ThreadDeath exception.

       at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1221)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at 
org.postgresql.core.v3.QueryExecutorImpl.registerParsedQuery(QueryExecutorImpl.java:1092)
        at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1177)
        at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
        at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
        at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:346)
        at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:250)
 
Anyone got any ideas why this might be happening and what I can do to fix it?

David



Message-ID: <200603081554.33981.david.goodenough@btconnect.com>
Permalink:  ../200603081554.33981.david.goodenough@btconnect.com/
Also on:    postgresql.org/message-id/200603081554.33981.david.goodenough@btconnect.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: david.goodenough@btconnect.com
  Subject: Re: Problem with background thread in Tomcat 5.5.9
  In-Reply-To: <200603081554.33981.david.goodenough@btconnect.com>
  References: <200603081554.33981.david.goodenough@btconnect.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