org.eclipse.jetty.io.RuntimeIOException: java.io.FileNotFoundException: resources/templates/base.hbs

Stack Overflow | Ryan Susana | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    FileNotFoundException Using HandlebarsTemplateEngine with Sparkjava

    Stack Overflow | 8 months ago | Ryan Susana
    org.eclipse.jetty.io.RuntimeIOException: java.io.FileNotFoundException: resources/templates/base.hbs

    Root Cause Analysis

    1. java.io.FileNotFoundException

      resources/templates/base.hbs

      at com.github.jknack.handlebars.io.URLTemplateLoader.sourceAt()
    2. com.github.jknack
      Handlebars.compile
      1. com.github.jknack.handlebars.io.URLTemplateLoader.sourceAt(URLTemplateLoader.java:70)
      2. com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:391)
      3. com.github.jknack.handlebars.Handlebars.compile(Handlebars.java:377)
      3 frames
    3. spark.template.handlebars
      HandlebarsTemplateEngine.render
      1. spark.template.handlebars.HandlebarsTemplateEngine.render(HandlebarsTemplateEngine.java:75)
      1 frame
    4. Spark
      TemplateViewRouteImpl.render
      1. spark.TemplateViewRouteImpl$1.render(TemplateViewRouteImpl.java:61)
      2. spark.TemplateViewRouteImpl$1.render(TemplateViewRouteImpl.java:58)
      3. spark.TemplateViewRouteImpl.render(TemplateViewRouteImpl.java:85)
      3 frames
    5. spark.http.matching
      MatcherFilter.doFilter
      1. spark.http.matching.Routes.execute(Routes.java:62)
      2. spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:126)
      2 frames
    6. Spark
      SparkFilter.doFilter
      1. spark.servlet.SparkFilter.doFilter(SparkFilter.java:119)
      1 frame
    7. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      10 frames
    8. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      4 frames
    9. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      2 frames
    10. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame