| Summary: | NPE in server, when a current res config can not be obtained | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Heiko W. Rupp <hrupp> |
| Component: | Core Server | Assignee: | Heiko W. Rupp <hrupp> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.1 | CC: | hrupp, skondkar |
| 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-02-07 19:19:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 705059, 715334 | ||
master: 9c04e5b Verified on build#140 (Version: 4.1.0-SNAPSHOT Build Number: 5905b70) Navigated to the configuration tab of a RHQ Agent when the agent was not running. The sever log does not display any exception. It displays the configuration details and the server log displays below: 2011-06-16 14:15:59,977 WARN [org.rhq.enterprise.server.configuration.ConfigurationManagerBean] Agent is unreachable [Agent[id=10001,name=suniltest,address=10.65.201.124,port=16163,remote-endpoint=socket://10.65.201.124:16163/?rhq.communications.connector.rhqtype=agent&numAcceptThreads=1&maxPoolSize=303&clientMaxPoolSize=304&socketTimeout=60000&enableTcpNoDelay=true&backlog=200,last-availability-report=1308213761716]] - cannot get live configuration for resource [Resource[id=10002, type=RHQ Agent, key=RHQ Agent, name=RHQ Agent, parent=suniltest, version=4.1.0-SNAPSHOT]] 2011-06-16 14:15:59,978 WARN [org.rhq.enterprise.server.configuration.ConfigurationManagerBean] Could not get live resource configuration for resource [Resource[id=10002, type=RHQ Agent, key=RHQ Agent, name=RHQ Agent, parent=suniltest, version=4.1.0-SNAPSHOT]]; will assume latest resource configuration update is the current resource configuration. Marking as verified. changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE |
Start a server with no agents running, go into inventory for a resource with config. See the red bar showing up and the server log showning Caused by: java.lang.NullPointerException at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.getLatestResourceConfigurationUpdate(ConfigurationManagerBean.java:419) at org.rhq.enterprise.server.configuration.ConfigurationManagerBean.getLatestResourceConfigurationUpdate(ConfigurationManagerBean.java:431) This comes from the fact that we } catch (NoResultException nre) { // The Resource hasn't been successfully configured yet - return null. current = null; } earlier in the method, but all the if() that may return from the method, are skipped.