为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM8
【操作系统】:Linux
【CPU】:
【问题描述】*:.net core 连接达梦数据库首次拿数据是报错:System.NullReferenceException,出错后重试就能正常拿到数据。
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System.Private.CoreLib
StackTrace:
在 System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) 在 System.Collections.Generic.Dictionary
2.set_Item(TKey key, TValue value)
在 Dm.filter.log.LogFactory.getLog(Type clazz)
在 Dm.EPGroup…ctor(List`1 serverList)
在 Dm.DmConnProperty.get_EPGroup()
在 Dm.DmConnection.Connect()
在 Dm.DmConnection.Open()
一开始没有创建对象进行查询时会报错,创建对象后,再运行一次进行查询不会报错