Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Bug in Managed ODP.NET 4.121.2.0 + EF 6: CLOB data values sometimes breaks reader's ability to proc

Tom HalladayFeb 19 2015 — edited Nov 23 2015

I've been seeing this problem crop up since the 12g client force-upgraded the Oracle.ManagedDataAccess dll's in my GAC.

I originally posted the error on StackOverflow, thinking that it was a configuration problem on my side:

oracle - EF + ODP.NET + CLOB = Value Cannot be Null - Parameter name: byteArray? - Stack Overflow

Error:

Value cannot be null. Parameter name: byteArray

Stack Trace:

at System.BitConverter.ToString(Byte[] value, Int32 startIndex, Int32 length)

at OracleInternal.TTC.TTCLob.GetLobIdString(Byte[] lobLocator)

at OracleInternal.ServiceObjects.OracleDataReaderImpl.CollectTempLOBsToBeFreed(Int32 rowNumber)

at Oracle.ManagedDataAccess.Client.OracleDataReader.ProcessAnyTempLOBs(Int32 rowNumber)

at Oracle.ManagedDataAccess.Client.OracleDataReader.Read()

at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.StoreRead()

However I can now confirm that this is definitely a bug in the Oracle code, as it seems to only happen under a very specific set of conditions:

Multiple Objects (Rows) are selected

Multiple Properties (Columns) are selected

AND

The data returned has a mix of null and non-null CLOB values.  All null or all non-null does not seem to trigger the problem.

This is a HUGE problem for us as our applications are all written against ODP.NET, and utilize CLOBS.  Has anyone else had this problem?

Any advice at this point other then 'don't use clobs' would be greatly appreciated.

Thanks

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 21 2015
Added on Feb 19 2015
10 comments
6,858 views