"java.net.BindException: Address already in use" error when creating a child container with jboss-fuse-medium profile
Issue
I am using JBoss Fuse 6.1. I am getting following error when I try to create a local child container with "jboss-fuse-medium" profile:
java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException: Address already in use
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2069)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2531)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2448)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:693)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:659)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:595)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.org$fusesource$mq$fabric$ActiveMQServiceFactory$
ClusteredConfiguration$$doStart(ActiveMQServiceFactory.scala:420)[224:org.jboss.amq.mq-fabric:6.1.0.redhat-378]
at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$$anon$4.run(ActiveMQServiceFactory.scala:368)[224:org.jboss.amq.mq-fabric:6.1.0.redhat-378]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_25]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_25]
at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:61616 due to: java.net.BindException: Address already in use
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:135)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:56)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:40)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:318)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:144)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:110)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2064)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
... 13 more
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)[:1.7.0_25]
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)[:1.7.0_25]
at java.net.ServerSocket.bind(ServerSocket.java:376)[:1.7.0_25]
at java.net.ServerSocket.<init>(ServerSocket.java:237)[:1.7.0_25]
at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:231)[:1.7.0_25]
at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:132)[118:org.apache.activemq.activemq-osgi:5.9.0.redhat-610378]
... 19 more
Any reason why I am getting this "Address already in use" error?
Environment
- JBoss Fuse 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
