Okay, thanks for the idea of splitting it up. Now I have: 

SSLSocket socket = (SSLSocket)MyConnectionHelper.getSocket(conn); 
SSLSession session = socket.getSession(); 
session.invalidate(); 

The exception seems to be coming from: 

SSLSession session = socket.getSession(); 

I guess I don't understand why every SSLSocket wouldn't have a session. 

Thanks everybody for your patience.


Jeremy Hicks
Novell, Inc., the leading provider of information solutions
http://www.novell.com


>>> Roland Weber <[EMAIL PROTECTED]> 07/17/06 11:15 AM >>>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to