pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Shraibman <jks@selectacast.net>
To: pgsql-general@postgresql.org
To: pgsql-jdbc@postgresql.org
Subject: pg_locks.transaction field type
Date: Wed, 17 Aug 2005 23:05:25 -0400
Message-ID: <de0ttl$l7g$1@news.hub.org> (raw)

I have a method in my rmi server that takes a query and returns an 
Object[][].  I had this query:

SELECT (select relname from pg_catalog.pg_class where relfilenode = 
relation) as relname, * FROM pg_locks;

After upgrading from 7.4 to 8.0 I was getting this problem:
WARNING: Servlet.service() for servlet jsp threw exception
java.rmi.UnmarshalException: error unmarshalling return; nested 
exception is:
         java.lang.ClassNotFoundException: org.postgresql.util.PGobject 
(no security manager: RMI class loader disabled)


The problem seems to be the "transaction" field.  It looks like a number 
type, but I can't really tell because "\d pg_catalog" doesn't work in psql.

So what's the difference between 7.4.7 and 8.0.3?  Is it that 7.4.7 
never returned anything in the transaction field?  Is it a jdbc bug that 
is returning the answer as org.postgresql.util.PGobject instead of some 
kind of Number?



view thread (6+ messages)  latest in thread

Message-ID: <de0ttl$l7g$1@news.hub.org>
Permalink:  ../de0ttl$l7g$1@news.hub.org/
Also on:    postgresql.org/message-id/de0ttl$l7g$1@news.hub.org

 · 

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: jks@selectacast.net, pgsql-general@postgresql.org
  Subject: Re: pg_locks.transaction field type
  In-Reply-To: <de0ttl$l7g$1@news.hub.org>
  References: <de0ttl$l7g$1@news.hub.org>

* 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