Bug 58357 - Read failed with APR/native error code [20,014]
Summary: Read failed with APR/native error code [20,014]
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Connectors (show other bugs)
Version: 8.0.15
Hardware: PC All
: P2 major (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2015-09-10 17:22 UTC by Justin
Modified: 2015-09-11 08:04 UTC (History)
0 users

Solr webapp log (4.68 KB, text/plain)
2015-09-10 17:22 UTC, Justin
Tomcat server configuration (6.19 KB, text/xml)
2015-09-10 17:23 UTC, Justin
SolrJ client log (3.58 KB, text/plain)
2015-09-10 17:23 UTC, Justin
Tomcat server log (6.57 KB, text/plain)
2015-09-10 17:24 UTC, Justin

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2015-09-10 17:22:46 UTC
Created attachment 33090 [details]
Solr webapp log

Tomcat throws exception while reading from SSL/TLS APR connector. I attached detailed log.

04-Sep-2015 01:14:15.665 SEVERE [http-apr-9443-exec-6] org.apache.solr.common.SolrException.log org.apache.solr.common.SolrException: Read failed with APR/native error code [20,014]
	at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:176)
Caused by: com.ctc.wstx.exc.WstxIOException: Read failed with APR/native error code [20,014]
	at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
	at org.apache.solr.handler.loader.XMLLoader.readDoc(XMLLoader.java:391)
Caused by: java.io.IOException: Read failed with APR/native error code [20,014]
	at org.apache.coyote.http11.InternalAprInputBuffer.fill(InternalAprInputBuffer.java:607)
	at org.apache.coyote.http11.InternalAprInputBuffer$SocketInputBuffer.doRead(InternalAprInputBuffer.java:688)
	at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:314)

The serverside exception cause an exception on the SolrJ client. Additional logs and server.xml forthcoming.
Comment 1 Justin 2015-09-10 17:23:24 UTC
Created attachment 33091 [details]
Tomcat server configuration
Comment 2 Justin 2015-09-10 17:23:48 UTC
Created attachment 33092 [details]
SolrJ client log
Comment 3 Justin 2015-09-10 17:24:32 UTC
Created attachment 33093 [details]
Tomcat server log
Comment 4 Justin 2015-09-10 20:33:39 UTC
The following mailing list thread appears related.

Comment 5 Mark Thomas 2015-09-11 08:04:35 UTC
Thanks for the report and for digging up the related thread. I agree is certainly looks to be the same problem.

The refactoring in trunk has already addressed this issue.

I've back-ported the fix to 8.0.x (for 8.0.27 onwards) and 7.0.x (for 7.0.65 onwards).