java.io.IOException: Socket read failed

  1. 0

    Apache File Upload Exception while uploading files greater than 2 MB

    Stack Overflow | 3 years ago | Caadi0
    org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Socket read failed
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    6 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.io.IOException

      Socket read failed

      at org.apache.coyote.ajp.AjpProcessor.read()
    2. org.apache.coyote
      AbstractAjpProcessor$SocketInputBuffer.doRead
      1. org.apache.coyote.ajp.AjpProcessor.read(AjpProcessor.java:313)
      2. org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:364)
      3. org.apache.coyote.ajp.AjpProcessor.receive(AjpProcessor.java:331)
      4. org.apache.coyote.ajp.AbstractAjpProcessor.refillReadBuffer(AbstractAjpProcessor.java:614)
      5. org.apache.coyote.ajp.AbstractAjpProcessor$SocketInputBuffer.doRead(AbstractAjpProcessor.java:1065)
      5 frames
    3. Grizzly HTTP
      Request.doRead
      1. org.apache.coyote.Request.doRead(Request.java:422)
      1 frame
    4. Glassfish Core
      InputBuffer.realReadBytes
      1. org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290)
      1 frame
    5. Tomcat Util
      ByteChunk.substract
      1. org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:431)
      1 frame
    6. Glassfish Core
      CoyoteInputStream.read
      1. org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315)
      2. org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200)
      2 frames
    7. Jackson
      JsonFactory.createJsonParser
      1. org.codehaus.jackson.impl.ByteSourceBootstrapper.ensureLoaded(ByteSourceBootstrapper.java:340)
      2. org.codehaus.jackson.impl.ByteSourceBootstrapper.detectEncoding(ByteSourceBootstrapper.java:137)
      3. org.codehaus.jackson.impl.ByteSourceBootstrapper.constructParser(ByteSourceBootstrapper.java:197)
      4. org.codehaus.jackson.JsonFactory._createJsonParser(JsonFactory.java:542)
      5. org.codehaus.jackson.JsonFactory.createJsonParser(JsonFactory.java:389)
      5 frames
    8. Data Mapper for Jackson
      ObjectMapper.readValue
      1. org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1454)
      1 frame
    9. Spring
      HandlerMethodInvoker.invokeHandlerMethod
      1. org.springframework.http.converter.json.MappingJacksonHttpMessageConverter.readInternal(MappingJacksonHttpMessageConverter.java:124)
      2. org.springframework.http.converter.AbstractHttpMessageConverter.read(AbstractHttpMessageConverter.java:153)
      3. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.readWithMessageConverters(HandlerMethodInvoker.java:641)
      4. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveRequestBody(HandlerMethodInvoker.java:605)
      5. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:354)
      6. org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:171)
      6 frames
    10. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436)
      2. org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
      6. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
      6 frames