EAP 7 static requests fail with java.nio.file.NoSuchFileException
Issue
- Static requests started failing with the below java.nio.file.NoSuchFileException error until we redeployed the application:
ERROR [io.undertow.request] (default task-1048) UT005023: Exception handling request to /app/static-content.js: java.lang.RuntimeException: java.nio.file.NoSuchFileException: /path/to/eap-7/standalone/tmp/vfs/temp/temp364488fdf2970427/content-e13b9ceaa0a1d6f1/static-content.js
at io.undertow.core@2.0.41.SP1-redhat-00001//io.undertow.server.handlers.resource.PathResource.getContentLength(PathResource.java:270)
at org.wildfly.extension.undertow@7.3.10.GA-redhat-00003//org.wildfly.extension.undertow.deployment.ServletResource.getContentLength(ServletResource.java:101)
at io.undertow.core@2.0.41.SP1-redhat-00001//io.undertow.server.handlers.resource.CachedResource.getContentLength(CachedResource.java:201)
at io.undertow.servlet@2.0.41.SP1-redhat-00001//io.undertow.servlet.handlers.DefaultServlet.serveFileBlocking(DefaultServlet.java:322)
at io.undertow.servlet@2.0.41.SP1-redhat-00001//io.undertow.servlet.handlers.DefaultServlet.doGet(DefaultServlet.java:201)
at javax.servlet.api@2.0.0.Final-redhat-00001//javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
Environment
- JBoss Enterprise Application Platform (EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.