java.sql.SQLException: Cannot map Unicode to Oracle character.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 302199, 1 year ago
Cannot map Unicode to Oracle character.
via Oracle Community by 843854, 1 year ago
Cannot map Unicode to Oracle character.
via Oracle Community by 428720, 1 year ago
Cannot map Unicode to Oracle character.
via Oracle Community by 43582, 3 months ago
via Oracle Community by 437949, 1 year ago
Cannot map Unicode to Oracle character.
java.sql.SQLException: Cannot map Unicode to Oracle character.
at oracle.sql.converter.CharacterConverter1Byte.toOracleCharacter(CharacterConverter1Byte.java:173)
at oracle.sql.converter.CharacterConverter1Byte.toOracleString(CharacterConverter1Byte.java:324)
at oracle.sql.CharacterSetWithConverter.convert(CharacterSetWithConverter.java:160)
at oracle.sql.CHAR.(CHAR.java:159)
at oracle.jpub.runtime.Util._convertToOracle(Util.java:182)
at oracle.jpub.runtime.Util.convertToOracle(Util.java:148)
at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:377)
at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java:402)
at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:130)
at oracle.mgw.drivers.aq.sqlj.MgwTextValue_T.toDatum(MgwTextValue_T.java:34)
at oracle.jpub.runtime.Util._convertToOracle(Util.java:167)
at oracle.jpub.runtime.Util.convertToOracle(Util.java:148)
at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:377)
at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java:402)
at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:130)
at oracle.mgw.drivers.aq.sqlj.MgwBasicMsg_T.toDatum(MgwBasicMsg_T.java:40)
at oracle.jdbc.driver.OraclePreparedStatement.setORAData(OraclePreparedStatement.java:2700)
at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:3006)
at oracle.mgw.drivers.aq.AQMsgProducer$MgwBasicMsg_Enqueuer.setPayload(AQMsgProducer.java:1088)
at oracle.mgw.drivers.aq.AQMsgProducer$MgwBasicMsg_Enqueuer.enqueueOp(AQMsgProducer.java:983)
at oracle.mgw.drivers.aq.AQMsgProducer$Enqueuer.enqueueMessage(AQMsgProducer.java:582)
at oracle.mgw.drivers.aq.AQMsgProducer.enqueue(AQMsgProducer.java:487)
at oracle.mgw.drivers.aq.AQLink.send(AQLink.java:1563)
at oracle.mgw.engine.Worker.enqMessages(Worker.java:337)
at oracle.mgw.engine.Worker.processJob(Worker.java:1111)
at oracle.mgw.engine.Worker.myRun(Worker.java:87)
at oracle.mgw.engine.ManagedThr.run(ManagedThr.java:58)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.