by Mike.Sheen » Tue Oct 04, 2022 10:54 am
sameermoin wrote:Hi Everyone,
I am getting an "Object Reference not set to an instance of an object" Exception on the Scheduler service. This is not an occurring specific method and the service is getting crashed.
The complete trace gives me the information:
- Code: Select all
Application Insights Telemetry (unconfigured): {"name":"Microsoft.ApplicationInsights.RemoteDependency","time":"2022-10-01T19:27:28.2695175Z","tags":{"ai.internal.sdkVersion":"rddf:2.4.1-1362","ai.internal.nodeName":"admin","ai.operation.id":"qfPPeT8gJy0=","ai.cloud.roleInstance":"admin"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"ADMIN | JiwaDemo","id":"|qfPPeT8gJy0=.24f2d0e1_","duration":"00:00:00.0150388","success":true,"type":"SQL","target":"ADMIN | JiwaDemo"}}}
I doubt the Application Insights component is the cause of the exception, or if it is, if it is causing any issues - I think it's normal under some circumstances for that to throw exceptions but those are normally simply ignored. You might be seeing reference to this in the event log, but in the complete exception detail you might see another cause.
sameermoin wrote:I am already using the debugger on my actual plugin. When I step over some lines I get this exception.
- Code: Select all
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=Plugin Name
StackTrace:
at ScheduledExecutionPlugin.Execute(Plugin Plugin, Schedule Schedule) in c:\ProgramData\Jiwa Financials\Jiwa 7\7.2.1\SYSTEM\ADMIN\JiwaDemo\Plugins\Admin\Compile\Plugin Name\Plugin Name.cs:line 1072
As Stuart said - you'll need to show us what is happening on and around line 1072 of the "Plugin Name" plugin.
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution