Bug 1114672 - java.lang.NullPointerException when running "discovery -f" on JBoss ON Agent
Summary: java.lang.NullPointerException when running "discovery -f" on JBoss ON Agent
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Agent
Version: JON 3.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: JON 3.3.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 644871
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-30 15:21 UTC by bkramer
Modified: 2018-12-06 17:06 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-08 15:06:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 800141 0 medium CLOSED a NullPointerException (NPE) occurs when "discovery -f" Agent prompt command is run when the Agent is not connected to t... 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1023332 0 unspecified CLOSED NullPointerException when synchronizing discovered resources with agent 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 53655 0 None None None Never

Internal Links: 800141 1023332

Description bkramer 2014-06-30 15:21:05 UTC
Description of problem:
When running "discovery -f" command on the JBoss ON Agent command line java.lang.NullPointerException is thrown when trying to send the report to the server.

Version-Release number of selected component (if applicable):
JBoss ON 3.1.2

How reproducible:
Sometimes.

Steps to Reproduce:
1. Execute JBoss ON Agent's "discovery -f" command;

Actual results:
Above command fails with java.lang.NullPointerException:

*******************************************************
sending> discovery -f
Full discovery run in [458] ms
=== Server Scan Inventory Report ===
Start Time:     May 22, 2014 4:24:10 PM
Finish Time:    May 22, 2014 4:24:10 PM
Resource Count: 21


Failed to execute prompt command [discovery -f]. Cause: java.lang.NullPointerException:null
*******************************************************


Expected results:
No exception is thrown and command is correctly executed. 

Additional info:
It seems that sometimes, the connection between JBoss ON Agent and Server is lost and Agent is not able to send report to the server. JBoss ON Agent restart using --cleanconfig option resolves the issue.

Comment 1 Larry O'Leary 2014-07-03 20:01:22 UTC
Do we have a complete error and stack from the agent log? Does it match the stack in bug 644871?

Comment 2 Larry O'Leary 2014-07-03 20:02:23 UTC
Perhaps this is the same issue as the inventory sync issue reported in bug 1023332?

Comment 3 Larry O'Leary 2014-07-03 20:07:38 UTC
Upstream bug 800141 seems to also report the same issue which seems to have been reported as fixed. From its commit it appears the fix went into RHQ 4.4.0 which is what 3.1.2 was based on so either this issue isn't actually fixed or it can happen in other situations.

Comment 5 Larry O'Leary 2014-07-08 15:06:40 UTC
I performed a quick test and was not able to reproduce this over multiple tries. 

The customer case that reported this problem against 3.1.2 was actually running JBoss ON 3.0.1. Therefore the issue identified in comment 3 would have most likely applied but has since been fixed.

Closing this as WORKSFORME. If someone is able to reproduce this on 3.1.2 or later, please feel free to file a new product bug or re-open this with complete details.


Note You need to log in before you can comment on or make changes to this bug.