com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources

Atlassian JIRA | Wayne Wong [Atlassian] | 1 year ago
  1. 0

    h3. Summary Vanilla installation of Confluence Team Calendars plugin (tested on version 5.2.18 and 5.3.4) on Confluence version 5.8.14 and above resulted in spurious warnings thrown in {{atlassian-confluence.log}}. h3. Steps to Reproduce # Install Confluence 5.8.14 and above # Install Team Calendar plugin on your Confluence instance # In Web Browser access the Team Calendar by navigating to {{http://<ServerBaseURL>/calendar/mycalendar.action}}. h3. Expected Results No spurious warnings shown in the {{atlassian-confluence.log}}. h3. Actual Results The below exception is thrown in the {{atlassian-confluence.log}} file: {noformat} 2015-10-27 17:26:17,216 WARN [http-nio-8090-exec-10] [confluence.plugins.soy.VelocityFriendlySoyTemplateRenderer] getRenderedTemplateHtml Error while render ing the template com.atlassian.confluence.extra.team-calendars:calendar-resources:Confluence.TeamCalendars.Templates.calendarTourContent.soy -- referer: http://localhost:8090/calendar/mycalendar.action | url: /calendar/mycalendar.action | userName: admin | action: mycalendar com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:61) at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:31) at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:27) at sun.reflect.GeneratedMethodAccessor662.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:117) at com.sun.proxy.$Proxy493.renderTo(Unknown Source) at sun.reflect.GeneratedMethodAccessor662.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) ... Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:125) at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) at sun.reflect.GeneratedMethodAccessor734.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3970) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4834) at com.google.common.cache.LocalCache$LocalManualCache.getUnchecked(LocalCache.java:4839) {noformat} h6. Notes This issue does not affect Confluence 5.8.13, 5.8.10 nor Confluence version 5.7.5.

    Atlassian JIRA | 1 year ago | Lauretha Rura [Atlassian]
    com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources
  2. 0

    *Steps to replicate* h2.First Symptom # Install confluence 5.8.14 # Create an application link to JIRA 6 (tested with Jira 6.2.7, 6.4.9) and JIRA 7 (tested with JIRA 7.0.5) # Create a Jira Report - Changelog with Jira sample project *Expected Behavior* Report created successfully *Actual Behavior* !newbug.JPG|thumbnail! Similar trace like below can be found in the log: {noformat} 2015-10-21 23:31:58,358 ERROR [http-nio-5814-exec-2] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action -- referer: http://10.60.2.148:5814/plugins/createcontent/draft-createpage.action?draftId=360457 | url: /plugins/createcontent/docreatepage.action | userName: admin com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.plugins.confluence-software-blueprints:jirareports-resources at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:61) at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:31) at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:27) at sun.reflect.GeneratedMethodAccessor683.invoke(Unknown Source) ... at com.atlassian.confluence.plugins.SoftwareBlueprintsContextProviderHelper.renderFromSoy(SoftwareBlueprintsContextProviderHelper.java:62) at com.atlassian.confluence.plugins.jirareports.JiraReportsIndexContextProvider.getCreateFromTemplateMacro(JiraReportsIndexContextProvider.java:32) at com.atlassian.confluence.plugins.jirareports.JiraReportsIndexContextProvider.updateBlueprintContext(JiraReportsIndexContextProvider.java:22) at com.atlassian.confluence.plugins.createcontent.api.contextproviders.AbstractBlueprintContextProvider.getContextMap(AbstractBlueprintContextProvider.java:46) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintContentGenerator.getContentTemplateContext(DefaultBlueprintContentGenerator.java:207) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintContentGenerator.createIndexPageObject(DefaultBlueprintContentGenerator.java:238) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintContentGenerator.createIndexPageObject(DefaultBlueprintContentGenerator.java:232) at com.atlassian.confluence.plugins.createcontent.actions.DefaultIndexPageManager.createIndexPageObject(DefaultIndexPageManager.java:189) at com.atlassian.confluence.plugins.createcontent.actions.DefaultIndexPageManager.createIndexPage(DefaultIndexPageManager.java:109) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintManager.createAndPinIndexPage(DefaultBlueprintManager.java:145) at com.atlassian.confluence.plugins.createcontent.actions.AbstractCreateBlueprintPageAction.getOrCreateIndexPage(AbstractCreateBlueprintPageAction.java:81) at com.atlassian.confluence.plugins.createcontent.actions.CreateAndEditAction.beforeAdd(CreateAndEditAction.java:137) at com.atlassian.confluence.pages.actions.CreatePageAction.doAdd(CreatePageAction.java:104) ... Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.confluence.plugins.confluence-software-blueprints:jirareports-resources at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:125) at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) at sun.reflect.GeneratedMethodAccessor703.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) ... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3970) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4834) ... Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:110) at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:115) ... {noformat} Full log: [^atlassian-confluence.log] h2.Second Symptom (i) Tracked under [CONF-39694|https://jira.atlassian.com/browse/CONF-39694] # Install Confluence 5.8.14 # Install Team Calendar 5.3.4 # In Web Browser access the Team Calendar {{$Confluence_URL/calendar/mycalendar.action}} In the atlassian-confluence.log the following traces can be found: {noformat} 2015-10-26 23:12:59,565 WARN [http-nio-9514-exec-1] [confluence.plugins.soy.VelocityFriendlySoyTemplateRenderer] getRenderedTemplateHtml Error while rendering the template com.atlassian.confluence.extra.team-calendars:calendar-resources:Confluence.TeamCalendars.Templates.calendarTourContent.soy -- referer: http://localhost:9514/conf5814/plugins/servlet/upm?unlicensed=false& | url: /conf5814/calendar/mycalendar.action | userName: admin | action: mycalendar com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:61) at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:31) at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:27) ... Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:125) at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3970) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) ... Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:110) at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) {noformat} Full log: [^atlassian-confluenceTC.log] h3. Extra Note This issue does not affect Confluence 5.8.10

    Atlassian JIRA | 1 year ago | Wayne Wong [Atlassian]
    com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources
  3. 0

    *Steps to replicate* h2.First Symptom # Install confluence 5.8.14 # Create an application link to JIRA 6 (tested with Jira 6.2.7, 6.4.9) and JIRA 7 (tested with JIRA 7.0.5) # Create a Jira Report - Changelog with Jira sample project *Expected Behavior* Report created successfully *Actual Behavior* !newbug.JPG|thumbnail! Similar trace like below can be found in the log: {noformat} 2015-10-21 23:31:58,358 ERROR [http-nio-5814-exec-2] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action -- referer: http://10.60.2.148:5814/plugins/createcontent/draft-createpage.action?draftId=360457 | url: /plugins/createcontent/docreatepage.action | userName: admin com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.plugins.confluence-software-blueprints:jirareports-resources at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:61) at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:31) at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:27) at sun.reflect.GeneratedMethodAccessor683.invoke(Unknown Source) ... at com.atlassian.confluence.plugins.SoftwareBlueprintsContextProviderHelper.renderFromSoy(SoftwareBlueprintsContextProviderHelper.java:62) at com.atlassian.confluence.plugins.jirareports.JiraReportsIndexContextProvider.getCreateFromTemplateMacro(JiraReportsIndexContextProvider.java:32) at com.atlassian.confluence.plugins.jirareports.JiraReportsIndexContextProvider.updateBlueprintContext(JiraReportsIndexContextProvider.java:22) at com.atlassian.confluence.plugins.createcontent.api.contextproviders.AbstractBlueprintContextProvider.getContextMap(AbstractBlueprintContextProvider.java:46) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintContentGenerator.getContentTemplateContext(DefaultBlueprintContentGenerator.java:207) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintContentGenerator.createIndexPageObject(DefaultBlueprintContentGenerator.java:238) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintContentGenerator.createIndexPageObject(DefaultBlueprintContentGenerator.java:232) at com.atlassian.confluence.plugins.createcontent.actions.DefaultIndexPageManager.createIndexPageObject(DefaultIndexPageManager.java:189) at com.atlassian.confluence.plugins.createcontent.actions.DefaultIndexPageManager.createIndexPage(DefaultIndexPageManager.java:109) at com.atlassian.confluence.plugins.createcontent.actions.DefaultBlueprintManager.createAndPinIndexPage(DefaultBlueprintManager.java:145) at com.atlassian.confluence.plugins.createcontent.actions.AbstractCreateBlueprintPageAction.getOrCreateIndexPage(AbstractCreateBlueprintPageAction.java:81) at com.atlassian.confluence.plugins.createcontent.actions.CreateAndEditAction.beforeAdd(CreateAndEditAction.java:137) at com.atlassian.confluence.pages.actions.CreatePageAction.doAdd(CreatePageAction.java:104) ... Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.confluence.plugins.confluence-software-blueprints:jirareports-resources at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:125) at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) at sun.reflect.GeneratedMethodAccessor703.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) ... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3970) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4834) ... Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:110) at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:115) ... {noformat} Full log: [^atlassian-confluence.log] h2.Second Symptom (i) Tracked under [CONF-39694|https://jira.atlassian.com/browse/CONF-39694] # Install Confluence 5.8.14 # Install Team Calendar 5.3.4 # In Web Browser access the Team Calendar {{$Confluence_URL/calendar/mycalendar.action}} In the atlassian-confluence.log the following traces can be found: {noformat} 2015-10-26 23:12:59,565 WARN [http-nio-9514-exec-1] [confluence.plugins.soy.VelocityFriendlySoyTemplateRenderer] getRenderedTemplateHtml Error while rendering the template com.atlassian.confluence.extra.team-calendars:calendar-resources:Confluence.TeamCalendars.Templates.calendarTourContent.soy -- referer: http://localhost:9514/conf5814/plugins/servlet/upm?unlicensed=false& | url: /conf5814/calendar/mycalendar.action | userName: admin | action: mycalendar com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:61) at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:31) at com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:27) ... Caused by: com.atlassian.soy.renderer.SoyException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:125) at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2234) at com.google.common.cache.LocalCache.get(LocalCache.java:3970) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3974) ... Caused by: java.lang.IllegalStateException: Required plugin module com.atlassian.applinks.applinks-plugin:lodash-jslibs was either missing or disabled at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:110) at com.atlassian.soy.impl.WebResourceTemplateSetFactory$TemplateSetBuilder.addTemplatesForTree(WebResourceTemplateSetFactory.java:125) {noformat} Full log: [^atlassian-confluenceTC.log] h3. Extra Note This issue does not affect Confluence 5.8.10

    Atlassian JIRA | 1 year ago | Wayne Wong [Atlassian]
    com.atlassian.confluence.renderer.template.TemplateRenderingException: Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.confluence.renderer.template.TemplateRenderingException

      Unable to compile Soy templates at: com.atlassian.confluence.extra.team-calendars:calendar-resources

      at com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo()
    2. com.atlassian.confluence
      DelegatingTemplateRenderer.renderTo
      1. com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:61)
      2. com.atlassian.confluence.plugins.soy.ConfluenceSoyTemplateRenderer.renderTo(ConfluenceSoyTemplateRenderer.java:31)
      3. com.atlassian.confluence.renderer.template.DelegatingTemplateRenderer.renderTo(DelegatingTemplateRenderer.java:27)
      3 frames