History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RHQ-839
Type: Bug Bug
Status: Closed Closed
Resolution: Not An Issue
Priority: Blocker Blocker
Assignee: Fady Matar
Reporter: Joseph Marques
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RHQ Project

NPE while adding resource to inventory

Created: 15/Sep/08 03:02 PM   Updated: 01/Oct/08 08:07 AM
Component/s: FX - Inventory, Core Server
Affects Version/s: 1.1pre
Fix Version/s: 1.1

Time Tracking:
Not Specified

Environment: win / apache

Resolution Date: 01/Oct/08 08:07 AM
Date of First Response: 22/Sep/08 11:15 AM


 Description  « Hide
wasn't doing anything funky, just imported (or attempted to import) an apache resource.

15:57:26,042 WARN [DiscoveryBossBean] Could not perform commit synchronization with agent for platform [marques-custom]

java.lang.NullPointerException
        at org.rhq.core.pc.inventory.InventoryManager.matches(InventoryManager.java:1022)
        at org.rhq.core.pc.inventory.InventoryManager.findMatchingChildResource(InventoryManager.java:1013)
        at org.rhq.core.pc.inventory.InventoryManager.mergeResource(InventoryManager.java:1605)
        at org.rhq.core.pc.inventory.InventoryManager.mergeModifiedResources(InventoryManager.java:1578)
        at org.rhq.core.pc.inventory.InventoryManager.synchInventory(InventoryManager.java:627)
        at org.rhq.core.pc.inventory.InventoryManager.synchronizeInventory(InventoryManager.java:1247)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.rhq.enterprise.communications.command.impl.remotepojo.server.RemotePojoInvocationCommandService.execute(R
emotePojoInvocationCommandService.java:184)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)
        at $Proxy1.execute(Unknown Source)
        at org.rhq.enterprise.communications.command.server.CommandProcessor.handleIncomingInvocationRequest(CommandProc
essor.java:361)
        at org.rhq.enterprise.communications.command.server.CommandProcessor.invoke(CommandProcessor.java:253)
        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
        at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
        at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
        at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
15:57:26,042 INFO [DiscoveryBossBean] Inventory status set to [COMMITTED] for [1] platforms and [1] servers in [1078]ms

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Fady Matar - 22/Sep/08 11:15 AM
Apart from the apache_snmp configuration which seems to be failing (something on my side) I see no trace of this exception happening, probably it would happen after the snmp config is working.

Fady Matar - 22/Sep/08 11:32 AM
apache_snmp configuration successful, selinux was preventing it from going through.
Apache resource imported gracefully, will close the bug