Bug 850527

Summary: NPE in Drift after import of plugins
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: driftAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.5   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-27 15:24:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Heiko W. Rupp 2012-08-21 18:40:12 UTC
Imported a cron server type (and others) got this on console:

14:30:20,979 WARN  [DiscoveryBossBean] Could not perform commit synchronization with agent for server [Cron]
java.lang.RuntimeException: java.lang.NullPointerException
	at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:1145)
	at org.rhq.core.pc.inventory.InventoryManager.synchronizeInventory(InventoryManager.java:2188)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.rhq.enterprise.communications.command.impl.remotepojo.server.RemotePojoInvocationCommandService.execute(RemotePojoInvocationCommandService.java:184)

	at $Proxy0.execute(Unknown Source)
	at org.rhq.enterprise.communications.command.server.CommandProcessor.handleIncomingInvocationRequest(CommandProcessor.java:290)
	at org.rhq.enterprise.communications.command.server.CommandProcessor.invoke(CommandProcessor.java:184)
	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
Caused by: java.lang.NullPointerException
	at org.rhq.enterprise.server.drift.DriftServerServiceImpl.getDriftDefinitions(DriftServerServiceImpl.java:93)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:30:21,026 WARN  [DiscoveryBossBean] Could not perform commit synchronization with agent for server [pattern]
java.lang.RuntimeException: java.lang.NullPointerException
	at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:1145)
	at org.rhq.core.pc.inventory.InventoryManager.synchronizeInventory(InventoryManager.java:2188)

Caused by: java.lang.NullPointerException
	at org.rhq.enterprise.server.drift.DriftServerServiceImpl.getDriftDefinitions(DriftServerServiceImpl.java:93)


and so on

Comment 1 Heiko W. Rupp 2012-08-21 18:44:06 UTC
Note, that I can't reproduce it on purpose.

Comment 2 Heiko W. Rupp 2012-08-27 15:24:11 UTC

*** This bug has been marked as a duplicate of bug 850572 ***