org.springframework.web.util.NestedServletException

Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template "error", template might not exist or might not be accessible by any of the configured Template Resolvers

Samebug tips2

tip

JDK has a bug that happens when using '/' and '//' paths. If you can, remove this from code, or follow what's said here: https://github.com/spring-projects/spring-boot/issues/1744

tip

Check how the URL looks like, sometimes it might happen that you have a rest controller ending with a '/' and the page name starts with one as well, so it can't resolve the name.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web52

Stack trace

  • org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template "error", template might not exist or might not be accessible by any of the configured Template Resolvers at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)[gwt-user.jar:na] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[gwt-user.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:468)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:433)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:299)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:176)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1085)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1556)[tomcat-embed-core-8.0.15.jar:8.0.15] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1513)[tomcat-embed-core-8.0.15.jar:8.0.15] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_92] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_92] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-embed-core-8.0.15.jar:8.0.15] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_92] Caused by: org.thymeleaf.exceptions.TemplateInputException: Error resolving template "error", template might not exist or might not be accessible by any of the configured Template Resolvers at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:246)[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1104)[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1060)[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1011)[thymeleaf-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:335)[thymeleaf-spring4-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190)[thymeleaf-spring4-2.1.5.RELEASE.jar:2.1.5.RELEASE] at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1257)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1037)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:980)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)[spring-webmvc-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 25 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitor1 times, last one,
tomthomastomthomas
131 times, last one,
Shadd518Shadd518
17 times, last one,
SteVio1989SteVio1989
1 times, last one,
asdasdasdasd
6 times, last one,
17 more bugmates