JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar - Mailing list pgsql-jdbc

From Michael musset
Subject JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar
Date
Msg-id AANLkTin9XWGbK-p11oMLazZEbp2OLwX8qf_Yn2Ddx_Fo@mail.gmail.com
Whole thread Raw
Responses Re: JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar
List pgsql-jdbc
Hi,

I'm having trouble of inserting an SQLXML  in my Postgresql 8.4 database :

java.lang.ClassCastException: org.postgresql.jdbc4.Jdbc4SQLXML cannot be cast to [B
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.updateRowBuffer(AbstractJdbc2ResultSet.java:1729)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.updateRow(AbstractJdbc2ResultSet.java:1291)

when i use that :

SQLXML sqlxml = con.createSQLXML();
DOMResult domResult=sqlxml.setResult(DOMResult.class)
domResult.setNode(xmldocumentDOM);

stmt.setSQLXML(1, sqlxml);
stmt.execute();

Do you have an idea, why ?



Thank you very much for your futur help :)

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: XA Xid to PostgreSQL transaction ID
Next
From: Daniele Varrazzo
Date:
Subject: Re: XA Xid to PostgreSQL transaction ID