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.
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