Project: bamboo
Issue BAM-5197: Bamboo Rest calls cannot find resources directly after install
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. freemarker.template.Configuration.getTemplate(Configuration.java:489) freemarker.core.Environment.getTemplateForInclusion(Environment.java:1464) freemarker.core.Environment.getTemplateForImporting(Environment.java:1518) freemarker.core.Environment.importLib(Environment.java:1503) freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:843) freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:835) freemarker.core.Environment.process(Environment.java:188) freemarker.template.Template.process(Template.java:237) com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPageWithNoContext(BambooFreemarkerManager.java:419) com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:260) com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderPage(BambooFreemarkerManager.java:236) com.atlassian.bamboo.ww2.BambooFreemarkerManager.render(BambooFreemarkerManager.java:305) com.atlassian.bamboo.v2.build.trigger.DefaultTriggerReasonRenderer.getShortDescriptionHtml(DefaultTriggerReasonRenderer.java:40) com.atlassian.bamboo.resultsummary.AbstractBuildResultsSummary.getReasonSummary(AbstractBuildResultsSummary.java:135) com.atlassian.bamboo.plugins.rest.model.build.AbstractRestBuild.expand(AbstractRestBuild.java:145) com.atlassian.bamboo.plugins.rest.model.build.RestBuild.expand(RestBuild.java:68) com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:14) com.atlassian.bamboo.plugins.rest.model.build.RestBuildExpander.expandInternal(RestBuildExpander.java:8) com.atlassian.plugins.rest.common.expand.AbstractRecursiveEntityExpander.expand(AbstractRecursiveEntityExpander.java:9) com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:65) com.atlassian.plugins.rest.common.expand.resolver.CollectionEntityExpanderResolver$ListExpander.expand(CollectionEntityExpanderResolver.java:56) com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94) com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35) com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:58) com.atlassian.plugins.rest.common.expand.resolver.ListWrapperEntityExpanderResolver$ListWrapperEntityExpander.expand(ListWrapperEntityExpanderResolver.java:32) com.atlassian.plugins.rest.common.expand.EntityCrawler.expandFields(EntityCrawler.java:94) com.atlassian.plugins.rest.common.expand.EntityCrawler.crawl(EntityCrawler.java:35) com.atlassian.plugins.rest.common.expand.jersey.ExpandResponseFilter.filter(ExpandResponseFilter.java:39) com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:675) com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:612) com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:603) com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309) com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:198) com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:689) com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:112)
Story points: 3