orm multithread error

2 posts, 0 answers
  1. Alok
    Alok avatar
    1 posts
    Member since:
    Apr 2013

    Posted 04 Apr 2013 Link to this post

    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
  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 09 Apr 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top