Getting Identification Engine Error:NullPointerException

nimmi25025
Kilo Expert

Hi All,

 

I am getting identification Engine Error for few nodes in one application where other node has been identified as the same CI for which i am getting identification error.

Error Msg goes like this:

Identification Engine error: null. Stacktrace: java.lang.NullPointerException
at com.snc.cmdb.identify_reconcile.IdentificationEngine.processRelations(IdentificationEngine.java:809)
at com.snc.cmdb.identify_reconcile.IdentificationEngine.process(IdentificationEngine.java:583)
at com.snc.cmdb.identify_reconcile.IdentificationEngine.execute(IdentificationEngine.java:335)
at com.snc.cmdb.identify_reconcile.IdentificationEngine.execute(IdentificationEngine.java:291)
at com.snc.cmdb.identify_reconcile.IdentificationEngine.createOrUpdateCI(IdentificationEngine.java:276)
at com.snc.sw.resulthandlers.AbstractDiscoveryResultHandler.createOrUpdateCI(AbstractDiscoveryResultHandler.java:156)
at com.snc.sw.resulthandlers.AbstractDiscoveryResultHandler.runIdentificationEngine(AbstractDiscoveryResultHandler.java:106)
at com.snc.sw.topologymanager.drp.IdentificationEngineDiscoveryResultHandler.saveDiscoveryResult(IdentificationEngineDiscoveryResultHandler.java:120)
at com.snc.sw.resulthandlers.ServiceWatchInitialDiscoveryResultHandler.processResult(ServiceWatchInitialDiscoveryResultHandler.java:214)
at com.snc.sw.resulthandlers.ServiceWatchInitialDiscoveryResultHandler.handleResult(ServiceWatchInitialDiscoveryResultHandler.java:136)
at sun.reflect.GeneratedMethodAccessor4247.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)


Please let me know what could be the possible reason of this.

Thanks,
Nimmi

 

2 REPLIES 2

Dave Mau
ServiceNow Employee
ServiceNow Employee

I've seen this when there are duplicates.  Are there duplicates?

tim_broberg
ServiceNow Employee
ServiceNow Employee

Nimmi, it looks like that code is walking through all the relations, pulling up references to child and parent in each one, and then blindly dereferencing them.

It would be helpful if you could open an incident, and attach the ecc_queue input that reproduces this, exported as xml. You'll need to do that soon as the ecc_queue table gets rolled over every few days.

From that, we should be able to recreate the problem and log a PRB to get it fixed.

It's not obvious to me how you would work around that.

Sorry for the trouble,

    - Tim.