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

Spring JIRA | Neeraj A Khadakkar | 1 year ago
  1. 0

    This appears to be regression of issue 11717, where attempting to calculate Etag for jsp's which include other tags throws following exception : SEVERE: Exception initializing page context 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 org.springframework.web.util.ContentCachingResponseWrapper.setBufferSize(ContentCachingResponseWrapper.java:143) 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.<init>(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) at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:123)

    Spring JIRA | 1 year ago | Neeraj A Khadakkar
    java.lang.IllegalArgumentException: New capacity must not be smaller than current size
  2. 0

    This appears to be regression of issue 11717, where attempting to calculate Etag for jsp's which include other tags throws following exception : SEVERE: Exception initializing page context 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 org.springframework.web.util.ContentCachingResponseWrapper.setBufferSize(ContentCachingResponseWrapper.java:143) 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.<init>(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) at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:123)

    Spring JIRA | 1 year ago | Neeraj A Khadakkar
    java.lang.IllegalArgumentException: New capacity must not be smaller than current size
  3. 0

    GitHub comment 9090#252884209

    GitHub | 2 months ago | pveentjer
    java.lang.IllegalStateException: Failed at packet: 20002
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerException when trying to stop an animation before starting one

    GitHub | 2 years ago | PeterKomoot
    java.lang.IllegalArgumentException: minValue must be smaller than maxValue: 0.0>-1.0
  6. 0

    IllegalArgumentException: minValue must be smaller than maxValue

    GitHub | 2 years ago | PeterKomoot
    java.lang.IllegalArgumentException: minValue must be smaller than maxValue: 0.0>-1.0

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      New capacity must not be smaller than current size

      at org.springframework.util.Assert.isTrue()
    2. Spring Core
      FastByteArrayOutputStream.resize
      1. org.springframework.util.Assert.isTrue(Assert.java:68)
      2. org.springframework.util.FastByteArrayOutputStream.resize(FastByteArrayOutputStream.java:265)
      2 frames
    3. Spring
      ContentCachingResponseWrapper.setBufferSize
      1. org.springframework.web.util.ContentCachingResponseWrapper.setBufferSize(ContentCachingResponseWrapper.java:143)
      1 frame
    4. JavaServlet
      ServletResponseWrapper.setBufferSize
      1. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      2. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      3. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      4. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      5. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      6. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      7. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      8. javax.servlet.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:189)
      8 frames
    5. GWT dev
      JspFactoryImpl.getPageContext
      1. org.apache.jasper.runtime.JspWriterImpl.<init>(JspWriterImpl.java:138)
      2. org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:206)
      3. org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:174)
      4. org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:174)
      5. org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:123)
      5 frames