tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60455] New: java.nio.BufferOverflowException
Date Thu, 08 Dec 2016 15:20:42 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60455

            Bug ID: 60455
           Summary: java.nio.BufferOverflowException
           Product: Tomcat 9
           Version: 9.0.0.M11
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: jan.kostelansky@aerosoftsys.com
  Target Milestone: -----

we do experience strange BufferOverflowException even there is 1.5 GB free
memory. The server works fine for several days (6 days last time) and then
every request ends in BufferOverflowException error.
here is stack trace of response which sends toolbar several bytes response to
client. We do include memory status with every logged message. As yoyu can see
1734 MB is still free.
Any help appropriated.
------------------------------
[http-nio-80-exec-8] com.corena.lifeweb.servlets.Message 2016-12-07
08:54:41,973 -- ERROR --  Mem(MB)[free=1734,total=4293,max=7635] Error flushing
message: null java.nio.BufferOverflowException
              at java.nio.HeapByteBuffer.put(Unknown Source)
              at
org.apache.coyote.http11.Http11OutputBuffer.write(Http11OutputBuffer.java:432)
              at
org.apache.coyote.http11.Http11OutputBuffer.write(Http11OutputBuffer.java:417)
              at
org.apache.coyote.http11.Http11OutputBuffer.sendHeader(Http11OutputBuffer.java:377)
              at
org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1278)
              at
org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:261)
              at org.apache.coyote.Response.action(Response.java:169)
              at org.apache.coyote.Response.sendHeaders(Response.java:351)
              at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:303)
              at
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:284)
              at
org.apache.catalina.connector.CoyoteWriter.flush(CoyoteWriter.java:94)
              at net.sf.saxon.serialize.XMLEmitter.close(XMLEmitter.java:294)
              at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:101)
              at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:101)
              at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:101)
              at net.sf.saxon.event.ProxyReceiver.close(ProxyReceiver.java:101)
              at
net.sf.saxon.event.ComplexContentOutputter.close(ComplexContentOutputter.java:534)
              at net.sf.saxon.Controller.closeResult(Controller.java:2265)
              at
net.sf.saxon.Controller.transformDocument(Controller.java:2113)
              at net.sf.saxon.Controller.transform(Controller.java:1911)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:385)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:337)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:155)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:172)
              at
com.corena.lifeweb.servlets.Message.handleMessage(Message.java:167)
              at com.corena.lifeweb.servlets.Message.doGet(Message.java:59)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:636)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
             at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
              at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:715)
              at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:460)
              at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:385)
              at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
              at
com.corena.lifeweb.servlets.Functions.doGet(Functions.java:182)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:636)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
             at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
              at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
              at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
              at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:589)
              at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
              at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
              at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
              at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
              at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
              at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
              at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
              at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
              at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
              at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
             at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
              at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Unknown Source) [http-nio-80-exec-8]
com.corena.lifeweb.servlets.Message 2016-12-07 08:54:41,989 -- ERROR -- 
Mem(MB)[free=1733,total=4293,max=7635] Exception: null [http-nio-80-exec-2]
com.corena.lifeweb.servlets.Functions 2016-12-07 08:55:20,147 -- ERROR -- 
Mem(MB)[free=1774,total=4293,max=7635]
[http-nio-80-exec-2] com.corena.lifeweb.servlets.Functions 2016-12-07
08:55:20,147 -- ERROR -- com.corena.lifeweb.servlets.Functions@545cab89
java.lang.NullPointerException
              at
org.apache.catalina.connector.Request.getRequestURL(Request.java:2321)
              at
org.apache.catalina.connector.RequestFacade.getRequestURL(RequestFacade.java:880)
              at
com.corena.lifeweb.servlets.LifeWEB_Servlet.getFullUrl(LifeWEB_Servlet.java:806)
              at
com.corena.lifeweb.servlets.Functions.doGet(Functions.java:129)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:636)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
             at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
              at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
              at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
              at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:589)
              at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
              at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
              at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
              at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
              at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
              at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
              at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
              at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
              at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
              at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
             at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
              at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Unknown Source) [http-nio-80-exec-9]
com.corena.lifeweb.servlets.Functions 2016-12-07 08:55:20,178 -- ERROR -- 
Mem(MB)[free=1744,total=4293,max=7635]
[http-nio-80-exec-9] com.corena.lifeweb.servlets.Functions 2016-12-07
08:55:20,178 -- ERROR -- com.corena.lifeweb.servlets.Functions@545cab89
java.lang.NullPointerException
              at
org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:450)
              at
org.apache.catalina.connector.OutputBuffer.flushCharBuffer(OutputBuffer.java:813)
              at
org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:746)
              at
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:498)
              at
org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:148)
              at net.sf.saxon.tree.tiny.CharSlice.write(CharSlice.java:224)
              at
net.sf.saxon.serialize.XMLEmitter.writeCharSequence(XMLEmitter.java:652)
              at
net.sf.saxon.serialize.HTMLEmitter.writeEscape(HTMLEmitter.java:305)
              at
net.sf.saxon.serialize.XMLEmitter.characters(XMLEmitter.java:588)
              at
net.sf.saxon.serialize.HTMLEmitter.characters(HTMLEmitter.java:421)
              at
net.sf.saxon.serialize.HTMLIndenter.indent(HTMLIndenter.java:282)
              at
net.sf.saxon.serialize.HTMLIndenter.startElement(HTMLIndenter.java:194)
              at
net.sf.saxon.serialize.HTMLURIEscaper.startElement(HTMLURIEscaper.java:124)
              at
net.sf.saxon.serialize.MetaTagAdjuster.startElement(MetaTagAdjuster.java:120)
              at
net.sf.saxon.event.NamespaceReducer.startElement(NamespaceReducer.java:73)
              at
net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:558)
              at
net.sf.saxon.event.ComplexContentOutputter.startElement(ComplexContentOutputter.java:183)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:424)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:239)
              at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1057)
              at
net.sf.saxon.expr.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:519)
              at
net.sf.saxon.expr.instruct.ApplyTemplates.apply(ApplyTemplates.java:283)
              at
net.sf.saxon.expr.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:241)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Block.processLeavingTail(Block.java:660)
              at
net.sf.saxon.expr.instruct.Instruction.process(Instruction.java:138)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:431)
              at
net.sf.saxon.expr.instruct.ElementCreator.processLeavingTail(ElementCreator.java:373)
              at
net.sf.saxon.expr.instruct.Template.applyLeavingTail(Template.java:239)
              at net.sf.saxon.trans.Mode.applyTemplates(Mode.java:1057)
              at
net.sf.saxon.Controller.transformDocument(Controller.java:2088)
              at net.sf.saxon.Controller.transform(Controller.java:1911)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:385)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:337)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:155)
              at com.corena.lifeweb.appl.XML_Result.flush(XML_Result.java:172)
              at
com.corena.lifeweb.servlets.Functions.doGet(Functions.java:158)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:636)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
              at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
              at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
              at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
              at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:108)
              at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:589)
              at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
              at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
              at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
              at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
              at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
              at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:784)
              at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
              at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:802)
              at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
              at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
Source)
             at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
              at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.lang.Thread.run(Unknown Source) Best regards, Lee

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message