pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Michael musset <mickamusset@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar
Date: Sat, 23 Oct 2010 02:25:49 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1010230224300.21634@leary.csoft.net> (raw)
In-Reply-To: <alpine.BSO.2.00.1010210418110.30447@leary.csoft.net>
References: <AANLkTikuYNnkRzRDUmJNJMv33E=97exppT44emqZRFFp@mail.gmail.com>
	<AANLkTin9XWGbK-p11oMLazZEbp2OLwX8qf_Yn2Ddx_Fo@mail.gmail.com>
	<alpine.BSO.2.00.1010210418110.30447@leary.csoft.net>



On Thu, 21 Oct 2010, Kris Jurka wrote:

> 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.
>

I've put a fix for this into CVS.  I've uploaded a new jar file here:

http://ejurka.com/pgsql/jars/xml/

Kris Jurka



view thread (11+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1010230224300.21634@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1010230224300.21634@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1010230224300.21634@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, mickamusset@gmail.com
  Subject: Re: JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar
  In-Reply-To: <alpine.BSO.2.00.1010230224300.21634@leary.csoft.net>
  References: <AANLkTikuYNnkRzRDUmJNJMv33E=97exppT44emqZRFFp@mail.gmail.com> <AANLkTin9XWGbK-p11oMLazZEbp2OLwX8qf_Yn2Ddx_Fo@mail.gmail.com> <alpine.BSO.2.00.1010210418110.30447@leary.csoft.net> <alpine.BSO.2.00.1010230224300.21634@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox