"java.io.IOException: JBWEB000059: Stream closed" in my application

Solution In Progress - Updated -

Issue

Unable to get the bytes from the InputStream while trying to parse the XML data. See the error and stack trace below;

java.io.IOException: JBWEB000059: Stream closed
    at org.example.station.InputBuffer.read(InputBuffer.java:371)
    at org.example.station.CoyoteInputStream.read(CoyoteInputStream.java:193)
    at org.example.xmlbeans.impl.piccolo.xml.XMLStreamReader.fillByteBuffer(XMLStreamReader.java:209)
    at org.example.xmlbeans.impl.piccolo.xml.XMLStreamReader.reset(XMLStreamReader.java:97)
    at org.example.xmlbeans.impl.piccolo.xml.DocumentEntity.open(DocumentEntity.java:94)
    at org.example.xmlbeans.impl.piccolo.xml.PiccoloLexer.reset(PiccoloLexer.java:982)
    at org.example.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:709)
    at org.example.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
    at org.example.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276)
    at org.example.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263)
    at org.example.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
    at org.example.xmlbeans.XmlObject$Factory.parse(XmlObject.java:663)
    at com.example.xxx.process.ServiceRequest.setMessage(ServiceRequest.java:552)
    at com.example.xxx.servlet.UXFServlet._doPost(UXFServlet.java:182)
    at com.example.yyy.servlet.WSFServlet.doPost(WSFServlet.java:510)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.example.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
    at org.example.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at com.example.webappcommon.filter.AAAFilter.doFilter(AAAFilter.java:31)
    at org.example.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    at org.example.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at org.example.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.example.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
    at org.example.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
    at org.example.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
    at org.example.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
    at org.example.station.CoyoteAdapter.service(CoyoteAdapter.java:336)
    at org.example.coyote.http11.Http11Processor.process(Http11Processor.java:856)
    at org.example.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
    at org.example.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
    at java.lang.Thread.run(Thread.java:722)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.