activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manua <agarwal.m...@gmail.com>
Subject Re: Java client doesnt work with https
Date Thu, 22 Dec 2011 14:59:03 GMT
Thanks Tim,

I enabled the TRACE level logging. I didnt see any thing at the broker end. 
The log at the client end says,


455 [main] TRACE org.apache.commons.httpclient.HttpClient  - enter
HttpClient.executeMethod(HttpMethod)
455 [main] TRACE org.apache.commons.httpclient.HttpClient  - enter
HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
475 [main] TRACE org.apache.commons.httpclient.HttpMethodDirector  - Attempt
number 1 to process request
475 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.open()
475 [main] DEBUG org.apache.commons.httpclient.HttpConnection  - Open
connection to localhost:8443
899 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.execute(HttpState, HttpConnection)
899 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.writeRequest(HttpState, HttpConnection)
899 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
899 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.generateRequestLine(HttpConnection, String, String, String,
String)
901 [main] DEBUG httpclient.wire.header  - >> "HEAD / HTTP/1.1[\r][\n]"
901 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.print(String)
901 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[])
901 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[], int, int)
902 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
902 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
902 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
902 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
902 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase  - Adding Host
request header
908 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
916 [main] TRACE org.apache.commons.httpclient.HttpState  - enter
HttpState.getCookies()
917 [main] TRACE org.apache.commons.httpclient.cookie.CookieSpec  - enter
CookieSpecBase.match(String, int, String, boolean, Cookie[])
917 [main] TRACE org.apache.commons.httpclient.HttpMethodBase  - enter
HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
917 [main] DEBUG httpclient.wire.header  - >> "clientID:
ID:manu-36794-1324565717372-0:1[\r][\n]"
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.print(String)
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[])
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[], int, int)
917 [main] DEBUG httpclient.wire.header  - >> "User-Agent: Jakarta
Commons-HttpClient/3.0[\r][\n]"
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.print(String)
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[])
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[], int, int)
917 [main] DEBUG httpclient.wire.header  - >> "Host: localhost:8443[\r][\n]"
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.print(String)
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[])
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[], int, int)
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.writeLine()
917 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[])
918 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.write(byte[], int, int)
918 [main] DEBUG httpclient.wire.header  - >> "[\r][\n]"
918 [main] TRACE org.apache.commons.httpclient.HttpConnection  - enter
HttpConnection.flushRequestOutputStream()

And after this point, the client just hangs.

It looks to me that client is not able to send the request to the broker.

Do I have to set something else at the client end or use a different API.

Thanks
Manu


--
View this message in context: http://activemq.2283324.n4.nabble.com/Java-client-doesnt-work-with-https-tp4222791p4225539.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message