java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found.

Atlassian JIRA | Brydie McCoy [Atlassian] | 7 years 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

    I started a brand new Bamboo Home (2.5). After running the setup wizard in Bamboo and running a few builds, I added a new plan status gadget to jira (4.0) and got the error below (see screen shot also). The error could also be seen when hitting the straight rest urls: http://localhost:8085/bamboo/rest/api/latest/build/SVN/DEF?expand=builds[0%3A9].build&max-results=10 I then stopped and started Bamboo and the resources were found happily and everything worked. Notifications are not affected (runs through similar code) just the REST calls. --------------- 2010-01-12 13:51:45,070 INFO [10084294@qtp-11642082-31] [AccessLogFilter] admin http://172.20.7.225:8085/bamboo/rest/api/latest/build/SVN/DEF2.json?expand=builds%5B0%3A9%5D.build&max-results=10&nocache=1263264704955 174430kb 2010-01-12 13:51:45,132 ERROR [9682830@qtp-11642082-30] [BambooFreemarkerManager] Error resolving template java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1464) at freemarker.core.Environment.getTemplateForImporting(Environment.java:1518) at freemarker.core.Environment.importLib(Environment.java:1503) at freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:843) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:419) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:260) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:236) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:305) at com.atlassian.bamboo.v2.build.trigger.DefaultTriggerReasonRenderer.getShortDescriptionHtml(DefaultTriggerReasonRenderer.java:40) at com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary.getReasonSummary(AbstractBuildResultsSummary.java:135) at com.atlassian.bamboo.plugins.rest.model.build.AbstractRestBuild.expand(AbstractRestBuild.java:145) at com.atlassian.bamboo.plugins.rest.model.build.RestBuild.expand(RestBuild.java:68) at com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:14) at com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:8) at com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander.expand(AbstractRecursiveEntityExpander.java:9) at com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:65) at com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:56) at com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94) at com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35) at com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:58) at com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:32) at com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94) at com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35) at com.atlassian.plugins.rest.common.expand.jersey.ExpandResponseFilter.filter(ExpandResponseFilter.java:39) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:675) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:198) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:112)

    Atlassian JIRA | 7 years ago | Brydie McCoy [Atlassian]
    java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found.
  2. 0

    I started a brand new Bamboo Home (2.5). After running the setup wizard in Bamboo and running a few builds, I added a new plan status gadget to jira (4.0) and got the error below (see screen shot also). The error could also be seen when hitting the straight rest urls: http://localhost:8085/bamboo/rest/api/latest/build/SVN/DEF?expand=builds[0%3A9].build&max-results=10 I then stopped and started Bamboo and the resources were found happily and everything worked. Notifications are not affected (runs through similar code) just the REST calls. --------------- 2010-01-12 13:51:45,070 INFO [10084294@qtp-11642082-31] [AccessLogFilter] admin http://172.20.7.225:8085/bamboo/rest/api/latest/build/SVN/DEF2.json?expand=builds%5B0%3A9%5D.build&max-results=10&nocache=1263264704955 174430kb 2010-01-12 13:51:45,132 ERROR [9682830@qtp-11642082-30] [BambooFreemarkerManager] Error resolving template java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1464) at freemarker.core.Environment.getTemplateForImporting(Environment.java:1518) at freemarker.core.Environment.importLib(Environment.java:1503) at freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:843) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:419) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:260) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:236) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:305) at com.atlassian.bamboo.v2.build.trigger.DefaultTriggerReasonRenderer.getShortDescriptionHtml(DefaultTriggerReasonRenderer.java:40) at com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary.getReasonSummary(AbstractBuildResultsSummary.java:135) at com.atlassian.bamboo.plugins.rest.model.build.AbstractRestBuild.expand(AbstractRestBuild.java:145) at com.atlassian.bamboo.plugins.rest.model.build.RestBuild.expand(RestBuild.java:68) at com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:14) at com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:8) at com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander.expand(AbstractRecursiveEntityExpander.java:9) at com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:65) at com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:56) at com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94) at com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35) at com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:58) at com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:32) at com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94) at com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35) at com.atlassian.plugins.rest.common.expand.jersey.ExpandResponseFilter.filter(ExpandResponseFilter.java:39) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:675) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:198) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689) at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:112)

    Atlassian JIRA | 7 years ago | Brydie McCoy [Atlassian]
    java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found.
  3. 0

    similar to BAM-5197, the trigger is a build hang event notification. 2010-01-15 17:53:44,985 ERROR [BAM::Events:pool-1-thread-6] [BambooFreemarkerManager] Error resolving template java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1464) at freemarker.core.Environment.getTemplateForImporting(Environment.java:1518) at freemarker.core.Environment.importLib(Environment.java:1503) at freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:843) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:419) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:260) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:236) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:305) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.KillBuildNotification.renderContent(KillBuildNotification.java:94) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.KillBuildNotification.getTextEmailContent(KillBuildNotification.java:74) at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:59) at com.atlassian.bamboo.notification.NotificationDispatcher.dispatchNotifications(NotificationDispatcher.java:59) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.HungKillerServiceImpl.sendGlobalNotification(HungKillerServiceImpl.java:98) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.HungKillerServiceImpl.killHungBuild(HungKillerServiceImpl.java:72) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.HungEventListener.handleEvent(HungEventListener.java:39) at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:47) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:33) at java.lang.Thread.run(Thread.java:619)

    Atlassian JIRA | 7 years ago | Ulrich Kuhnhardt [Atlassian]
    java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    similar to BAM-5197, the trigger is a build hang event notification. 2010-01-15 17:53:44,985 ERROR [BAM::Events:pool-1-thread-6] [BambooFreemarkerManager] Error resolving template java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found. at freemarker.template.Configuration.getTemplate(Configuration.java:489) at freemarker.core.Environment.getTemplateForInclusion(Environment.java:1464) at freemarker.core.Environment.getTemplateForImporting(Environment.java:1518) at freemarker.core.Environment.importLib(Environment.java:1503) at freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:843) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) at freemarker.core.Environment.process(Environment.java:188) at freemarker.template.Template.process(Template.java:237) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:419) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:260) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:236) at com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:305) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.KillBuildNotification.renderContent(KillBuildNotification.java:94) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.KillBuildNotification.getTextEmailContent(KillBuildNotification.java:74) at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:59) at com.atlassian.bamboo.notification.NotificationDispatcher.dispatchNotifications(NotificationDispatcher.java:59) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.HungKillerServiceImpl.sendGlobalNotification(HungKillerServiceImpl.java:98) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.service.HungKillerServiceImpl.killHungBuild(HungKillerServiceImpl.java:72) at com.qualcomm.ems.alm.bamboo.plugin.buildkiller.HungEventListener.handleEvent(HungEventListener.java:39) at com.atlassian.bamboo.event.BambooEventManager$2.run(BambooEventManager.java:47) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:33) at java.lang.Thread.run(Thread.java:619)

    Atlassian JIRA | 7 years ago | Ulrich Kuhnhardt [Atlassian]
    java.io.FileNotFoundException: Template freemarker-lib/ui.ftl not found.

    Root Cause Analysis

    1. java.io.FileNotFoundException

      Template freemarker-lib/ui.ftl not found.

      at freemarker.template.Configuration.getTemplate()
    2. FreeMarker
      Template.process
      1. freemarker.template.Configuration.getTemplate(Configuration.java:489)
      2. freemarker.core.Environment.getTemplateForInclusion(Environment.java:1464)
      3. freemarker.core.Environment.getTemplateForImporting(Environment.java:1518)
      4. freemarker.core.Environment.importLib(Environment.java:1503)
      5. freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:843)
      6. freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835)
      7. freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835)
      8. freemarker.core.Environment.process(Environment.java:188)
      9. freemarker.template.Template.process(Template.java:237)
      9 frames
    3. com.atlassian.bamboo
      RestBuildExpander.expandInternal
      1. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:419)
      2. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:260)
      3. com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:236)
      4. com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:305)
      5. com.atlassian.bamboo.v2.build.trigger.DefaultTriggerReasonRenderer.getShortDescriptionHtml(DefaultTriggerReasonRenderer.java:40)
      6. com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary.getReasonSummary(AbstractBuildResultsSummary.java:135)
      7. com.atlassian.bamboo.plugins.rest.model.build.AbstractRestBuild.expand(AbstractRestBuild.java:145)
      8. com.atlassian.bamboo.plugins.rest.model.build.RestBuild.expand(RestBuild.java:68)
      9. com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:14)
      10. com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:8)
      10 frames
    4. com.atlassian.plugins
      ExpandResponseFilter.filter
      1. com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander.expand(AbstractRecursiveEntityExpander.java:9)
      2. com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:65)
      3. com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:56)
      4. com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94)
      5. com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35)
      6. com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:58)
      7. com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:32)
      8. com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94)
      9. com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35)
      10. com.atlassian.plugins.rest.common.expand.jersey.ExpandResponseFilter.filter(ExpandResponseFilter.java:39)
      10 frames
    5. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:675)
      2. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612)
      3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603)
      3 frames
    6. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
      2 frames
    7. com.atlassian.plugins
      RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter
      1. com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:198)
      1 frame
    8. Jersey
      ServletContainer.doFilter
      1. com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689)
      1 frame
    9. com.atlassian.plugins
      RestDelegatingServletFilter.doFilter
      1. com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:112)
      1 frame