You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When webapp requests a document which does not exist, the StaticFileHandler throws an exception and browser waits forever:
SEVERE: Exception in Java verticle
java.lang.IllegalStateException: Failed to check file: java.nio.file.NoSuchFileException: ...path...
at org.vertx.mods.web.StaticFileHandler.handle(StaticFileHandler.java:184)
at org.vertx.mods.web.StaticFileHandler.handle(StaticFileHandler.java:37)
at org.vertx.java.core.http.impl.ServerConnection.handleRequest(ServerConnection.java:180)
[...]
The problem does not exist when caching is disabled. My workaround is this:
Hi,
I am using
StaticFileHandler
in my application (to serve static content), like this:When webapp requests a document which does not exist, the
StaticFileHandler
throws an exception and browser waits forever:The problem does not exist when caching is disabled. My workaround is this:
It does look like a bug to me, doesn't it?
The text was updated successfully, but these errors were encountered: