1 Reply Latest reply on Dec 3, 2009 4:56 AM by Thomas Chang

    "java.net.BindException: Address already in use" by registra

    Thomas Chang Apprentice

      As I try to resgistrate an Jon agent (under ../Agent/bin/rhq-agent.sh -l), I got error/exception as follow:

      The setup has been completed for the preferences at node [/rhq-agent/default].
      Failed to start the agent
      java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
      at java.net.ServerSocket.bind(ServerSocket.java:319)
      at java.net.ServerSocket.(ServerSocket.java:185)
      at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:170)
      at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
      at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
      at org.jboss.remoting.transport.Connector.start(Connector.java:324)
      at org.rhq.enterprise.communications.ServiceContainer.setupServerConnector(ServiceContainer.java:1226)
      at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:550)
      at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:468)
      at org.rhq.enterprise.agent.AgentMain.startCommServices(AgentMain.java:2110)
      at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:624)
      at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:406)
      Agent will be restarted soon to see if the failure condition cleared up