As the stack trace says, you have another process that is already bound to the port on which you are trying to start the Qpid Broker. One reason for this may possibly be that you already have a qpid broker installed in your operating system (e.g. qpidd - the C++ broker).
You can change the port on which the broker is attempting to start up by modifying the broker config file (config.xml), e.g. changing the line that says <port>5672</port> To use a different port. Hope this helps, Rob On 6 November 2012 08:56, yangzifeng <[email protected]> wrote: > Hi > I just finished qpid installation according to "Installing & Using Qpid > (Java)" > My enviroment is: > OS:CentOS5.8 x86_64 > qpid: 0.18 > JAVA: 1.6 > But when qpid-server was executed, below error message has been shown, > Kindly help me out! thanks! > > [root@tsd203 bin]# ./qpid-server > System Properties set to -Damqj.logging.level=info > -DQPID_HOME=/root/qpid/qpid-broker-0.18 -DQPID_WORK=/root/qpid/work > QPID_OPTS set to -Damqj.read_write_pool_size=32 -DQPID_LOG_APPEND= > Using QPID_CLASSPATH > /root/qpid/qpid-broker-0.18/lib/qpid-all.jar:/root/qpid/qpid-broker-0.18/lib/opt/* > Info: QPID_JAVA_GC not set. Defaulting to JAVA_GC -XX:+UseConcMarkSweepGC > -XX:+HeapDumpOnOutOfMemoryError > Info: QPID_JAVA_MEM not set. Defaulting to JAVA_MEM -Xmx1024m > [Broker] BRK-1006 : Using configuration : > /root/qpid/qpid-broker-0.18/etc/config.xml > [Broker] BRK-1007 : Using logging configuration : > /root/qpid/qpid-broker-0.18/etc/log4j.xml > [Broker] MNG-1001 : Startup > [Broker] MNG-1002 : Starting : RMI Registry : Listening on port 8999 > [Broker] MNG-1002 : Starting : JMX RMIConnectorServer : Listening on port > 9099 > [Broker] MNG-1004 : Ready > [Broker] BRK-1001 : Startup : Version: 0.18 Build: 1373004 > [Broker] BRK-1010 : Platform : JVM : Sun Microsystems Inc. version: > 1.6.0_37-b06 OS : Linux version: 2.6.18-194.17.1.el5_lustre.1.8.6 arch: > amd64 > [Broker] BRK-1011 : Maximum Memory : 1,060,372,480 bytes > Exception during startup: org.apache.qpid.transport.TransportException: > Unable to start server socket > org.apache.qpid.transport.TransportException: Unable to start server socket > at > org.apache.qpid.transport.network.io.IoNetworkTransport.accept(IoNetworkTransport.java:139) > at org.apache.qpid.server.Broker.startupImpl(Broker.java:251) > at org.apache.qpid.server.Broker.startup(Broker.java:90) > at org.apache.qpid.server.Main.startBroker(Main.java:387) > at org.apache.qpid.server.Main.execute(Main.java:312) > at org.apache.qpid.server.Main.<init>(Main.java:188) > at org.apache.qpid.server.Main.main(Main.java:179) > Caused by: java.net.BindException: Address already in use > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) > at java.net.ServerSocket.bind(ServerSocket.java:328) > at java.net.ServerSocket.bind(ServerSocket.java:286) > at > org.apache.qpid.transport.network.io.IoNetworkTransport$AcceptingThread.<init>(IoNetworkTransport.java:178) > at > org.apache.qpid.transport.network.io.IoNetworkTransport$AcceptingThread.<init>(IoNetworkTransport.java:145) > at > org.apache.qpid.transport.network.io.IoNetworkTransport.accept(IoNetworkTransport.java:133) > ... 6 more > > 2012-11-06 > > > > yangzifeng > > --------------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any > accompanying attachment(s) > is intended only for the use of the intended recipient and may be > confidential and/or privileged of > Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader > of this communication is > not the intended recipient, unauthorized use, forwarding, printing, > storing, disclosure or copying > is strictly prohibited, and may be unlawful.If you have received this > communication in error,please > immediately notify the sender by return e-mail, and delete the original > message and all copies from > your system. Thank you. > > --------------------------------------------------------------------------------------------------- >
