Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365223

Summary: Occasional NullPointerException in SslSelectChannelEndPoint.unwrap()
Product: [RT] Jetty Reporter: vgarnashevich
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: janb, jetty-inbox, vgarnashevich
Version: 7.5.4   
Target Milestone: 7.5.x   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description vgarnashevich CLA 2011-11-30 12:02:14 EST
Build Identifier: 7.5.4.v20111024

Sometimes I get the following NullPointerException exceptions:

21 Nov 2011 19:07:19,484 [qtp13041996-141] WARN  org.eclipse.jetty.io.nio  - handle failed
java.lang.NullPointerException
	at org.eclipse.jetty.io.nio.SslSelectChannelEndPoint.unwrap(SslSelectChannelEndPoint.java:525)
	at org.eclipse.jetty.io.nio.SslSelectChannelEndPoint.fill(SslSelectChannelEndPoint.java:397)
	at org.eclipse.jetty.http.HttpParser.fill(HttpParser.java:949)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:274)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
	at java.lang.Thread.run(Unknown Source)

30 Nov 2011 18:39:21,593 [qtp11420600-149] WARN  org.eclipse.jetty.io.nio  - handle failed
java.lang.NullPointerException
	at org.eclipse.jetty.io.nio.SslSelectChannelEndPoint.unwrap(SslSelectChannelEndPoint.java:525)
	at org.eclipse.jetty.io.nio.SslSelectChannelEndPoint.fill(SslSelectChannelEndPoint.java:397)
	at org.eclipse.jetty.http.HttpParser.fill(HttpParser.java:949)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:274)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
	at java.lang.Thread.run(Unknown Source)


Reproducible: Sometimes
Comment 1 Jan Bartel CLA 2011-12-05 01:21:00 EST
Could you try the latest release of jetty-7 and report back?
jetty-7.6.0.RC0 can be downloaded here: 

http://download.eclipse.org/jetty/7.6.0.RC0/dist/

thanks
Jan
Comment 2 Greg Wilkins CLA 2012-01-10 23:50:39 EST
We believe this is fixed in the 7.6.0 release