X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1244DD9A06 for ; Mon, 10 Oct 2005 02:22:12 -0300 (ADT) 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 91934-05 for ; Mon, 10 Oct 2005 05:22:05 +0000 (GMT) Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by svr1.postgresql.org (Postfix) with ESMTP id 35910D9931 for ; Mon, 10 Oct 2005 02:22:04 -0300 (ADT) Received: obelix.askesis.nl 172.31.0.1 from 172.31.1.8 172.31.1.8 via HTTP with MS-WebStorage 6.0.6249 Received: from Panoramix by obelix.askesis.nl; 10 Oct 2005 07:22:03 +0200 Subject: Exception in Boolean to int2 conversion in xwiki?? From: Joost Kraaijeveld To: "pgsql-jdbc@postgresql.org" Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Oct 2005 07:22:03 +0200 Message-Id: <1128921723.6292.23.camel@Panoramix> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.334 required=5 tests=[AWL=-0.186, FORGED_RCVD_HELO=0.05, TO_ADDRESS_EQ_REAL=0.47] X-Spam-Level: X-Archive-Number: 200510/43 X-Sequence-Number: 13974 Hi, I get the following exception while using xwiki and PostgreSQL, which originates in the PostgreSQL jdbc driver according to the stacktrace: 2005-10-10 06:03:24,657 ERROR [org.hibernate.util.JDBCExceptionReporter] Batch entry 0 update xwikiclassesprop set XWP_PRETTYNAME=Skin, XWP_CLASSTYPE=com.xpn.xwiki.objects.classes.StringClass, XWP_UNMODIFIABLE=0, XWP_NUMBER=1 where XWP_ID=104408758 and XWP_NAME=skin was aborted. Call getNextException to see the cause. 2005-10-10 06:03:24,657 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 42804 2005-10-10 06:03:24,657 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: column "xwp_unmodifiable" is of type smallint but expression is of type boolean Does this mean that it is not possible to convert a Java Boolean to a PostgreSQL int2 according to the driver or am I reading the exception text wrong? If I am reading the exception text correct, doesn't the JDBC spec specify a mapping from Boolean to smallint (according to Appendix B, table B-5)? -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 e-mail: J.Kraaijeveld@Askesis.nl web: www.askesis.nl