X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 99E10563DA for ; Mon, 14 Mar 2005 15:13:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50781-05 for ; Mon, 14 Mar 2005 15:13:32 +0000 (GMT) Received: from Roger.s2g-limited.com (unknown [69.93.60.82]) by svr1.postgresql.org (Postfix) with ESMTP id C04CD563D9 for ; Mon, 14 Mar 2005 15:13:25 +0000 (GMT) Received: from KATHUNK ([69.194.110.252]) (authenticated user michael@s2g-limited.com) by Roger.s2g-limited.com (Kerio MailServer 6.0.3) (using TLSv1/SSLv3 with cipher DES-CBC-SHA (56 bits)) for pgsql-jdbc@postgresql.org; Mon, 14 Mar 2005 10:13:28 -0500 From: "Michael Laccetti" To: Subject: Re: RowSet error Date: Mon, 14 Mar 2005 10:13:33 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 In-Reply-To: Thread-Index: AcUoGNbrECu6tJ1fQZ2K91PQviFPbAAjrzPw Message-Id: <20050314151325.C04CD563D9@svr1.postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.316 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, MSGID_FROM_MTA_ID X-Spam-Level: * X-Archive-Number: 200503/144 X-Sequence-Number: 12536 I did attempt to implement the fix suggested here: http://archives.postgresql.org/pgsql-jdbc/2005-02/msg00049.php. 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 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) The specific code trying to populate it seems to be relatively simple: rslt = stmt.executeQuery(query); crs.populate(rslt); That's about all that I have. Mike -----Original Message----- From: Kris Jurka [mailto:books@ejurka.com] Sent: March 13, 2005 17:06 To: Michael Laccetti Cc: pgsql-jdbc@postgresql.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