Now the wire trace wroks fine.. thanks Mike.

here is my log:


DEBUG 07/11, 10:37:46
com.llbean.carrier.CarrierHTTPClient.getResponse [139]
-  HOST CONN In Loop 10000
DEBUG 07/11, 10:37:47
org.apache.commons.httpclient.Wire.wire [119] - >>
"CONNECT www.ups.com:443 HTTP/1.1"
DEBUG 07/11, 10:37:47
org.apache.commons.httpclient.Wire.wire [105] - >>
"Proxy-Authorization: Basic
xyzbJhY2whhcmcmFtYhb5y[\r][\n]"
DEBUG 07/11, 10:37:47
org.apache.commons.httpclient.Wire.wire [105] - >>
"User-Agent: Jakarta
Commons-HttpClient/2.0beta2[\r][\n]"
DEBUG 07/11, 10:37:47
org.apache.commons.httpclient.Wire.wire [105] - >>
"Host: www.ups.com[\r][\n]"
DEBUG 07/11, 10:37:47
org.apache.commons.httpclient.Wire.wire [105] - >>
"Proxy-Connection: Keep-Alive[\r][\n]"
DEBUG 07/11, 10:37:47
org.apache.commons.httpclient.Wire.wire [105] - >>
"[\r][\n]"
DEBUG 07/11, 10:37:48
org.apache.commons.httpclient.Wire.wire [105] - <<
"HTTP/1.0 200 Connection established[\r][\n]"
DEBUG 07/11, 10:37:48
org.apache.commons.httpclient.Wire.wire [105] - <<
"Proxy-agent: Netscape-Proxy/3.52[\r][\n]"
DEBUG 07/11, 10:37:51 com.mypackage.myclass.mymethod
[159] - IOException
java.net.SocketException: Socket closed
        at java.net.PlainSocketImpl.socketGetOption(Native
Method)
        at
java.net.PlainSocketImpl.getOption(PlainSocketImpl.java:214)
        at java.net.Socket.getSendBufferSize(Socket.java:548)
        at
org.apache.commons.httpclient.HttpConnection.tunnelCreated(HttpConnection.java:756)
        at
org.apache.commons.httpclient.ConnectMethod.execute(ConnectMethod.java:204)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:638)
        at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:500)
        at com.mypackage.myclass.mymethod(myclass.java:140)

connection gets established, preemptive auth goes thru
successfully.. then there is an exception.. 

any lights?

-
NRR



--- Michael Becke <[EMAIL PROTECTED]> wrote:
> Yes, this will not work if you are using Log4j. 
> Commons logging uses 
> the Log4j configuration and ignores the System
> properties when Log4j is 
> present.  You will need to configure logging with
> Log4j.  Usually this 
> is done via the log4j.properties file.  I would
> suggest adding a line like:
> 
> log4j.logger.httpclient.wire=DEBUG,
> SOME_APPENDER_HERE
> 
> Where SOME_APPENDER_HERE is the name of an appender
> configured in Log4j.
> 
> Mike
> 
> Ramanan nr wrote:
> > Hi Mike,
> > 
> > I am using Log4j.
> > Here is what I do in my code to set the wire log
> to
> > debug mode :
> > 
> > 
> >     // SET SYS PROP FOR HTTPCLIENT DEBUG
> >     
> System.setProperty("org.apache.commons.logging.Log",
> > "org.apache.commons.logging.impl.SimpleLog"); 
> > 
> >     
> >
>
System.setProperty("org.apache.commons.logging.simplelog.showdatetime",
> > "true"); 
> > 
> >     
> >
>
System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire",
> > "debug"); 
> > 
> >     
> >
>
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient",
> > "debug"); 
> > 
> > Is there any other config that I am missing?
> > 
> > -
> > NRR
> > 
> > --- Michael Becke <[EMAIL PROTECTED]> wrote:
> > 
> >>On Thursday, July 10, 2003, at 04:01 PM, Ramanan
> nr
> >>wrote:
> >>
> >>>btw, though I set the wire log to the debug mode,
> >>
> >>I
> >>
> >>>don't see any info. is there any other setting
> >>
> >>other
> >>
> >>>than the
> >>>
> >>
> >
>
org.apache.commons.logging.simplelog.log.httpclient.wire
> > 
> >>>=debug
> >>
> >>My guess is that you are using Log4j (have it on
> >>your classpath).  You 
> >>will need to configure Log4j to output the wire
> log
> >>by setting the 
> >>logger (httpclient.wire) to DEBUG.  Please post
> the
> >>wire log one you 
> >>have it and we should have a better idea what's
> >>going wrong.
> >>
> >>Mike
> >>
> >>
> >>
> > 
> >
>
---------------------------------------------------------------------
> > 
> >>To unsubscribe, e-mail:
> >>
> > 
> >
>
[EMAIL PROTECTED]
> > 
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> > 
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > 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]
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to