5 Replies Latest reply on Jan 15, 2015 1:47 AM by andreas_w

    HTTP-Post chunked streaming mode

    andreas_w

      Hi!

       

      We want to migrate our application to WildFly 8.1 but have problems with our android-app client. We are sending requests to wildfly with HTTP-GET and HTTP-POST. The GET-requests are working without any problems but the POST requests are not working. We are getting the following error in our android app:

      ERROR: java.net.HttpRetryException: Cannot retry streamed HTTP body
      

       

      In the app we have the following line of code:

      hc.setChunkedStreamingMode(0);
      

      If we delete this line, it is working. The problem is that we can't delete this, because otherwise we have problems with our current application server and some android-devices.

       

      We changed the log-level for io.undertow to trace. The only messages we are seeing on the server are:

      TRACE [io.undertow.request] (default I/O-3) Opened connection with /<IP>:43339
      TRACE [io.undertow.server.HttpServerExchange] (default task-9) Starting to write response for HttpServerExchange{ POST <SERVLET>}
      TRACE [org.jboss.security] (default task-9) PBOX000354: Setting security roles ThreadLocal: null
      

       

      If anyone would have an idea what is wrong, we would be happy.

       

      thanks