hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <o.kalnichev...@dplanet.ch>
Subject Re: problem with post
Date Thu, 13 Mar 2003 21:48:29 GMT
Vikram

2.0 has not been released yet. You must be using one of the alphas. 

In order to be able to help you I need wire log too. I need to know what
gets sent across the wire.   

Anyways, I suggest that you upgrade to the most recent CVS snapshot.
There's been a few bug fixes since the latest Alpha2 release  

Oleg

On Thu, 2003-03-13 at 22:39, vikram.x.kondadasula@verizon.com wrote:
> Oleg,
> 
> Thanks for responding.
> 
> I am using 2.0 ver and I am not using any proxy.And here is the log
> 
> 
> 2003/03/13 16:31:26:125 EST [TRACE] GetMethod - -enter GetMethod(String)
> 2003/03/13 16:31:26:140 EST [TRACE] PostMethod - -enter
> PostMethod.getRequestBody(InputStream)
> 2003/03/13 16:31:26:140 EST [TRACE] PostMethod - -enter
> PostMethod.setRequestContentLength(int)
> 2003/03/13 16:31:26:140 EST [TRACE] HttpClient - -enter
> HttpClient.executeMethod(HttpMethod)
> 2003/03/13 16:31:26:187 EST [TRACE] HttpClient - -enter
> HttpClient.executeMethod(HostConfiguration,HttpMethod)
> 2003/03/13 16:31:26:203 EST [DEBUG] HttpConnection -
> -HttpConnectionManager.getConnection:  creating  connection for
> 128.209.62.4:9090 via null:-1 using protocol: http:80
> 2003/03/13 16:31:26:203 EST [DEBUG] HttpConnection -
> -HttpConnection.setSoTimeout(0)
> 2003/03/13 16:31:26:250 EST [TRACE] HttpConnection - -enter
> HttpConnection.open()
> 2003/03/13 16:31:26:296 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.execute(HttpState, HttpConnection)
> 2003/03/13 16:31:26:296 EST [TRACE] Authenticator - -enter
> Authenticator.authenticate(HttpMethod, HttpState)
> 2003/03/13 16:31:26:328 EST [TRACE] Authenticator - -enter
> Authenticator.authenticate(HttpMethod, HttpState, Header, String)
> 2003/03/13 16:31:26:328 EST [DEBUG] HttpMethod - -Execute loop try 1
> 2003/03/13 16:31:26:328 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.processRequest(HttpState, HttpConnection)
> 2003/03/13 16:31:26:375 EST [TRACE] HttpMethod - -Attempt number 1 to write
> request
> 2003/03/13 16:31:26:375 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.writeRequest(HttpState, HttpConnection)
> 2003/03/13 16:31:26:375 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
> 2003/03/13 16:31:26:375 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.generateRequestLine(HttpConnection, String, String, String,
> String)
> 2003/03/13 16:31:26:453 EST [TRACE] HttpConnection - -enter
> HttpConnection.print(String)
> 2003/03/13 16:31:26:453 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[])
> 2003/03/13 16:31:26:453 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[], int, int)
> 2003/03/13 16:31:26:453 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
> 2003/03/13 16:31:26:500 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
> 2003/03/13 16:31:26:500 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
> 2003/03/13 16:31:26:500 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
> 2003/03/13 16:31:26:562 EST [DEBUG] HttpMethod - -Adding Host request
> header
> 2003/03/13 16:31:26:562 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
> 2003/03/13 16:31:26:578 EST [TRACE] HttpState - -enter HttpState.getCookies
> ()
> 2003/03/13 16:31:26:578 EST [TRACE] CookieSpec - -enter
> CookieSpecBase.match(String, int, String, boolean, Cookie[])
> 2003/03/13 16:31:26:625 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
> 2003/03/13 16:31:26:625 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState,
> HttpConnection)
> 2003/03/13 16:31:26:625 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
> 2003/03/13 16:31:26:687 EST [TRACE] PostMethod - -enter
> PostMethod.getRequestContentLength()
> 2003/03/13 16:31:26:687 EST [TRACE] HttpConnection - -enter
> HttpConnection.print(String)
> 2003/03/13 16:31:26:687 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[])
> 2003/03/13 16:31:26:687 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[], int, int)
> 2003/03/13 16:31:26:750 EST [TRACE] HttpConnection - -enter
> HttpConnection.print(String)
> 2003/03/13 16:31:26:750 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[])
> 2003/03/13 16:31:26:750 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[], int, int)
> 2003/03/13 16:31:26:750 EST [TRACE] HttpConnection - -enter
> HttpConnection.print(String)
> 2003/03/13 16:31:26:812 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[])
> 2003/03/13 16:31:26:812 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[], int, int)
> 2003/03/13 16:31:26:812 EST [TRACE] HttpConnection - -enter
> HttpConnection.writeLine()
> 2003/03/13 16:31:26:828 EST [TRACE] PostMethod - -enter
> PostMethod.writeRequestBody(HttpState, HttpConnection)
> 2003/03/13 16:31:26:890 EST [TRACE] HttpConnection - -enter
> HttpConnection.getRequestOutputStream()
> 2003/03/13 16:31:26:890 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.readResponse(HttpState, HttpConnection)
> 2003/03/13 16:31:26:890 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.readStatusLine(HttpState, HttpConnection)
> 2003/03/13 16:31:26:890 EST [TRACE] HttpConnection - -enter
> HttpConnection.readLine()
> 2003/03/13 16:31:26:953 EST [WARN] HttpMethod - -Recoverable exception
> caught when reading response
> 2003/03/13 16:31:26:953 EST [DEBUG] HttpMethod - -Closing the connection.
> 2003/03/13 16:31:26:953 EST [TRACE] HttpConnection - -enter
> HttpConnection.close()
> 2003/03/13 16:31:26:953 EST [TRACE] HttpConnection - -enter
> HttpConnection.closeSockedAndStreams()
> org.apache.commons.httpclient.HttpRecoverableException:
> org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
> the status  line from the response: unable to find line starting with
> "HTTP/"
>       at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)
>       at
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)
>       at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)
>       at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
>       at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
>       at
> com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:38)
> Exception in thread "main"
> 
> 
> Thanks
> Vikram
> 
> 
> 
> 
> "Oleg Kalnichevski" <o.kalnichevski@dplanet.ch> on 03/13/2003 04:23:31 PM
> 
> Please respond to "Commons HttpClient Project"
>        <commons-httpclient-dev@jakarta.apache.org>
> 
> To:    "Commons HttpClient Project"
>        <commons-httpclient-dev@jakarta.apache.org>
> cc:
> Subject:    Re: problem with post
> 
> 
> Vikram,
> 
> What version of HttpClient are you using?
> Are you by any chance posing requests through a proxy?
> 
> We'll be able to help if we know a bit more. You'll need to produce wire
> log of HTTP session that causes that exception. Please refer to this
> document for details on logging in HttpClient
> 
> http://jakarta.apache.org/commons/httpclient/logging.html
> 
> Oleg
> 
> 
> On Thu, 2003-03-13 at 22:02, vikram.x.kondadasula@verizon.com wrote:
> > Hai,
> >
> > I am trying to execute a post using httpclient and this the message , I
> get
> >
> >  org.apache.commons.httpclient.HttpRecoverableException:
> > org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
> > the status  line from the response: unable to find line starting with
> > "HTTP/"
> >       at
> >
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)
> 
> >       at
> >
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)
> 
> >       at
> >
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)
> 
> >       at
> >
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
> >       at
> >
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
> >       at
> > com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:30)
> > Exception in thread "main"
> >
> > The response is empty.
> > I tried the same post by writnng my own socket program and it works fine.
> >
> > Couls anyone  pls shed light on this.
> >
> > Thanks
> > Vikram
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-httpclient-dev-help@jakarta.apache.org
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
> 


Mime
View raw message