Skip to Content
0
Former Member
Nov 21, 2011 at 05:06 PM

SAP .Net Connector 3.0 - Access via 'NULL' object reference not possible.

88 Views

Hello,

I have developed a .Net Service that connects to different backend systems to retrieve employee data.

For the connection to SAP we are now using the SAP .Net Connector 3 and everything works fine for the different installations of the service we have.

But for one system, at the Invoke of the method in SAP, we receive the following error:

Message: Access via 'NULL' object reference not possible.

Source: sapnco

StackTrace:

at SAP.Middleware.Connector.RfcConnection.ThrowRfcErrorMsg()

at SAP.Middleware.Connector.RfcConnection.ReadBytes(Byte* buffer, Int32 count)

at SAP.Middleware.Connector.RfcConnection.ReadRfcIDBegin(Int32& length)

at SAP.Middleware.Connector.RfcConnection.ReadUpTo(RFCGET readState, RfcFunction function, RFCID toRid)

at SAP.Middleware.Connector.RfcConnection.RfcReceive(RfcFunction function)

at SAP.Middleware.Connector.RfcFunction.RfcDeserialize(RfcConnection conn, IRfcIOStream stream)

at SAP.Middleware.Connector.RfcFunction.RfcCallReceive(RfcConnection conn, IRfcIOStream stream, RFCID rid)

at SAP.Middleware.Connector.RfcFunction.RfcCallReceive(RfcConnection conn)

at SAP.Middleware.Connector.RfcFunction.Invoke(RfcDestination destination)

at SCGW_Backend2.SAPBackend.GetUserInfo(...) in SCGW_Backend2\SAPBackend.cs:line 1452

Could someone help me one the cause of this issue and/or where to look at to understand it in my case.

Thanks in advance for all

Regards

Denis Willems

EDIT SAME ERROR WHEN TESTING WITH VERSION 2.0 OF THE SAP .NET CONNECTOR. WOULD REALLY APPRECIATE TO HAVE A CLUE ON WHERE TO SEARCH - Thanks again

Edited by: deniswi on Nov 21, 2011 6:15 PM