You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Guy Hoshea (Created) (JIRA)" <ji...@apache.org> on 2012/01/16 13:04:40 UTC

[jira] [Created] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-3663
                 URL: https://issues.apache.org/jira/browse/AMQ-3663
             Project: ActiveMQ
          Issue Type: Bug
          Components: Transport
    Affects Versions: 5.2.0
            Reporter: Guy Hoshea
            Priority: Critical


When starting ActiveMQ usinf wrapper we get this error repeatedly:

INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Posted by "Guy Hoshea (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guy Hoshea updated AMQ-3663:
----------------------------

    Attachment: wrapper.log
                wrapper.conf
    
> Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3663
>                 URL: https://issues.apache.org/jira/browse/AMQ-3663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Guy Hoshea
>            Priority: Critical
>         Attachments: wrapper.conf, wrapper.log
>
>
> When starting ActiveMQ usinf wrapper we get this error repeatedly:
> INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
> INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Posted by "Guy Hoshea (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187518#comment-13187518 ] 

Guy Hoshea commented on AMQ-3663:
---------------------------------

Obviously port 20000 is occupied and therefore we see bindingexception. The question is what can occupy this port. The only process on this machine that can occupy port 20000 is ActiveMQ itself.

We configured in activemq.xml port 20000 to be the port that ActiveMq use:
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:20000"/>
        </transportConnectors>

You can see in attached log that activeMQ is running correctly and binding this port. On 2011/11/21 20:38:53 we have scripts that restart ActiveMQ.

I suspect that when restarting ActiveMQ by our scripts, ActiveMQ process which is stopped not releasing port 20000 fast enough so the new process of ActiveMQ fails to bind this port.


                
> Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3663
>                 URL: https://issues.apache.org/jira/browse/AMQ-3663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Guy Hoshea
>            Priority: Critical
>         Attachments: wrapper.conf, wrapper.log
>
>
> When starting ActiveMQ usinf wrapper we get this error repeatedly:
> INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
> INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Posted by "Guy Hoshea (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189077#comment-13189077 ] 

Guy Hoshea commented on AMQ-3663:
---------------------------------

Thanks 
We will try those solutions to amke sure that JVM fully stopped before we restart ActiveMQ

                
> Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3663
>                 URL: https://issues.apache.org/jira/browse/AMQ-3663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Guy Hoshea
>            Priority: Critical
>         Attachments: wrapper.conf, wrapper.log
>
>
> When starting ActiveMQ usinf wrapper we get this error repeatedly:
> INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
> INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Posted by "Timothy Bish (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188678#comment-13188678 ] 

Timothy Bish commented on AMQ-3663:
-----------------------------------

Is it possible for you to test the just the shutdown down via your script and determine how long it takes for the port to be released? Then you should be able to add a sleep either in your script prior to the restart or possibly adding a [jvm clean up timeout|http://wrapper.tanukisoftware.com/doc/english/prop-jvm-cleanup-timeout.html] or [startup delay|http://wrapper.tanukisoftware.com/doc/english/prop-startup-delay.html] in the wrapper. Additional configuration options for the wrapper can be found at this link: http://wrapper.tanukisoftware.com/doc/english/properties.html

                
> Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3663
>                 URL: https://issues.apache.org/jira/browse/AMQ-3663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Guy Hoshea
>            Priority: Critical
>         Attachments: wrapper.conf, wrapper.log
>
>
> When starting ActiveMQ usinf wrapper we get this error repeatedly:
> INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
> INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Posted by "Timothy Bish (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AMQ-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187295#comment-13187295 ] 

Timothy Bish commented on AMQ-3663:
-----------------------------------

The error indicates that the port that is configured for the AMQ JMX bind is already in use, you need to configure a different port or determine what is occupying this port.
                
> Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3663
>                 URL: https://issues.apache.org/jira/browse/AMQ-3663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Guy Hoshea
>            Priority: Critical
>         Attachments: wrapper.conf, wrapper.log
>
>
> When starting ActiveMQ usinf wrapper we get this error repeatedly:
> INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
> INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (AMQ-3663) Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket

Posted by "Timothy Bish (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3663.
-------------------------------

    Resolution: Not A Problem

Script not waiting long enough for the JVN to shut down.
                
> Error when starting active MQ :Transport Connector could not be registered in JMX: Failed to bind to server socket
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3663
>                 URL: https://issues.apache.org/jira/browse/AMQ-3663
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.2.0
>            Reporter: Guy Hoshea
>            Priority: Critical
>         Attachments: wrapper.conf, wrapper.log
>
>
> When starting ActiveMQ usinf wrapper we get this error repeatedly:
> INFO   | jvm 1    | 2011/11/21 20:39:00 | ERROR BrokerService                  - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | java.io.IOException: Transport Connector could not be registered in JMX: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1434)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:1893)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:1844)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:480)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.security.AccessController.doPrivileged(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:96)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:52)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:129)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:79)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.console.Main.main(Main.java:106)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.reflect.Method.invoke(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.lang.Thread.run(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.io.IOException: Failed to bind to server socket: tcp://0.0.0.0:20000 due to: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:141)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:293)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:135)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:98)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1428)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 42 more
> INFO   | jvm 1    | 2011/11/21 20:39:00 | Caused by: java.net.BindException: Address already in use: JVM_Bind
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.socketBind(Native Method)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.PlainSocketImpl.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.bind(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at java.net.ServerSocket.<init>(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown Source)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:136)
> INFO   | jvm 1    | 2011/11/21 20:39:00 | 	... 48 more
> INFO  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira