java.lang.IllegalStateException: Head already written

Stack Overflow | The Crazy Chimp | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Serving up a single page rect app using java vert.x web server

    Stack Overflow | 10 months ago | The Crazy Chimp
    java.lang.IllegalStateException: Head already written

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Head already written

      at io.vertx.core.http.impl.HttpServerResponseImpl.doSendFile()
    2. Vert.x Core
      HttpServerResponse.sendFile
      1. io.vertx.core.http.impl.HttpServerResponseImpl.doSendFile(HttpServerResponseImpl.java:434)
      2. io.vertx.core.http.impl.HttpServerResponseImpl.sendFile(HttpServerResponseImpl.java:334)
      3. io.vertx.core.http.impl.HttpServerResponseImpl.sendFile(HttpServerResponseImpl.java:52)
      4. io.vertx.core.http.HttpServerResponse.sendFile(HttpServerResponse.java:275)
      5. io.vertx.core.http.HttpServerResponse.sendFile(HttpServerResponse.java:262)
      5 frames
    3. co.uk.foo
      WebServer.lambda$initialiseRoutes$0
      1. co.uk.foo.webserver.server.WebServer.lambda$initialiseRoutes$0(WebServer.java:67)
      1 frame