hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: Force-close connections queston
Date Mon, 17 Jul 2006 17:15:08 GMT
Hi Jeremy,

> I get a NullPointerException on this line: 
> 
> ((SSLSocket)MyConnectionHelper.getSocket(conn)).getSession().invalidate();
> 
> Can anybody tell why? 

Either because getSocket(conn) returns null, or because
SSLSocket.getSession() returns null. How about splitting
this monster up into several lines to find out?

Also, how can you be sure that every SSLSocket has a
session? Connections might be released prematurely.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message