[ grinder-Bugs-3484390 ] NPE in ConnectionHandlerImplementation

SourceForge.net <[email protected]> Sat, 04 Feb 2012 09:13:11 -0800
Newsgroups gmane.comp.java.grinder.devel
Message-ID <[email protected]>
Bugs item #3484390, was opened at 2012-02-04 08:58
Message generated for change (Comment added) made by philipa
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3484390&group_id=18598

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: TCPProxy
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Philip Aston (philipa)
Assigned to: Philip Aston (philipa)
Summary: NPE in ConnectionHandlerImplementation

Initial Comment:
Two users (Ouray Viney and Zack) independently report the following stack when recording over HTTPS:

1/17/12 9:08:43 AM (tcpproxy): Failed to determine proxy destination.
Client opened connection but sent no bytes.
1/17/12 9:08:43 AM (tcpproxy): UNEXPECTED - No current request
Exception in thread "Filter thread for site.test.com:443->127.0.0.1:2391" java.lang.NullPointerException
        at net.grinder.plugin.http.tcpproxyfilter.ConnectionHandlerImplementation$Request.expectingResponseBody(ConnectionHandlerImplementation.java:400)
        at net.grinder.plugin.http.tcpproxyfilter.ConnectionHandlerImplementation.handleResponse(ConnectionHandlerImplementation.java:277)
        at net.grinder.plugin.http.tcpproxyfilter.ConnectionCache.response(ConnectionCache.java:111)
        at net.grinder.plugin.http.tcpproxyfilter.HTTPResponseFilter.handle(HTTPResponseFilter.java:71)
        at net.grinder.tools.tcpproxy.CompositeFilter.handle(CompositeFilter.java:58)
        at net.grinder.tools.tcpproxy.AbstractTCPProxyEngine$OutputStreamFilterTee.handle(AbstractTCPProxyEngine.java:548)
        at net.grinder.tools.tcpproxy.AbstractTCPProxyEngine$FilteredStreamThread.interruptibleRun(AbstractTCPProxyEngine.java:417)
        at net.grinder.util.thread.InterruptibleRunnableAdapter.run(InterruptibleRunnableAdapter.java:59)
        at java.lang.Thread.run(Unknown Source)

I initially though this could be a connection time out. Zack says "Setting the connection timeout to higher values did not help. Actually the exception occurs immediately after requesting the HTTPS url in the browser, so I'm not sure the timeout setting is involved."

----------------------------------------------------------------------

>Comment By: Philip Aston (philipa)
Date: 2012-02-04 09:13

Message:
Waiting for Ouray or Zack to try the patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=3484390&group_id=18598

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2