java.lang.ClassCastException: java.lang.String cannot be cast to oracle.sql.BLOB

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

Solutions on the web

via Coderanch by Seth A Jackson, 1 year ago
via Oracle Community by 615786, 1 year ago
java.sql.Timestamp cannot be cast to oracle.sql.TIMESTAMPTZ
via Oracle Community by Amjad.Suleiman, 1 year ago
java.lang.Double cannot be cast to oracle.sql.BINARY_DOUBLE
via Oracle Community by 15255, 1 year ago
java.sql.Timestamp cannot be cast to oracle.sql.TIMESTAMPTZ
via Oracle Community by 902868, 1 year ago
via sourceforge.net by Unknown author, 2 years ago
java.lang.ClassCastException: java.lang.String cannot be cast to oracle.sql.BLOB
at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:8864)
at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8396)
at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8980)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:242)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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