Bug 60433 - java.nio.BufferOverflowException at java.nio.HeapByteBuffer.put(Unknown Source)
Summary: java.nio.BufferOverflowException at java.nio.HeapByteBuffer.put(Unknown Source)
Status: RESOLVED DUPLICATE of bug 60372
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 9.0.0.M13
Hardware: PC All
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-30 10:03 UTC by Sean
Modified: 2016-11-30 12:36 UTC (History)
1 user (show)



Attachments
An error log from Tomcat9 containing 4 records in one second, possibly covering 2 requests (2 errors each) (7.12 KB, text/plain)
2016-11-30 10:03 UTC, Sean
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean 2016-11-30 10:03:57 UTC
Created attachment 34491 [details]
An error log from Tomcat9 containing 4 records in one second, possibly covering 2 requests (2 errors each)

This bug may be similar to 60372, but I'm not strong enough in this area to know if its the same. Feel free to delete or modify if so.

I am building an archival system on a LAN to host old webapps from production servers slated for decommissioning. Our business line once required us to make new Java webapps as a matter of routine, fortunately now we usually add static content to a smaller number of existing webapps.

This new system is based on Tomcat 9.0.0.M13, unlike production versions which are all various versions of Tomcat 5, 6 and 7, which are all working fine. Like our production servers, it will have a large number of webapps, unlike production servers, it will rarely if ever have more than 2 concurrent users. I have the following information about the host machine:

Dell OptiPlex 780USFF
Windows 7 32 bit
Intel Core2Duo E7500, 4GB Ram
Java is Version 8 Update 111, build 1.8.0_111-b14
Accessed directly by HTTP connector (e.g. http://machinename:8080), AJP is not being used here.

I copied a number of webapps from a production server to this server weeks ago, but since that time have not added any more, only configured each one to adapt to the new environment, updating database drivers, editing web.xml in each etc. For reasons that are to me unclear, the whole thing began misbehaving yesterday.

The symptoms affect mainly pages that require active processing, servlets and jsp files, though static pages can be affected as well. They include, browsers complaining that the "The connector was reset" or simply not able to see the server at all (which can affect both static and dynamic pages), also sometimes pages do run but with images or style sheets missing, especially dynamic pages. 

The error logs record extensive details in each instance, each time recording an error of type: BufferOverflowException at java.nio.HeapByteBuffer.put(Unknown Source). I've included a log file containing 4 errors that occurred in one second during testing yesterday. I think it covers 2 individual requests during that second, 2 errors each. From yesterday evening on these became regular occurrences.

Unfortunately I cannot advise how to reproduce this, mainly because I have no idea what caused it.
Comment 1 Violeta Georgieva 2016-11-30 12:36:07 UTC
Hi,

The issue is the same as 60372.

Regards,
Violeta

*** This bug has been marked as a duplicate of bug 60372 ***