A AgentAlreadyRunningException is always thrown if a operation should be performed on an Agent which can only be made, while the Agent is not running.
AgentAlreadyRunningException
Agent
176177178179180181182183184185186
throw new AgentInfoException(AgentInfoException.AGENT_NOT_LOADED); if((agent.getAgentState() != AgentInfo.STATE_PREPARED) && (agent.getAgentState() != AgentInfo.STATE_STOPPED)) { throw new AgentAlreadyRunningException(); } BasicAgentInfo agentInfo = (BasicAgentInfo)agent; agentInfo.getAgentThread().start();