Description: While starting a be-teagent, it fails to auto register with the TEA server and throws the exception, "Unable to register agent with name 'BE'".
Error details.
27 Jun 2016 17:59:00,701 EDT -0400 DEBUG main [com.tibco.tea.agent.be.BETEAAgentAutoResgistrationTask] - Unable to register agent with name 'BE'.
27 Jun 2016 17:59:00,702 EDT -0400 DEBUG main [com.tibco.cep.bemm.common.taskdefs.IdempotentRetryTask] - Unable to register agent with name 'BE'.
java.lang.IllegalArgumentException: Unable to register agent with name 'BE'.
at com.tibco.tea.agent.server.TeaAgentServer.autoRegisterAgent(TeaAgentServer.java:573)
at com.tibco.tea.agent.be.BETEAAgentAutoResgistrationTask.perform(BETEAAgentAutoResgistrationTask.java:91)
at com.tibco.cep.bemm.common.taskdefs.IdempotentRetryTask.perform(IdempotentRetryTask.java:36)
at com.tibco.tea.agent.be.BETeaAgentManager.startTeaServer(BETeaAgentManager.java:273)
at com.tibco.tea.agent.be.BETeaAgentManager.start(BETeaAgentManager.java:202)
at com.tibco.tea.agent.be.launcher.BETeaAgentLauncher.launch(BETeaAgentLauncher.java:76)
at com.tibco.tea.agent.be.launcher.BETeaAgentLauncher.main(BETeaAgentLauncher.java:60)
Caused by: com.tibco.tea.agent.internal.server.TeaAgentRegistrationException: Failed agent auto registration.
at com.tibco.tea.agent.internal.server.BaseTeaAgentServer.autoRegisterAgent(BaseTeaAgentServer.java:579)
at com.tibco.tea.agent.server.TeaAgentServer.autoRegisterAgent(TeaAgentServer.java:571)
... 6 more
Caused by: java.lang.IllegalStateException: Failed to (un)register agent with http status: '500' and reason: 'Failure registering agent with url 'http://ENV4-VM3:9777/beTeaAgent'.'.
at com.tibco.tea.agent.internal.server.BaseTeaAgentServer.handleError(BaseTeaAgentServer.java:597)
at com.tibco.tea.agent.internal.server.BaseTeaAgentServer.autoRegisterAgent(BaseTeaAgentServer.java:553)
... 7 more
Cause
====
This is caused by a misconfiguration in the system host file resulting in being unable to resolve the hostname.