"Can't convert fromnull" when inserting clob in Informix

Description

!!!! This problem doesn’t exist in version 4.1.4 !!!!

When I’m trying to insert value in CLOB column, mapped as materialized_clob I’m getting exception:

SQL Error: -79742, SQLState: IX000
Can't convert fromnull

Caused by: java.sql.SQLException: Can't convert fromnull
at com.informix.util.IfxErrMsg.getSQLMinorException(IfxErrMsg.java:576)
at com.informix.jdbc.IfxObject.fromCharacterStream(IfxObject.java:894)
at com.informix.jdbc.IfxValue.a(IfxValue.java:1206)
at com.informix.jdbc.IfxPreparedStatement.setCharacterStream(IfxPreparedStatement.java:5383)
at org.hibernate.type.descriptor.sql.ClobTypeDescriptor$4$1.doBind(ClobTypeDescriptor.java:114)
at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:93)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:280)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:275)
at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:57)
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2786)
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3191)
... 44 more

(See attached txt for full stacktrace)

=====================================
Driver documentation for error -79742:

Cannot convert from
Explanation: No data conversion is possible from the
data type you specified to the column data type. The
actual data type is appended to the end of this
message.
User response: Check your program logic to make
sure that the conversion you have asked for is
supported. See Appendix C, “Mapping data types,” on
page C-1 for the data mapping matrix
===================================

Environment

Hibernate 4.2.5
Informix 11.50
JDBC.4.10.JC1DE , JDBC.4.10.JC2DE

Assignee

Unassigned

Reporter

Krasi G

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure