activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bo.xie" <mrbo...@gmail.com>
Subject http connection got "Could not post command" error
Date Fri, 01 May 2009 05:00:45 GMT

Hi,

  I am new to activeMQ. I used 5.1.0 on linux to try out http connection
using the producer sample code.
  I added the following to the activemq.xml, the broker startup fine.
      <transportConnector name="http" uri="http://localhost:61522"/>

  When I tried to connect to the broker using "http://localhost:61522" from
client program. Got the following error. Any idea what I may have done
wrong? The  client in test is on the same machine as the broker.

  Thanks for the help.

-Bo
javax.jms.JMSException: Could not post command: ConnectionInfo {commandId =
1, responseRequired = true, connectionId =
ID:boxie-lnx-57587-1241151559354-0:0, clientId =
ID:boxie-lnx-57587-1241151559354-2:0, userName = null, password = null,
brokerPath = null, brokerMasterConnector = false, manageable = true,
clientMaster = true} due to: java.io.IOException: Failed to post command:
ConnectionInfo {commandId = 1, responseRequired = true, connectionId =
ID:boxie-lnx-57587-1241151559354-0:0, clientId =
ID:boxie-lnx-57587-1241151559354-2:0, userName = null, password = null,
brokerPath = null, brokerMasterConnector = false, manageable = true,
clientMaster = true} as response was: 500
     [java] javax.jms.JMSException: Could not post command: ConnectionInfo
{commandId = 1, responseRequired = true, connectionId =
ID:boxie-lnx-57587-1241151559354-0:0, clientId =
ID:boxie-lnx-57587-1241151559354-2:0, userName = null, password = null,
brokerPath = null, brokerMasterConnector = false, manageable = true,
clientMaster = true} due to: java.io.IOException: Failed to post command:
ConnectionInfo {commandId = 1, responseRequired = true, connectionId =
ID:boxie-lnx-57587-1241151559354-0:0, clientId =
ID:boxie-lnx-57587-1241151559354-2:0, userName = null, password = null,
brokerPath = null, brokerMasterConnector = false, manageable = true,
clientMaster = true} as response was: 500
     [java]     at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62)
     [java]     at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1206)
     [java]     at
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1289)
     [java]     at
org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:456)
     [java]     at ProducerTool.run(Unknown Source)
     [java]     at ProducerTool.main(Unknown Source)
     [java] Caused by: java.io.IOException: Could not post command:
ConnectionInfo {commandId = 1, responseRequired = true, connectionId =
ID:boxie-lnx-57587-1241151559354-0:0, clientId =
ID:boxie-lnx-57587-1241151559354-2:0, userName = null, password = null,
brokerPath = null, brokerMasterConnector = false, manageable = true,
clientMaster = true} due to: java.io.IOException: Failed to post command:
ConnectionInfo {commandId = 1, responseRequired = true, connectionId =
ID:boxie-lnx-57587-1241151559354-0:0, clientId =
ID:boxie-lnx-57587-1241151559354-2:0, userName = null, password = null,
brokerPath = null, brokerMasterConnector = false, manageable = true,
clientMaster = true} as response was: 500
     [java]     at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33)
     [java]     at
org.apache.activemq.transport.http.HttpClientTransport.oneway(HttpClientTransport.java:89)
     [java]     at
org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
     [java]     at
org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:74)
     [java]     at
org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:79)
     [java]     at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1195)

-- 
View this message in context: http://www.nabble.com/http-connection-got-%22Could-not-post-command%22-error-tp23328499p23328499.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message