Page 1 of 1

IIS Crashes because of Null reference exception in Rollback

Posted: Tue 03 Jul 2012 15:38
by PeterN
From time to time our IIS process crashes because of a NullReferenceException in OracleInternalConnection.Rollback method.
We use version 6.60.268.

Anyone an idea?
It seems to be a bug in dotConnect.

The detailed error is:
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at Devart.Data.Oracle.OracleInternalConnection.Rollback()
at Devart.Common.r.b(System.Transactions.Enlistment)
at System.Transactions.InternalEnlistment.System.Transactions.IEnlistmentNotificationInternal.Rollback(System.Transactions.IPromotedEnlistment)
at System.Transactions.Oletx.OletxVolatileEnlistment.Rollback()
at System.Transactions.Oletx.OletxPhase1VolatileEnlistmentContainer.Aborted()
at System.Transactions.Oletx.OletxTransactionManager.ShimNotificationCallback(System.Object, Boolean)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)

Re: IIS Crashes because of Null reference exception in Rollback

Posted: Fri 06 Jul 2012 09:16
by Pinturiccio
We have fixed the bug with NullReferenceException under the transaction rollback of a connection placed into the pool. We will post here when the corresponding build of dotConnect for Oracle is available for download.

Re: IIS Crashes because of Null reference exception in Rollback

Posted: Fri 06 Jul 2012 14:45
by PeterN
Thanks.

Re: IIS Crashes because of Null reference exception in Rollback

Posted: Thu 19 Jul 2012 07:40
by Pinturiccio
The new build of dotConnect for Oracle 7.1.40 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?t=24522

Re: IIS Crashes because of Null reference exception in Rollback

Posted: Wed 25 Jul 2012 20:29
by kyle.kline
Hi - we were seeing this error, and were hoping that 7.1.40 would fix our error. While testing the upgrade, we hit an exception that is VERY similar - different exception with the same stack trace:

Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Devart.Data.Oracle.OracleException
Stack:
at Devart.Data.Oracle.OracleInternalConnection.Rollback()
at Devart.Common.s.b(System.Transactions.Enlistment)
at System.Transactions.InternalEnlistment.System.Transactions.IEnlistmentNotificationInternal.Rollback(System.Transactions.IPromotedEnlistment)
at System.Transactions.Oletx.OletxVolatileEnlistment.Rollback()
at System.Transactions.Oletx.OletxPhase1VolatileEnlistmentContainer.Aborted()
at System.Transactions.Oletx.OletxTransactionManager.ShimNotificationCallback(System.Object, Boolean)
at System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(System.Object, Boolean)


Has anyone else seen this? For those who had the original exception, has the upgrade fixed your problem?

Thanks,
Kyle

Re: IIS Crashes because of Null reference exception in Rollback

Posted: Fri 27 Jul 2012 14:24
by Shalex
w3wp.exe shows us only a high-level exception (and without the content of its Message property). Please wrap your code in the try..catch block, find out the deepest inner exception and post here its Message property which describes the problem.