This is a migrated thread and some comments may be shown as answers.

orm multithread error

1 Answer 22 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alok
Top achievements
Rank 1
Alok asked on 04 Apr 2013, 11:06 AM

when i debug the file I wont get any error but on .net multithread process, i received the following error :

Error reading field AdeccoGroup.Data.Access.DataModel.Client._clientDescription from ResultSet: System.NullReferenceException: Object reference not set to an instance of an object.     at System.Data.SqlClient.SqlDataReader.ReadColumnHeader(Int32 i)     at System.Data.SqlClient.SqlDataReader.IsDBNull(Int32 i)     at OpenAccessRuntime.Data.VariableLengthStringConverter.Read(DataHolder& data)     at OpenAccessRuntime.Relational.RelationalGenericState.copyPass1Fields(ResultSet rs, FetchGroupField[] fetchGroups, Int32 firstCol) System.NullReferenceException: Object reference not set to an instance of an object.     at System.Data.SqlClient.SqlDataReader.ReadColumnHeader(Int32 i)     at System.Data.SqlClient.SqlDataReader.IsDBNull(Int32 i)     at OpenAccessRuntime.Data.VariableLengthStringConverter.Read(DataHolder& data)     at OpenAccessRuntime.Relational.RelationalGenericState.copyPass1Fields(ResultSet rs, FetchGroupField[] fetchGroups, Int32 firstCol)        at AdeccoGroup.Business.PipelineFactory.ProcessExecutionMessage(ExecutionMessage executionMessage, RecievePipeline recievePipeline)     at AdeccoGroup.Products.GDRExecutionService.ChildXMLThread.ReprocessFailedFile(ContractConfiguration contractConfig, ExecutionMessage executionMessage, String inputXml)  D:\GDRFolderStructure\52479C2B-7A53-4c3d-8B79-98C658527CF9\Drop\J04_CLI_20120107195000001_52479C2B-7A53-4c3d-8B79-98C658527CF9.xml_20120823171952.xml

1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 09 Apr 2013, 08:52 AM
Hello Alok,

 This seems to be the same use case as you have posted in the forum ticket - 679028.  We would like to have some more information regarding the problem. What is the exact code that causes this exception? Can you prepare a small sample that helps reproduce the exception?
Also is the context being used from multiple threads? If yes, have you specified 'BackendConfiguration.Runtime.SupportConcurrentThreadsInScope = true' for the BackendConfiguration object that is used to create the context instance?

All the best,
Ady
the Telerik team
Using Encrypted Connection Strings with Telerik OpenAccess ORM. Read our latest blog article >>
Tags
Databases and Data Types
Asked by
Alok
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or