Transliteration Failed Error in PreparedStatement.setCharacterStre
From: Martin Kultermann (Kultermann_at_discussions.microsoft.com)
Date: 08/26/04
- Next message: Jerry: "can't connect to local server via localhost"
- Previous message: Mark Lewis: "java.util.NoSuchElementException thrown by driver"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 17:55:02 -0700
Hello I am trying to write a large java unicode character stream to an nText
column in a Sql Server 2000 - 8.00.534 (Intel X86) SP3 database with the
latest JDBC Type 4 driver SQLServer 2.2.0040.
I'm getting a Transliteration failed exception in my customer's environment
but it works fine in our development shop. Any ideas would be appreciated.
Here is the code:
liLength = ((String)aoObject).length();
StringReader lReader = new StringReader((String)aoObject);
iPreparedStatement.setCharacterStream(aiBindIndex, lReader, liLength);
Here is the stack trace:
2004-08-25 15:43:07,731 INFO [STDOUT] java.sql.SQLException -
eStarPreparedStatement.executeUpdate - PreparedStatement.executeUpdate()
2004-08-25 15:43:07,731 INFO [STDOUT] java.sql.SQLException:
[Microsoft][SQLServer JDBC Driver]Transliteration failed.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.submitRequest(Unknown
Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown
Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeInternal(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.execute(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown
Source)
at
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:335)
at
com.estar.database.eStarPreparedStatement.executeUpdate(eStarPreparedStatement.java:68)
- Next message: Jerry: "can't connect to local server via localhost"
- Previous message: Mark Lewis: "java.util.NoSuchElementException thrown by driver"
- Messages sorted by: [ date ] [ thread ]