java.lang.IllegalArgumentException: New capacity must not be smaller than current size

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you are trying to get a specific page of results, try first defining that page.

Solutions on the web

via Spring JIRA by Neeraj A Khadakkar, 1 year ago
New capacity must not be smaller than current size
via Spring JIRA by Neeraj A Khadakkar, 1 year ago
New capacity must not be smaller than current size
via Stack Overflow by Daris
, 2 years ago
Transaction must be running
via Stack Overflow by nobody
, 2 years ago
Source directory **[${SYS.com.abc.wls.workdir}\finalize] does not exist**.
via Spring JIRA by Jacek Obarymski, 11 months ago
via Stack Overflow by Adam Michalik
, 1 month ago
The 'sequenceNumber' header value must be an Integer.
java.lang.IllegalArgumentException: New capacity must not be smaller than current size
at org.springframework.util.Assert.isTrue(Assert.java:68)
at org.springframework.util.FastByteArrayOutputStream.resize(FastByteArrayOutputStream.java:265)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
at org.apache.jasper.runtime.JspWriterImpl.(JspWriterImpl.java:138)
at org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:206)
at org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:174)
at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:174)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 days ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Once, 1 week ago
Once, 2 weeks ago
56 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.