X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 68AAB9DC997 for ; Wed, 8 Mar 2006 12:19:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30063-09 for ; Wed, 8 Mar 2006 12:19:04 -0400 (AST) X-Greylist: delayed 00:24:24.375434 by SQLgrey- Received: from mail.ukfsn.org (s2.ukfsn.org [217.158.120.143]) by postgresql.org (Postfix) with ESMTP id 3790F9DCA35 for ; Wed, 8 Mar 2006 12:19:03 -0400 (AST) Received: from [10.0.1.82] (84-45-236-142.no-dns-yet.enta.net [84.45.236.142]) by mail.ukfsn.org (Postfix) with ESMTP id B7CA6E7128 for ; Wed, 8 Mar 2006 15:54:03 +0000 (GMT) From: David Goodenough To: pgsql-jdbc@postgresql.org Subject: Problem with background thread in Tomcat 5.5.9 Date: Wed, 8 Mar 2006 15:54:33 +0000 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603081554.33981.david.goodenough@btconnect.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.919 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.919 X-Spam-Level: * X-Archive-Number: 200603/41 X-Sequence-Number: 14822 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