I have been running an application on Glassfish4 over a year without incident. Suddenly at some point since April (application is not heavily used) whenever a user attempts to upload a file greater than 10KB in size, the browser indicates a Server Error 500 has occurred. When I use the development tools in chrome, it indicates an error 400 (bad request). I have seen a number of references to Jersey and a 10KB file size limit, but this occurs with even a basic web form with a file input.
Here's what I've done since April:
Updated the JDK I'm running to 1.8.0_92
Updated glassfish to J2EE SDK 7u2
I wouldn't think updating things would suddenly break stuff, but who knows... If you want to test this behavior, you can view my test page at https://clm.caci.com/test/uploadServlet.jsp If you select a file less than 10KB in size, the page posts successfully. If you select a file any larger, you will get the Server Error 500.
There's really nothing to the file. It just demonstrates that the file input included in the form data is what is causing the error. If anyone can provide any insight into why this is happening it would be appreciated. Here's the source:
<!DOCTYPE html>
<html lang="en">
<head>
<title>File Upload</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="go">
<input type="file" name="fileInput">
<input type="submit" value="Write File">
</form>
</body>
</html>