ADF Application Deployed in WebLogic Server 10.3.x Exhibits Passivation Errors (Doc ID 1365238.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version 10.1.3.4.0 and later
Information in this document applies to any platform.
***Checked for relevance on 08-Apr-2013***

Symptoms

When running a ADF 10g application directly in WLS 10.3.x, with the proper ADF 10g runtime installed as per document:
http://www.oracle.com/technetwork/developer-tools/jdev/deployingwls-091640.html
passivation errors are encountered.

When enabling ADF tracing messages, errors like the following are displayed:

[351] (8) OraclePersistManager.insert(1784) **insert** id=1, parid=-1, collid=4250, keyArr.len=-1, cont.len=2985
[352] (0) OraclePersistManager.insert(1826) stmt: begin insert into "PS_TXN" values (:1, :2, :3, empty_blob(), sysdate) returning content into :4; end;
[353] (170) OraclePersistManager.insert(1857) **insert** error, sqlStmt=null
[354] (1) Diagnostic.printStackTrace(410) java.lang.ClassCastException: weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB
at weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_OracleCallableStatementWrapper.getBLOB(Unknown Source)
at oracle.jbo.pcoll.OraclePersistManager.updateBlobs(OraclePersistManager.java:1629)
at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1848)
at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:561)

In ADF 11g, errors like the following are shown in the server logs:

oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:oracle.jbo.domain.BlobDomain from type:weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB with value:weblogic.jdbc.wrapper.Blob_oracle_sql_BLOB@15d
at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:894)
at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:116)
at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1330)
at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2440)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:917)
at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:552)
at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8311)

Or:

Caused by: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Insert": SQL Statement "null".
at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8613)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8467)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6733)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3286)

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms