cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Summary

Agent 5.2 will not start - Error: Failed the start ActiveMQ server java.lang.NullPointerException at com.flexnet.agent.Agent.start(Unknown Source)

Symptoms

Agent 5.2 will not start and you see the following error in the agent logs.

2013-21-05 11:57:17,899 Starting message queue
2013-21-05 11:57:17,899 Starting broker
2013-21-05 11:57:17,899 broker: null
2013-21-05 11:57:17,899 Failed the start ActiveMQ server
java.lang.NullPointerException
at com.flexnet.agent.Agent.start(Unknown Source)
at com.flexnet.agent.Agent.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
2013-21-05 11:58:11,556 Starting message queue
2013-21-05 11:58:11,556 Starting broker
2013-21-05 11:58:11,556 broker: null
2013-21-05 11:58:11,556 Failed the start ActiveMQ server
java.lang.NullPointerException
at com.flexnet.agent.Agent.start(Unknown Source)
at com.flexnet.agent.Agent.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
2013-21-05 11:59:57,028 Starting message queue
2013-21-05 11:59:57,028 Starting broker
2013-21-05 11:59:57,028 broker: null
2013-21-05 11:59:57,028 Failed the start ActiveMQ server
java.lang.NullPointerException
at com.flexnet.agent.Agent.start(Unknown Source)
at com.flexnet.agent.Agent.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
2013-21-05 12:00:21,388 Starting message queue
2013-21-05 12:00:21,388 Starting broker
2013-21-05 12:00:21,388 broker: null
2013-21-05 12:00:21,388 Failed the start ActiveMQ server
java.lang.NullPointerException
at com.flexnet.agent.Agent.start(Unknown Source)
at com.flexnet.agent.Agent.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)


Cause

You may get this error if the Manager Broker information is entered incorrectly when setting up the agent. Often user's enter the IP address for the Manager Admin instead of the Agent during the installation.

Resolution

To resolve the issue please do the following.
1. Stop the agent service
2. Edit the config.properties file. For example: C:\Program Files (x86)\FNMEA Agent\conf\config.properties
3. Change the line match the following, where "agent_hostname" is the hostname of your agent.
(A common mistake is to use the Admin hostname)

broker.hostname=agent_hostname
broker.port=61616


Was this article helpful? Yes No
No ratings
Version history
Last update:
‎May 21, 2013 07:57 PM
Updated by: