ISSUE:
When trying to insert a record into a CLOB with a size greater than 32KB using the DB Adapter you receive the following error in the logs;
java.sql.SQLException: setString can only
process strings of less than 32766 chararacters Internal Exception:
java.sql.SQLException: setString can only process strings of less than 32766
chararacters Error Code: 17157 when trying to insert record in clob type of
size more then 32766 characters
SOLUTION:
For 10.1.3.x release, the following steps also need to done,
1. create a new connector factory/modify existing one in $OracleHome/j2ee/oc4j_soa/application-deployments/default/DbAdapter/oc4j-ra.xml to map the JNDI location defined in DB Adapter wsdl file, verify that the property "usesStreamsForBinding" and "usesStringBinding" are set to "true". e.g.