Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CF6211337B50 for ; Thu, 21 Oct 2010 05:21:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 00190-05 for ; Thu, 21 Oct 2010 08:21:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 5141A1337B2F for ; Thu, 21 Oct 2010 05:21:03 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 6F4562846B; Thu, 21 Oct 2010 04:21:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=RJOKodDwFMkWdVmClTOv8ygCrek=; b=e4dP5T gYAskP83e3KTls0k+t1T70gbazLpFxJ8CpuJ0AqWhSqQhpOgdVxO9bKH0CQ73OBs yIia9iaizkGXp+3wQpMEj+M7JU4AM93Zxd5m5DbTPyhXoDDBU41nUz91AIneMyDy KtbWkJz3Ix834H4mVAe4CZxoepdHtNhvUr2eA= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 6C7B128465; Thu, 21 Oct 2010 04:21:02 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2FB21A860; Thu, 21 Oct 2010 04:21:02 -0400 (EDT) Date: Thu, 21 Oct 2010 04:21:01 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Michael musset cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/125 X-Sequence-Number: 21093 On Tue, 19 Oct 2010, Michael musset wrote: > java.lang.ClassCastException: org.postgresql.jdbc4.Jdbc4SQLXML cannot be > cast to [B > atorg.postgresql.jdbc2.AbstractJdbc2ResultSet.updateRowBuffer(AbstractJdbc2Re > sultSet.java:1729) > atorg.postgresql.jdbc2.AbstractJdbc2ResultSet.updateRow(AbstractJdbc2ResultSe > t.java:1291) > > SQLXML sqlxml = con.createSQLXML(); > DOMResult domResult=sqlxml.setResult(DOMResult.class) > domResult.setNode(xmldocumentDOM); > > stmt.setSQLXML(1, sqlxml); > stmt.execute(); > Your sample code and stacktrace don't seem to match, but I see what the problem is. The updatable ResultSet code isn't prepared for handling a SQLXML object. It's slightly tricky to fix because the code in question is in a JDBC2 class while SQLXML is JDBC4 only. I'll look into it. Kris Jurka