X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 702409FA28E for ; Tue, 25 Jul 2006 12:18:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 54134-05 for ; Tue, 25 Jul 2006 12:18:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id 8F9089FA132 for ; Tue, 25 Jul 2006 12:18:18 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so254435nfc for ; Tue, 25 Jul 2006 08:18:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QynNNtyD/GFiYZ09jo3tgx50sCwU7/SWbcw2ngkv0/qtsI6aDsF6fuhkBKnl+PcWWPknkSjqIzM5KZVJOjuisOJMBaq7923KATq05RMs8O0Syiej6d6outqWQuN6Tb4hMR01rcx1NDKUQaWCnIwL42dwHGVC+NsF2IHeCJDXFoo= Received: by 10.78.177.3 with SMTP id z3mr2365135hue; Tue, 25 Jul 2006 08:18:17 -0700 (PDT) Received: by 10.78.155.20 with HTTP; Tue, 25 Jul 2006 08:18:16 -0700 (PDT) Message-ID: Date: Tue, 25 Jul 2006 19:18:17 +0400 From: "Roman Chervotkin" To: pgsql-jdbc@postgresql.org Subject: Re: Invalid column display size. Cannot be less than zero In-Reply-To: <1153824156.741368.110180@h48g2000cwc.googlegroups.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_176226_11366029.1153840697155" References: <1153824156.741368.110180@h48g2000cwc.googlegroups.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.374 tagged_above=0 required=5 tests=HTML_30_40, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200607/78 X-Sequence-Number: 15504 ------=_Part_176226_11366029.1153840697155 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi alan. I guess you should cast your db table column type from varchar/text to varchar(n). Roman. On 25 Jul 2006 03:42:36 -0700, alan wrote: > > Hi all! > > I'm using postgresql-8.1-407.jdbc3.jar. > > The following code: > CachedRowSet cachedRowSet = new CachedRowSetImpl(); > cachedRowSet.populate(resultSet); > > raise the following exception: > java.sql.SQLException: Invalid column display size. Cannot be less than > zero > at > javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize( > RowSetMetaDataImpl.java:267) > at > com.sun.rowset.CachedRowSetImpl.initMetaData(CachedRowSetImpl.java:702) > at com.sun.rowset.CachedRowSetImpl.populate(CachedRowSetImpl.java > :620) > at com.mainfield.test.TestJoinRowSet.run(TestJoinRowSet.java:47) > at com.mainfield.test.TestJoinRowSet.main(TestJoinRowSet.java:71) > > Last informations available about this issue it's on this mailing list > one year ago. > Someone has news about this issue? > > Many thanks! > Regards. > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster > ------=_Part_176226_11366029.1153840697155 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi alan.

I guess you should cast your db table column type from varchar/text  to varchar(n).

Roman.

On 25 Jul 2006 03:42:36 -0700, alan < a.alerta@mainfield.com> wrote:
Hi all!

I'm using postgresql-8.1-407.jdbc3.jar.

The following code:
CachedRowSet cachedRowSet = new CachedRowSetImpl();
cachedRowSet.populate(resultSet);

raise the following exception:
java.sql.SQLException : Invalid column display size. Cannot be less than
zero
        at
javax.sql.rowset.RowSetMetaDataImpl.setColumnDisplaySize(RowSetMetaDataImpl.java:267)
        at
com.sun.rowset.CachedRowSetImpl.initMetaData (CachedRowSetImpl.java:702)
        at com.sun.rowset.CachedRowSetImpl.populate(CachedRowSetImpl.java:620)
        at com.mainfield.test.TestJoinRowSet.run(TestJoinRowSet.java:47)
        at com.mainfield.test.TestJoinRowSet.main (TestJoinRowSet.java:71)

Last informations available about this issue it's on this mailing list
one year ago.
Someone has news about this issue?

Many thanks!
Regards.


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

------=_Part_176226_11366029.1153840697155--