Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Possible reasons for EndOfStreamException? (1 reply)

$
0
0
Hello,
I see the following exception in the logs:

Exception type: MySql.Data.MySqlClient.MySqlException
Exception message: Fatal error encountered during command execution.

Inner exceptions chain:

Exception type: MySql.Data.MySqlClient.MySqlException
Exception message: Fatal error encountered attempting to read the resultset.

Exception type: MySql.Data.MySqlClient.MySqlException
Exception message: Reading from the stream has failed.

Exception type: System.IO.EndOfStreamException
Exception message: Attempted to read past the end of the stream.

Stack trace:
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at MySql.Data.MySqlClient.ISSchemaProvider.GetTable(String sql)
at MySql.Data.MySqlClient.ISSchemaProvider.Query(String table_name, String initial_where, String[] keys, String[] values)
at MySql.Data.MySqlClient.ISSchemaProvider.GetProcedures(String[] restrictions)
at MySql.Data.MySqlClient.ISSchemaProvider.GetSchemaInternal(String collection, String[] restrictions)
at MySql.Data.MySqlClient.SchemaProvider.GetSchema(String collection, String[] restrictions)
at MySql.Data.MySqlClient.MySqlConnection.GetSchema(String collectionName, String[] restrictionValues)
at MySql.Data.MySqlClient.ProcedureCache.GetProcData(MySqlConnection connection, String spName)
at MySql.Data.MySqlClient.ProcedureCache.AddNew(MySqlConnection connection, String spName)
at MySql.Data.MySqlClient.ProcedureCache.GetProcedure(MySqlConnection conn, String spName, String cacheKey)
at MySql.Data.MySqlClient.StoredProcedure.GetParameters(String procName, DataTable& proceduresTable, DataTable& parametersTable)
at MySql.Data.MySqlClient.StoredProcedure.Resolve(Boolean preparing)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at RA.Common.DAL.SupTransactionAccessor.AddSupTransaction(SupTransaction supTransaction, IDbConnection conn) in C:\VCProjects\Alex\RA\RA.Common\DAL\SupTransactionAccessor.cs:line 64
...

And in a few seconds after this I see next exception:

Exception type: System.InvalidOperationException
Exception message: Connection must be valid and open.

Stack trace:
at MySql.Data.MySqlClient.MySqlCommand.CheckState()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at RA.Common.DAL.SupTransactionAccessor.AddSupTransaction(SupTransaction supTransaction, IDbConnection conn) in C:\VCProjects\Alex\RA\RA.Common\DAL\SupTransactionAccessor.cs:line 64
...


It seems like connection has been silently closed? What can be the reasons for EndOfStreamException? If you think the reason is broken connection - what are the possible reasons for it? (In the logs I see that the server was working without interruptions and the client machine could continue working after opening new connection).

Thank you in advance.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>