SCM

[#1010793] NullReferenceException starting a transaction on a broken connection

View Trackers | Bugs | Download .csv | Monitor

Date:
2010-04-24 16:14
Priority:
3
State:
Open
Submitted by:
Stanislav Meduna (numo)
Assigned to:
Nobody (None)
Npgsql Version:
2.0.8
Category:
Group:
Resolution:
None
Summary:
NullReferenceException starting a transaction on a broken connection

Detailed description
This is actually for version 2.0.9.0 (as per npgsql.dll file info).

If I stop the PostgreSQL server, starting the next transaction throws a NullReferenceException. I'd expect a Npgsql exception telling me what happened. Sorry for german descriptions, I'm on a german Windows.

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinst
anz festgelegt.
bei Npgsql.NpgsqlCommand.ClearPoolAndCreateException(Exception e) in C:\proje
cts\Npgsql2\src\Npgsql\NpgsqlCommand.cs:Zeile 2909.
bei Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb) in C:\projects\Npgsql2
\src\Npgsql\NpgsqlCommand.cs:Zeile 1251.
bei Npgsql.NpgsqlCommand.ExecuteBlind() in C:\projects\Npgsql2\src\Npgsql\Npg
sqlCommand.cs:Zeile 969.
bei Npgsql.NpgsqlTransaction..ctor(NpgsqlConnection conn, IsolationLevel isol
ation) in C:\projects\Npgsql2\src\Npgsql\NpgsqlTransaction.cs:Zeile 82.
bei Npgsql.NpgsqlConnection.BeginTransaction(IsolationLevel level) in C:\proj
ects\Npgsql2\src\Npgsql\NpgsqlConnection.cs:Zeile 517.
bei Npgsql.NpgsqlConnection.BeginTransaction() in C:\projects\Npgsql2\src\Npg
sql\NpgsqlConnection.cs:Zeile 493.

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge