[Firebird-net-provider] [FB-Tracker] Created: (DNET-689) Commit on .NET Data provider throws NullReferenceException.

2016-08-09 Thread Christian B (JIRA)
Commit on .NET Data provider throws NullReferenceException.
---

 Key: DNET-689
 URL: http://tracker.firebirdsql.org/browse/DNET-689
 Project: .NET Data provider
  Issue Type: Bug
  Components: ADO.NET Provider
Affects Versions: 4.10.0.0
 Environment: Server: Windows 2012 R2 x64
Application: .Net Framework 4.5, Firebird .NET Provider 4.10.0.0, EF 6.0.0.0
Reporter: Christian B
Assignee: Jiri Cincura


Sometimes following error occurs, when we try to executing a procedure on 
database like this:  db.Database.ExecuteSqlCommand("execute procedure...")

An error was reported while committing a database transaction but it could not 
be determined whether the transaction succeeded or failed on the database 
server. See the inner exception and 
http://go.microsoft.com/fwlink/?LinkId=313468 for more information. 
System.Data.Entity.Infrastructure.CommitFailedException CommitFailedException 
System.Data.Entity.Infrastructure.CommitFailedException: An error was reported 
while committing a database transaction but it could not be determined whether 
the transaction succeeded or failed on the database server. See the inner 
exception and http://go.microsoft.com/fwlink/?LinkId=313468 for more 
information. ---> System.NullReferenceException: Object reference not set to an 
instance of an object.
   at FirebirdSql.Data.Client.Managed.Version10.GdsTransaction.Commit() in 
C:\Users\Jiri\Documents\devel\NETProvider\working\NETProvider\src\FirebirdSql.Data.FirebirdClient\Client\Managed\Version10\GdsTransaction.cs:line
 172
   at FirebirdSql.Data.FirebirdClient.FbTransaction.Commit() in 
C:\Users\Jiri\Documents\devel\NETProvider\working\NETProvider\src\FirebirdSql.Data.FirebirdClient\FirebirdClient\FbTransaction.cs:line
 142
   at 
System.Data.Entity.Infrastructure.Interception.DbTransactionDispatcher.b__c(DbTransaction
 t, DbTransactionInterceptionContext c)
   at 
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget
 target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 
executing, Action`3 executed)
   --- End of inner exception stack trace ---
   at 
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget
 target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 
executing, Action`3 executed)
   at 
System.Data.Entity.Infrastructure.Interception.DbTransactionDispatcher.Commit(DbTransaction
 transaction, DbInterceptionContext interceptionContext)
   at System.Data.Entity.Core.EntityClient.EntityTransaction.Commit()
   at 
System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 
func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, 
Boolean releaseConnectionOnSuccess)
   at 
System.Data.Entity.Core.Objects.ObjectContext.<>c__DisplayClass59.b__57()
   at 
System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1
 operation)
   at 
System.Data.Entity.Core.Objects.ObjectContext.ExecuteStoreCommand(TransactionalBehavior
 transactionalBehavior, String commandText, Object[] parameters)
   at 
System.Data.Entity.Internal.InternalContext.ExecuteSqlCommand(TransactionalBehavior
 transactionalBehavior, String sql, Object[] parameters)
   at System.Data.Entity.Database.ExecuteSqlCommand(TransactionalBehavior 
transactionalBehavior, String sql, Object[] parameters)
   at System.Data.Entity.Database.ExecuteSqlCommand(String sql, Object[] 
parameters)
System.Action`3[TInterceptor,TTarget,TInterceptionContext], 
System.Action`3[TInterceptor,TTarget,TInterceptionContext])at 
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget
 target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 
executing, Action`3 executed)
   at 
System.Data.Entity.Infrastructure.Interception.DbTransactionDispatcher.Commit(DbTransaction
 transaction, DbInterceptionContext interceptionContext)
   at System.Data.Entity.Core.EntityClient.EntityTransaction.Commit()
   at 
System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 
func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, 
Boolean releaseConnectionOnSuccess)
   at 
System.Data.Entity.Core.Objects.ObjectContext.<>c__DisplayClass59.b__57()
   at 
System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute[TResult](Func`1
 operation)
   at 
System.Data.Entity.Core.Objects.ObjectContext.ExecuteStoreCommand(TransactionalBehavior
 transactionalBehavior, String commandText, Object[] parameters)
   at 
System.Data.Entity.Internal.InternalContext.ExecuteSqlCommand(TransactionalBehavior
 transactionalBehavior, String sql, Object[] parameters)
   at 

[Firebird-net-provider] [FB-Tracker] Created: (DNET-844) NullReferenceException on Version10.GdsDatabase.BeginTransaction(TransactionParameterBuffer tpb)

2018-08-22 Thread Christian B (JIRA)
NullReferenceException on 
Version10.GdsDatabase.BeginTransaction(TransactionParameterBuffer tpb)


 Key: DNET-844
 URL: http://tracker.firebirdsql.org/browse/DNET-844
 Project: .NET Data provider
  Issue Type: Bug
  Components: ADO.NET Provider
Affects Versions: 5.12.1.0
 Environment: WindowsServer 2012R2
Firebird-Server Version 2.5.4
EntityFramework Version 6.1.3
EntityFramework.Firebird Version 5.12.1.0
Provider Version 5.12.1.0
Provider Version 5.12.1.0
Reporter: Christian B
Assignee: Jiri Cincura
Priority: Critical


It happens every few days, that we get NullReferenceException in our 
web-service. This happens on select and also on update (save changes). We can 
now only "fix" it, when we restart the web-service (pool). 

Callstack - Select: It happens on ToList(), First(), FirstOrDefault()

System.NullReferenceException Void 
BeginTransaction(FirebirdSql.Data.Common.TransactionParameterBuffer)bei 
FirebirdSql.Data.Client.Managed.Version10.GdsTransaction.BeginTransaction(TransactionParameterBuffer
 tpb)
   bei 
FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.BeginTransaction(TransactionParameterBuffer
 tpb)
   bei FirebirdSql.Data.FirebirdClient.FbTransaction.BeginTransaction()
   bei FirebirdSql.Data.FirebirdClient.FbCommand.Prepare(Boolean returnsSet)
   bei FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteCommand(CommandBehavior 
behavior, Boolean returnsSet)
   bei FirebirdSql.Data.FirebirdClient.FbCommand.ExecuteReader(CommandBehavior 
behavior)
   bei 
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget
 target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 
executing, Action`3 executed)
   bei 
System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.Reader(DbCommand
 command, DbCommandInterceptionContext interceptionContext)
   bei 
System.Data.Entity.Core.EntityClient.Internal.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand
 entityCommand, CommandBehavior behavior)
   bei 
System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlan.Execute[TResultType](ObjectContext
 context, ObjectParameterCollection parameterValues)
   bei 
System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 
func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, 
Boolean releaseConnectionOnSuccess)
   bei 
System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.b__5()
   bei System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 
forMergeOption)
   bei 
System.Data.Entity.Core.Objects.ObjectQuery`1..GetEnumerator>b__0()
   bei System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
   bei System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   bei System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
  
Callstack - Update:
   
System.NullReferenceException Void 
BeginTransaction(FirebirdSql.Data.Common.TransactionParameterBuffer)bei 
FirebirdSql.Data.Client.Managed.Version10.GdsTransaction.BeginTransaction(TransactionParameterBuffer
 tpb)
   bei 
FirebirdSql.Data.Client.Managed.Version10.GdsDatabase.BeginTransaction(TransactionParameterBuffer
 tpb)
   bei FirebirdSql.Data.FirebirdClient.FbTransaction.BeginTransaction()
   bei 
FirebirdSql.Data.FirebirdClient.FbConnectionInternal.BeginTransaction(IsolationLevel
 level, String transactionName)
   bei 
FirebirdSql.Data.FirebirdClient.FbConnection.BeginDbTransaction(IsolationLevel 
isolationLevel)
   bei 
System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget
 target, Func`3 operation, TInterceptionContext interceptionContext, Action`3 
executing, Action`3 executed)
   bei 
System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.BeginTransaction(DbConnection
 connection, BeginTransactionInterceptionContext interceptionContext)
   bei 
System.Data.Entity.Core.EntityClient.EntityConnection.BeginDbTransaction(IsolationLevel
 isolationLevel)
   bei System.Data.Entity.Core.EntityClient.EntityConnection.BeginTransaction()
   bei 
System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 
func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, 
Boolean releaseConnectionOnSuccess)
   bei 
System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions 
options, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction)
   bei 
System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions 
options, Boolean executeInExistingTransaction)
   bei System.Data.Entity.Internal.InternalContext.SaveChanges()
   bei BetAdmin.Data.BetAdminContext.SaveChanges()

-- 
This message is automatically generated by JIRA.
-