Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 7.0.1, 7.1.3
-
Fix Version/s: 7.2.0
-
Component/s: Security and SSL
-
Labels:None
-
Environment:Debian 2.6.26-2-amd64
-
Number of attachments :
Description
We're getting lots of IndexOutOfBoundsException when idle ssl connections
are closed in our jetty 7 installations.
Looks like it's the same problem described in http://jira.codehaus.org/browse/JETTY-1209 but this time in jetty version 7.
java.lang.IndexOutOfBoundsException: null
at java.nio.Buffer.checkIndex(Unknown Source) [na:1.6.0_11]
at java.nio.DirectByteBuffer.get(Unknown Source) [na:1.6.0_11]
at com.sun.net.ssl.internal.ssl.EngineInputRecord.bytesInCompletePacket(Unknown Source) [na:1.6]
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(Unknown Source) [na:1.6]
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(Unknown Source) [na:1.6]
at javax.net.ssl.SSLEngine.unwrap(Unknown Source) [na:1.6]
at org.eclipse.jetty.http.ssl.SslSelectChannelEndPoint.unwrap(SslSelectChannelEndPoint.java:667) [na:na]
at org.eclipse.jetty.http.ssl.SslSelectChannelEndPoint.close(SslSelectChannelEndPoint.java:200) [na:na]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.idleExpired(SelectChannelEndPoint.java:215) [na:na]
at org.eclipse.jetty.http.ssl.SslSelectChannelEndPoint.doIdleExpired(SslSelectChannelEndPoint.java:150) [na:na]
at org.eclipse.jetty.http.ssl.SslSelectChannelEndPoint$1.run(SslSelectChannelEndPoint.java:137) [na:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_11]
at java.lang.Thread.run(Unknown Source) [na:1.6.0_11]
Hi Jonas,
What version of java are you using? Can you describe the circumstances in which this happens? Eg does it happen after a lot of load over many connections or is it very light traffic and few connections etc. What is the client, is it a browser or other type of client? Finally, it would be great if you could test jetty-7.1.5 just to be sure that the problem is still there.
thanks,
Jan