Hi Roland/Oleg, Here are the wire Log
This is server configuration Server: Apache/1.3.29 (Debian GNU/Linux) mod_ssl/2.8.14 OpenSSL/0.9.7b mod_perl/1.29[\r][\n]" Thanks Raj 2004/04/20 02:31:42:682 CDT [DEBUG] HttpClient - -Java version: 1.4.1_02 2004/04/20 02:31:42:683 CDT [DEBUG] HttpClient - -Java vendor: Sun Microsystems Inc. 2004/04/20 02:31:42:683 CDT [DEBUG] HttpClient - -Java class path: .:/tank/rbhalla/test/commons-logging.jar:/tank/rbhalla/test/commons-httpclie nt-2.0-******(i removed rest...) 2004/04/20 02:31:42:684 CDT [DEBUG] HttpClient - -Operating system name: Linux 2004/04/20 02:31:42:684 CDT [DEBUG] HttpClient - -Operating system architecture: i386 2004/04/20 02:31:42:684 CDT [DEBUG] HttpClient - -Operating system version: 2.4.20-24.7smp 2004/04/20 02:31:42:872 CDT [DEBUG] HttpClient - -SUN 1.2: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores) 2004/04/20 02:31:42:872 CDT [DEBUG] HttpClient - -SunJSSE 1.41: Sun JSSE provider(implements RSA Signatures, PKCS12, SunX509 key/trust factories, SSLv3, TLSv1) 2004/04/20 02:31:42:872 CDT [DEBUG] HttpClient - -SunRsaSign 1.0: SUN's provider for RSA signatures 2004/04/20 02:31:42:872 CDT [DEBUG] HttpClient - -SunJCE 1.2: SunJCE Provider (implements DES, Triple DES, Blowfish, PBE, Diffie-Hellman, HMAC-MD5, HMAC-SHA1) 2004/04/20 02:31:42:873 CDT [DEBUG] HttpClient - -SunJGSS 1.0: Sun (Kerberos v5) 2004/04/20 02:31:42:966 CDT [DEBUG] HttpConnection - -Creating connection for 10.248.193.151 using protocol https:443 2004/04/20 02:31:42:966 CDT [DEBUG] HttpConnection - -HttpConnection.setSoTimeout(0) 2004/04/20 02:31:43:302 CDT [DEBUG] HttpMethodBase - -Execute loop try 1 2004/04/20 02:31:43:307 CDT [DEBUG] wire - ->> "GET /services/tvly/mmh.cgi/ HTTP/1.1[\r][\n]" 2004/04/20 02:31:43:310 CDT [DEBUG] HttpMethodBase - -Adding Host request header 2004/04/20 02:31:43:322 CDT [DEBUG] wire - ->> "User-Agent: Jakarta Commons-HttpClient/2.0beta2[\r][\n]" 2004/04/20 02:31:43:326 CDT [DEBUG] wire - ->> "Host: 10.248.193.151[\r][\n]" javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275) at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpC onnection.java:1347) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo nnection.java:782) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav a:2216) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j ava:2571) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:104 7) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500) at com.travelocity.communications.travel.hotel.resfeber.ConTest.main(ConTest.ja va:43) Exception in thread "main" java.lang.NullPointerException at com.travelocity.communications.travel.hotel.resfeber.ConTest.main(ConTest.ja va:55) -----Original Message----- From: Roland Weber [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 5:39 PM To: Commons HttpClient Project Subject: RE: HttpClient for Https gives Unrecognized SSL message.. Hello Raj, I take it that you are connecting to the following URLs: http://10.248.193.151:80/services/tvly/mmh.cgi/ https://10.248.193.151:443/services/tvly/mmh.cgi/ which rules out my suspicion that you might be connected to port 80 via SSL. Could you please try to generate a wire log? http://jakarta.apache.org/commons/httpclient/logging.html The Java trace you sent does not give us the information about the HttpClient that we need. cheers, Roland "Raj, Bhalla" <[EMAIL PROTECTED]> 19.04.2004 12:50 Please respond to "Commons HttpClient Project" To: Commons HttpClient Project <[EMAIL PROTECTED]> cc: Subject: RE: HttpClient for Https gives Unrecognized SSL message.. Hi Roland, Thanks for response . What i meant was when i use "http" it work fine but when i use https it gives error. Server is properly configured for https reuest because when i send from browser https request i get proper response here is the sample code.******************************** HttpClient client = new HttpClient( ); HttpMethod httpMethod = SimpleHttpConnectionManagerUtil.createHttpMethod( httpRequest ); statusCode = client.executeMethod( httpMethod ); ***(This is are custom classes for Httprequest.. this is passes above in createHttpMethod) HttpRequest httpRequest = new HttpRequest( ); String url_i="https://10.248.193.151:443/services/tvly/mmh.cgi/"; httpRequest.setUrl(url_i); httpRequest.setMethod(HttpRequestMethod.GET); HttpRequestParameter[ ] requestParameters = { new HttpRequestParameter( "method", _method ), new HttpRequestParameter("xml",xmlRequest) }; ********************************************************* -----Original Message----- From: Roland Weber [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 4:11 PM To: Commons HttpClient Project Subject: Re: HttpClient for Https gives Unrecognized SSL message.. Hello Raj, could you post a code example? I am a bit confused about the "https for the same link" part. The protocol is usually part of the link. If you managed to convice HttpClient to use SSL, while the server still believes it is plain HTTP, that would explain the error message. cheers, Roland "Raj, Bhalla" <[EMAIL PROTECTED]> 19.04.2004 11:41 Please respond to "Commons HttpClient Project" To: [EMAIL PROTECTED] cc: Subject: HttpClient for Https gives Unrecognized SSL message.. Hi , Please Help. I am using HttpClient and i am able to successfully send http request and receive response. But when i try to send "https" request for the same link i get the following error(I am able to successfully send https request and response through the browser. ). javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.b(DashoA6275) at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpC onnection.java:1347) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:69) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:127) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpCo nnection.java:782) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.jav a:2173) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.j ava:2528) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:106 5) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500) at com.travelocity.component.net.http.SimpleHttpConnectionManager.execute(Simpl eHttpConnectionManager.java:68) I have tried the steps mentioned in SSL guide: <http://jakarta.apache.org/commons/httpclient/sslguide.html> with no luck.Can this happen if the certificate is not trusted . My jdk version is 1.4 and Please suggest steps to debug and bring it running. Any help would be highly appreciated. Thanks Raj --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]