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!

NullReferenceException in Oracle internal class

Manuel PMar 8 2023 — edited Mar 8 2023

I received a NullReferenceException report from my customer with the following stack trace:

   at OracleInternal.TTC.TTCExecuteSql.ReceiveExecuteResponse(Accessor[]& defineAccessors, Accessor[] bindAccessors, Boolean bHasReturningParams, SQLMetaData& sqlMetaData, SqlStatementType statementType, Int64 noOfRowsFetchedLastTime, Int32 noOfRowsToFetch, Int32& noOfRowsFetched, Int64& queryId, Int32 longFetchSize, Int64 initialLOBFetchSize, Int64[] scnFromExecution, Boolean bAllInputBinds, Int32 arrayBindCount, DataUnmarshaller& dataUnmarshaller, MarshalBindParameterValueHelper& marshalBindParamsHelper, Int64[]& rowsAffectedByArrayBind, Boolean bDefineDone, Boolean& bMoreThanOneRowAffectedByDmlWithRetClause, List`1& implicitRSList, Boolean bLOBArrayFetchRequired)
   at OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteReader(String commandText, OracleParameterCollection paramColl, CommandType commandType, OracleConnectionImpl connectionImpl, OracleDataReaderImpl& rdrImpl, Int32 longFetchSize, Int64 clientInitialLOBFS, OracleDependencyImpl orclDependencyImpl, Int64[] scnForExecution, Int64[]& scnFromExecution, OracleParameterCollection& bindByPositionParamColl, Boolean& bBindParamPresent, Int64& internalInitialLOBFS, OracleException& exceptionForArrayBindDML, OracleConnection connection, IEnumerable`1 adrianParsedStmt, Boolean isDescribeOnly, Boolean isFromEF)
   at Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
   at Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()

The executed SQL was very simple and had the form

    select
        alias1.SOME_COLUMN as some_alias,
        alias2.OTHER_COLUMN as other_alias,
        [more columns]		
    from
        SOME_TABLE alias1
    left outer join
        OTHER_TABLE alias2
            on alias1.COL_NAME=alias2.COL_NAME

I'm using the NuGet package Oracle.ManagedDataAccess version 19.18.0 with an Oracle Database 19c Standard Edition 2 version 19.16.0.0.0.

Sadly neither me nor my customer can reproduce the exception.

Is this a bug in ODP.NET that can be fixed? Or is there anything I can do on my side to prevent this exception?

This post has been answered by Manuel P on Oct 16 2023
Jump to Answer
Comments
Post Details
Added on Mar 8 2023
19 comments
2,051 views