Hide Forgot
Here's an example of the log messages: 2012-02-13 10:17:02,509 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=10059, type=Apache Virtual Host, key=|_default_:443, name=127.0.0.1:443, parent=127.0.0.1:80]] changed from [null] to [] 2012-02-13 10:17:02,658 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=10061, type=Apache Virtual Host, key=|_default_:8443, name=127.0.0.1:8443, parent=127.0.0.1:80]] changed from [null] to [] 2012-02-13 10:17:03,673 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=10060, type=Apache Virtual Host, key=MainServer, name=Main, parent=127.0.0.1:80]] changed from [null] to [] 2012-02-13 10:17:09,305 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13044, type=JBoss Web, key=SINGLETON, name=JBoss Web, parent=EAP 127.0.0.2 production1]] changed from [null] to [] 2012-02-13 10:17:09,376 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13306, type=Connector, key=http://127.0.0.2:8080, name=http://127.0.0.2:8080, parent=JBoss Web]] changed from [null] to [] 2012-02-13 10:17:09,385 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13305, type=Connector, key=ajp://127.0.0.2:8009, name=ajp://127.0.0.2:8009, parent=JBoss Web]] changed from [null] to [] 2012-02-13 10:17:10,388 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13307, type=Virtual Host, key=localhost, name=localhost, parent=JBoss Web]] changed from [null] to [] 2012-02-13 10:17:10,444 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13045, type=Local Tx Datasource, key=DefaultDS, name=DefaultDS, parent=EAP 127.0.0.2 production1]] changed from [null] to [] 2012-02-13 10:17:10,514 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13046, type=Tx ConnectionFactory, key=JmsXA, name=JmsXA, parent=EAP 127.0.0.2 production1]] changed from [null] to [] 2012-02-13 10:17:10,917 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13050, type=Web Application (WAR), key={default}ROOT.war, name=ROOT.war, parent=EAP 127.0.0.2 production1]] changed from [null] to [] 2012-02-13 10:17:10,997 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=13308, type=Web Application Context, key=localhost, name=//localhost/, parent=ROOT.war]] changed from [null] to []
The issue here is that when a newly discovered Resource is reported to the Server, Oracle normalizes a version of "" to NUL (as it does for all columns). This value then gets synced back to the Agent during the next Server->Agent sync. The next time the Agent auto-discovers the same Resource, its version is again "", and the Agent logs a message reporting that the version has changed from null to "", when it actually never truly changed.
Fixed in master - http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=7f05ccc. The solution was for the plugin container to immediately normalize values of "" for the Resource version or description to null. Previously, the opposite was actually being done (i.e. null was being normalized to "").
Bulk closing of some old issues