[ http://issues.apache.org/jira/browse/HTTPCLIENT-590?page=all ]

Ortwin Glück closed HTTPCLIENT-590.
-----------------------------------

    Resolution: Invalid

> NullPointerException in HttpConnection.isStale
> ----------------------------------------------
>
>                 Key: HTTPCLIENT-590
>                 URL: http://issues.apache.org/jira/browse/HTTPCLIENT-590
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1
>         Environment: Solaris 10, Sun JDK 1.4
>            Reporter: Scott Battaglia
>
> We're getting the following exception when running HttpClient under 
> relatively moderate load in a multithreaded environment (using the 
> multithreaded manager). I looked at the line of code and it means either 
> params is null or the socket is null.  It doesn't look like params can either 
> be null so I'm guessing its the socket (though I would assume the stale check 
> would make sure the connection was opened at some point).
> Here's the stack trace:
> 2006-07-21 15:31:31,427 ERROR 
> [org.jasig.cas.ticket.proxy.support.Cas20ProxyHandler] - 
> <java.lang.NullPointerException>
> java.lang.NullPointerException
>         at 
> org.apache.commons.httpclient.HttpConnection.isStale(HttpConnection.java:514)
>         at 
> org.apache.commons.httpclient.HttpConnection.closeIfStale(HttpConnection.java:430)
>         at 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:381)
>         at 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>         at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>         at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
>         at 
> org.jasig.cas.ticket.proxy.support.Cas20ProxyHandler.handle(Cas20ProxyHandler.java:81)
>         at 
> org.jasig.cas.web.ServiceValidateController.handleRequestInternal(ServiceValidateController.java:182)
>         at 
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
>         at 
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
>         at 
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
>         at 
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:728)
>         at 
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
>         at 
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:350)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at 
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
>         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
>         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>         at 
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
>         at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>         at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>         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: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

Reply via email to