Bug 58357

Summary: Read failed with APR/native error code [20,014]
Product: Tomcat 8 Reporter: Justin <crynax>
Component: ConnectorsAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 8.0.15   
Target Milestone: ----   
Hardware: PC   
OS: All   
Attachments: Solr webapp log
Tomcat server configuration
SolrJ client log
Tomcat server log

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.

http://mail-archives.apache.org/mod_mbox/tomcat-dev/201310.mbox/%3C001401cecac9$992a0c30$cb7e2490$@apache.org%3E
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).