Skip site navigation (1) Skip section navigation (2)

Re: RowSet error

From: "Michael Laccetti" <michael(at)s2g-limited(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: RowSet error
Date: 2005-03-14 15:13:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
I did attempt to implement the fix suggested here:  However, I
still get the same problem.  I'm not sure if I've missed something, or if
there's another call somewhere.  The stack trace of the exception is:

java.sql.SQLException: Invalid column display size. Cannot be less than zero
	at com.sun.rowset.CachedRowSetImpl.populate(

The specific code trying to populate it seems to be relatively simple: 
rslt = stmt.executeQuery(query);

That's about all that I have.


-----Original Message-----
From: Kris Jurka [mailto:books(at)ejurka(dot)com] 
Sent: March 13, 2005 17:06
To: Michael Laccetti
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] RowSet error

On Sun, 13 Mar 2005, Michael Laccetti wrote:

> I'm trying to populate a RowSet from a ResultSet, but have been 
> getting a nice little error:  "Invalid column display size. Cannot be 
> less than zero".  I checked the archives, and noticed that somebody 
> else reported this in February. They suggested changing the source to 
> set it to return 0 in certain methods instead of -1.  I attempted to 
> do the same, rebuild the archive, and tried again.  Nada.  Still having the
same problem.
> Is there something that I'm missing?

You have not shown what you have done and what error you are still getting, so
no one can really tell what the problem is.

The original problem is still in Sun's hands as Amit Handa said he'd ask around
at Sun to see if this is their problem or ours.

Kris Jurka

In response to


pgsql-jdbc by date

Next:From: Michael LaccettiDate: 2005-03-14 16:27:44
Subject: Re: RowSet error
Previous:From: David GagnonDate: 2005-03-14 14:13:27
Subject: Re: preoblem in jdbc postgresql and tomcat

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group