clarencen/lshift — Issue #73: Read timeout during config application
Author: clarencen
Created: 2011-11-14 22:41:35+00:00
State: open

In scenarios with an unreliable network, the agent appears to suffer read time outs whilst attempting to consume the wrapped input stream from the client:

@@@
Caused by: org.exolab.castor.xml.MarshalException: Read timed out
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:757) ~[castor-xml-1.3.1.jar:$VERSION$$RELEASE$]
at org.springframework.oxm.castor.CastorMarshaller.unmarshalInputStream(CastorMarshaller.java:386) ~[spring-oxm-3.0.6.RELEASE.jar:3.0.6.RELEASE]
... 68 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.$$YJP$$socketRead0(Native Method) ~[na:1.6.0_16]
at java.net.SocketInputStream.socketRead0(SocketInputStream.java) ~[na:1.6.0_16]
at java.net.SocketInputStream.read(SocketInputStream.java:129) ~[na:1.6.0_16]
at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:461) ~[tomcat-coyote.jar:7.0.11]
at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:430) ~[tomcat-coyote.jar:7.0.11]
at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:492) ~[tomcat-coyote.jar:7.0.11]
at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116) ~[tomcat-coyote.jar:7.0.11]
at org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:308) ~[tomcat-coyote.jar:7.0.11]
at org.apache.coyote.Request.doRead(Request.java:422) ~[tomcat-coyote.jar:7.0.11]
at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:287) ~[catalina.jar:7.0.11]
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:407) ~[tomcat-coyote.jar:7.0.11]
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:310) ~[catalina.jar:7.0.11]
at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:202) ~[catalina.jar:7.0.11]
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2962) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:299) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(XMLEntityScanner.java:1064) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:974) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1539) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1316) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) ~[na:1.6.0_16]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) ~[na:1.6.0_16]
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:748) ~[castor-xml-1.3.1.jar:$VERSION$$RELEASE$]
... 69 common frames omitted

@@@