Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351484 - java.lang.UnsupportedOperationException: The method shutdownOutput() is not supported in SSLSocket
Summary: java.lang.UnsupportedOperationException: The method shutdownOutput() is not s...
Status: CLOSED INVALID
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 7.4.x   Edit
Assignee: Simone Bordet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-07 14:56 EDT by Jeffrey Aguilera CLA
Modified: 2011-07-08 14:31 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeffrey Aguilera CLA 2011-07-07 14:56:54 EDT
Build Identifier: jetty-6.1.26.jar

java.lang.UnsupportedOperationException: The method shutdownOutput() is not supported in SSLSocket
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.shutdownOutput(BaseSSLSocketImpl.java:192)
        at org.mortbay.io.bio.SocketEndPoint.shutdownOutput(SocketEndPoint.java:65)
        at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:766)
        at org.mortbay.jetty.HttpGenerator.complete(HttpGenerator.java:678)
        at org.mortbay.jetty.HttpConnection.completeResponse(HttpConnection.java:684)
        at org.mortbay.jetty.Response.complete(Response.java:1125)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:612)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)


Reproducible: Always

Steps to Reproduce:
1. Run https web site
2. Watch logs
3. Profit
Comment 1 Jeffrey Aguilera CLA 2011-07-07 14:58:54 EDT
See the same problem in jetty 7.4.0 and 7.4.3.  Saw some older bugs with the similar stack trace that were closed as fixed on an older version of Jetty; but it has either resurfaced, or there are other vectors that generate this problem.  I have 100's of MBs of logs with this exception traced.
Comment 2 Jeffrey Aguilera CLA 2011-07-07 15:01:13 EDT
Here is a stack trace from 7.4.3:

java.lang.UnsupportedOperationException: The method shutdownOutput() is not supported in SSLSocket
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.shutdownOutput(BaseSSLSocketImpl.java:192)
        at org.eclipse.jetty.io.bio.SocketEndPoint.shutdownOutput(SocketEndPoint.java:96)
        at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:895)
        at org.eclipse.jetty.http.HttpGenerator.complete(HttpGenerator.java:809)
        at org.eclipse.jetty.server.HttpConnection.completeResponse(HttpConnection.java:744)
        at org.eclipse.jetty.server.Response.complete(Response.java:1145)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:666)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
        at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:241)
...

The corresponding jar is jetty-io-7.4.3.v20110701.jar
Comment 3 Greg Wilkins CLA 2011-07-07 20:05:46 EDT
Jeffrey,

use SslSelectChannelConnector to avoid this problem for now.
We'll fix SslSocketConnector in next release.
Comment 4 Jeffrey Aguilera CLA 2011-07-07 20:26:21 EDT
Please close this.  The problem was on my side.  Someone had subclassed SocketConnector from an earlier version of Jetty; and the subsequent changes to fix this issue were not merged on our side.

Sorry about that.