[ https://issues.apache.org/activemq/browse/AMQ-218?page=all ]
     
Hiram Chirino resolved AMQ-218:
-------------------------------

    Resolution: Won't Fix

remote was not meant to be used in conjunction with http.

> Remote Protocol does not work via HTTP
> --------------------------------------
>
>          Key: AMQ-218
>          URL: https://issues.apache.org/activemq/browse/AMQ-218
>      Project: ActiveMQ
>         Type: Improvement

>   Components: Transport
>     Versions: 2.1
>     Reporter: Hans Dockter
>  Attachments: testcase.zip
>
>
> I try to connect a client to a broker via the remote protocoll. Everything 
> works fine if I use 
> tcp://localhost:8081 
> as the network connector URI for the broker and
> remote://tcp://localhost:8081
> to create the ActiveMQConnectionFactory for the client.
> If I use
> http://localhost:8081 and remote://http://localhost:8081
> messages are not send and I get the following output (I've attached the 
> testcase):
> RemoteBroker:
> 8251 [SocketListener0-2] WARN  
> org.codehaus.activemq.transport.http.HttpTunnelServlet  - No clientID header 
> so ignoring request
> 8266 [SocketListener0-2] WARN  /  - /: 
> java.lang.NullPointerException
>       at 
> org.codehaus.activemq.transport.http.HttpTunnelServlet.doPost(HttpTunnelServlet.java:114)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>       at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
>       at 
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:665)
>       at 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:569)
>       at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>       at org.mortbay.http.HttpContext.handle(HttpContext.java:1434)
>       at org.mortbay.http.HttpServer.service(HttpServer.java:896)
>       at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
>       at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
>       at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
>       at 
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
>       at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:366)
>       at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
> 31784 [HTTP Reader http://localhost:8081] DEBUG 
> org.codehaus.activemq.transport.http.HttpTransportChannel  - GET timed out
> TestClient:
> 1641 [Thread-1] ERROR org.codehaus.activemq.transport.NetworkChannel  - 
> Failed to start NetworkChannel: http://localhost:8081
> javax.jms.JMSException: Failed to post packet: ACTIVEMQ_BROKER_INFO: id = 0 
> BrokerInfo{ brokerName = 'ID:devwagwoc38y723-2390-1111052647973-2:0' , 
> clusterName = 'ID:devwagwoc38y723-2390-1111052647973-1:0' , startTime = 0, 
> properties = null } as response was: 500
>       at 
> org.codehaus.activemq.transport.http.HttpTransportChannel.asyncSend(HttpTransportChannel.java:62)
>       at 
> org.codehaus.activemq.transport.RemoteNetworkChannel.sendBrokerInfo(RemoteNetworkChannel.java:121)
>       at 
> org.codehaus.activemq.transport.RemoteNetworkChannel.initialize(RemoteNetworkChannel.java:108)
>       at 
> org.codehaus.activemq.transport.NetworkChannel$1.run(NetworkChannel.java:167)
>       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
> Source)
>       at java.lang.Thread.run(Thread.java:534)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to