Skip site navigation (1) Skip section navigation (2)

JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar

From: Michael musset <mickamusset(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: JDBC4 with SQLXML and postgresql-8.4-702.jdbc4.jar
Date: 2010-10-19 19:31:33
Message-ID: AANLkTin9XWGbK-p11oMLazZEbp2OLwX8qf_Yn2Ddx_Fo@mail.gmail.com (view raw or flat)
Thread:
Lists: 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 :)

Responses

pgsql-jdbc by date

Next:From: Daniele VarrazzoDate: 2010-10-19 20:04:17
Subject: Re: XA Xid to PostgreSQL transaction ID
Previous:From: Kris JurkaDate: 2010-10-19 19:06:25
Subject: Re: XA Xid to PostgreSQL transaction ID

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group