Support Migration Notice: To update migrated JIRA cases click here to open a new case use www.vmware.com/go/sr | vFabric Hyperic 5.7.0 is Now Available

Hyperic HQ

Agent will not start without agent.logFile property

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 4.6.5
  • Component/s: None
  • Case Links:
    none
  • Regression:
    No
  • Tags:

Description

If agent.properties doesn't contain agent.logDir (rare would indicate alterations to agent.properites) the following stack trace happens and agent startup aborts.

INFO | jvm 1 | 2011/09/28 08:03:44 | WrapperStartStopApp: Encountered an error running start main: java.lang.NullPointerException
INFO | jvm 1 | 2011/09/28 08:03:44 | java.lang.NullPointerException
INFO | jvm 1 | 2011/09/28 08:03:44 | at java.io.File.<init>(Unknown Source)
INFO | jvm 1 | 2011/09/28 08:03:44 | at org.hyperic.hq.bizapp.agent.client.AgentClient.checkCanWriteToLog(AgentClient.java:1334)
INFO | jvm 1 | 2011/09/28 08:03:44 | at org.hyperic.hq.bizapp.agent.client.AgentClient.initializeAgent(AgentClient.java:1146)
INFO | jvm 1 | 2011/09/28 08:03:44 | at org.hyperic.hq.bizapp.agent.client.AgentClient.main(AgentClient.java:1266)
INFO | jvm 1 | 2011/09/28 08:03:44 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2011/09/28 08:03:44 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2011/09/28 08:03:44 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2011/09/28 08:03:44 | at java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2011/09/28 08:03:44 | at org.tanukisoftware.wrapper.WrapperStartStopApp.run(WrapperStartStopApp.java:238)
INFO | jvm 1 | 2011/09/28 08:03:44 | at java.lang.Thread.run(Unknown Source)
STATUS | wrapper | 2011/09/28 08:03:46 | on_exit trigger matched. Restarting the JVM. (Exit code: 1)
STATUS | wrapper | 2011/09/28 08:03:51 | Reloading Wrapper configuration..

There are a number of places which reads this value. Agent should abort if it is not set

Activity

Hide
Wes Schlichter added a comment -

Agent will now abort if agent.logDir isn't set with a friendly error.

Show
Wes Schlichter added a comment - Agent will now abort if agent.logDir isn't set with a friendly error.
Hide
yael twina (c) added a comment -

in version 4.6.5.BUILD-SNAPSHOT-2012-01-08 it's fine.
the message is: agent.logFile not set, cannot start HQ agent.

Show
yael twina (c) added a comment - in version 4.6.5.BUILD-SNAPSHOT-2012-01-08 it's fine. the message is: agent.logFile not set, cannot start HQ agent.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:
    Last comment:
    2 years, 15 weeks ago