com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData.

Atlassian JIRA | David Nicholson [Atlassian] | 2 years ago
  1. 0

    h3. Symptoms Clicking on a non-admin project view causes a 500 error, with stack trace: {noformat} com.atlassian.cache.CacheException: java.lang.IllegalArgumentException: QueryLiteral 'null' must contain at least one non-null value at com.atlassian.cache.memory.DelegatingCache$DelegatingLoadingCache.get(DelegatingCache.java:306) at com.atlassian.cache.compat.delegate.DelegatingCache.get(DelegatingCache.java:37) at com.atlassian.greenhopper.service.query.QueryToProjectMapper.getProjectContextIdsForQuery(QueryToProjectMapper.java:76) at com.atlassian.greenhopper.service.query.QueryServiceImpl.getProjectsForRapidView(QueryServiceImpl.java:114) at com.atlassian.greenhopper.service.query.QueryServiceImpl.getExplicitProjectsForRapidViewFilterQuery(QueryServiceImpl.java:101) at com.atlassian.greenhopper.service.rapid.ProjectRapidViewServiceImpl.findRapidViewsByProject(ProjectRapidViewServiceImpl.java:53) at com.atlassian.greenhopper.web.sidebar.ProjectBoardsHelper.getProjectBoards(ProjectBoardsHelper.java:53) at com.atlassian.greenhopper.web.sidebar.BoardScopeFilterContextProviderImpl.getContext(BoardScopeFilterContextProviderImpl.java:34) at com.atlassian.greenhopper.web.sidebar.AgileBoardScopeFilterContextProvider.getContext(AgileBoardScopeFilterContextProvider.java:27) at com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:77) at com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:44) at com.atlassian.jira.projects.page.ProjectPageServlet.getPluginProvidedDefaultPage(ProjectPageServlet.java:166) at com.atlassian.jira.projects.page.ProjectPageServlet.selectItemToRender(ProjectPageServlet.java:121) at com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:97) {noformat} Also: {noformat} com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData. com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData. at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118) {noformat} h3. Steps to reproduce (this might be specific to JIRA Agile) # create cascading select and associate it to projects/issues # Create a filter that includes <fieldname> in cascadeOption(None) # Base Agile board on this filter # Everything breaks (trying to view any project will fail) h3. Workaround Delete offending filter, do not use cascadeOption(None) in JQL queries

    Atlassian JIRA | 2 years ago | David Nicholson [Atlassian]
    com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData.
  2. 0

    h3. Symptoms Clicking on a non-admin project view causes a 500 error, with stack trace: {noformat} com.atlassian.cache.CacheException: java.lang.IllegalArgumentException: QueryLiteral 'null' must contain at least one non-null value at com.atlassian.cache.memory.DelegatingCache$DelegatingLoadingCache.get(DelegatingCache.java:306) at com.atlassian.cache.compat.delegate.DelegatingCache.get(DelegatingCache.java:37) at com.atlassian.greenhopper.service.query.QueryToProjectMapper.getProjectContextIdsForQuery(QueryToProjectMapper.java:76) at com.atlassian.greenhopper.service.query.QueryServiceImpl.getProjectsForRapidView(QueryServiceImpl.java:114) at com.atlassian.greenhopper.service.query.QueryServiceImpl.getExplicitProjectsForRapidViewFilterQuery(QueryServiceImpl.java:101) at com.atlassian.greenhopper.service.rapid.ProjectRapidViewServiceImpl.findRapidViewsByProject(ProjectRapidViewServiceImpl.java:53) at com.atlassian.greenhopper.web.sidebar.ProjectBoardsHelper.getProjectBoards(ProjectBoardsHelper.java:53) at com.atlassian.greenhopper.web.sidebar.BoardScopeFilterContextProviderImpl.getContext(BoardScopeFilterContextProviderImpl.java:34) at com.atlassian.greenhopper.web.sidebar.AgileBoardScopeFilterContextProvider.getContext(AgileBoardScopeFilterContextProvider.java:27) at com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:77) at com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:44) at com.atlassian.jira.projects.page.ProjectPageServlet.getPluginProvidedDefaultPage(ProjectPageServlet.java:166) at com.atlassian.jira.projects.page.ProjectPageServlet.selectItemToRender(ProjectPageServlet.java:121) at com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:97) {noformat} Also: {noformat} com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData. com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData. at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118) {noformat} h3. Steps to reproduce (this might be specific to JIRA Agile) # create cascading select and associate it to projects/issues # Create a filter that includes <fieldname> in cascadeOption(None) # Base Agile board on this filter # Everything breaks (trying to view any project will fail) h3. Workaround Delete offending filter, do not use cascadeOption(None) in JQL queries

    Atlassian JIRA | 2 years ago | David Nicholson [Atlassian]
    com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData.
  3. 0

    h3. Summary If a JIRA Project is linked to a Confluence space and the JIRA Project Key is mentioned in a Confluence page, this page will be shown in the Activity Stream. If the page shown on the activity stream contains the Page Properties Report macro, it will instead display an error message. h3. Steps to Reproduce # Create a JIRA Project and Confluence Space # Use the Project Links to link the two together # Create a Confluence page with the a *Page Properties Macro* # Give this page the Label 'example' # Create a new Confluence page and add a "Page Properties Report" referencing the Label 'example' # Also add the JIRA Project key to the page body. # Save the page # Create an Issue in the JIRA project and open the 'Activity Tab' h3. Expected Results Your page will be shown normally h3. Actual Results Instead of the page rendered the activity tab will show the following: {noformat} Error: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null) {noformat} The Confluence logs show the full error: {noformat} com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null) @4000000055b0bb120346302c at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:65) @4000000055b0bb1203463414 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) @4000000055b0bb1203463be4 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) @4000000055b0bb120346479c at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:43) @4000000055b0bb1203464b84 at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.render(DefaultRenderer.java:114) @4000000055b0bb1203464f6c at com.atlassian.confluence.content.render.xhtml.DeviceTypeAwareRenderer.render(DeviceTypeAwareRenderer.java:56) @4000000055b0bb1203465354 at sun.reflect.GeneratedMethodAccessor721.invoke(Unknown Source) @4000000055b0bb120346573c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000055b0bb120346573c at java.lang.reflect.Method.invoke(Method.java:483) ... @4000000055b0bb1203486a7c Caused by: com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) @4000000055b0bb1203487a1c at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) @4000000055b0bb1203488da4 at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) @4000000055b0bb1203488da4 at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118) @4000000055b0bb120348918c at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) @4000000055b0bb120348918c at sun.reflect.GeneratedMethodAccessor796.invoke(Unknown Source) @4000000055b0bb120348a8fc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000055b0bb120348a8fc at java.lang.reflect.Method.invoke(Method.java:483) {noformat} h3. Notes Because of [STRM-2274|https://ecosystem.atlassian.net/browse/STRM-2274] any page referencing the Project key will be shown inside the Activity tab of each issue in the project. h3.Workaround No workaround at the moment.

    Atlassian JIRA | 1 year ago | Ivan Maduro
    com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) @4000000055b0bb1203487a1c at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Summary If a JIRA Project is linked to a Confluence space and the JIRA Project Key is mentioned in a Confluence page, this page will be shown in the Activity Stream. If the page shown on the activity stream contains the Page Properties Report macro, it will instead display an error message. h3. Steps to Reproduce # Create a JIRA Project and Confluence Space # Use the Project Links to link the two together # Create a Confluence page with the a *Page Properties Macro* # Give this page the Label 'example' # Create a new Confluence page and add a "Page Properties Report" referencing the Label 'example' # Also add the JIRA Project key to the page body. # Save the page # Create an Issue in the JIRA project and open the 'Activity Tab' h3. Expected Results Your page will be shown normally h3. Actual Results Instead of the page rendered the activity tab will show the following: {noformat} Error: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null) {noformat} The Confluence logs show the full error: {noformat} com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null) @4000000055b0bb120346302c at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:65) @4000000055b0bb1203463414 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) @4000000055b0bb1203463be4 at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:38) @4000000055b0bb120346479c at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:43) @4000000055b0bb1203464b84 at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.render(DefaultRenderer.java:114) @4000000055b0bb1203464f6c at com.atlassian.confluence.content.render.xhtml.DeviceTypeAwareRenderer.render(DeviceTypeAwareRenderer.java:56) @4000000055b0bb1203465354 at sun.reflect.GeneratedMethodAccessor721.invoke(Unknown Source) @4000000055b0bb120346573c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000055b0bb120346573c at java.lang.reflect.Method.invoke(Method.java:483) ... @4000000055b0bb1203486a7c Caused by: com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) @4000000055b0bb1203487a1c at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) @4000000055b0bb1203488da4 at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) @4000000055b0bb1203488da4 at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118) @4000000055b0bb120348918c at com.atlassian.soy.impl.DefaultSoyTemplateRenderer.render(DefaultSoyTemplateRenderer.java:52) @4000000055b0bb120348918c at sun.reflect.GeneratedMethodAccessor796.invoke(Unknown Source) @4000000055b0bb120348a8fc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000055b0bb120348a8fc at java.lang.reflect.Method.invoke(Method.java:483) {noformat} h3. Notes Because of [STRM-2274|https://ecosystem.atlassian.net/browse/STRM-2274] any page referencing the Project key will be shown inside the Activity tab of each issue in the project. h3.Workaround No workaround at the moment.

    Atlassian JIRA | 1 year ago | Ivan Maduro
    com.google.template.soy.tofu.SoyTofuException: In template Confluence.Templates.Macro.MasterDetail.contentLink2: When evaluating "contextPath()": Error while computing function "contextPath()": null @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) @4000000055b0bb1203487634 at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) @4000000055b0bb1203487a1c at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
  6. 0

    Open https://jira.spring.io/browse/DATAREST while you are not logged in. I see, error 500 and: {noformat} Technical details Log's referral number: d043369a-e5db-44f0-abc1-b8c402ff6960 Cause Referer URL: Unknown com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: In 'print' tag, expression "$projectAvatarUrl" evaluates to undefined. com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: In 'print' tag, expression "$projectAvatarUrl" evaluates to undefined. at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341) at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300) at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56) at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427) at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:111) at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:40) at com.atlassian.soy.impl.SoyTemplateRendererImpl.render(SoyTemplateRendererImpl.java:33) at com.atlassian.jira.web.dispatcher.JiraSoyViewDispatcher.dispatch(JiraSoyViewDispatcher.java:36) at com.atlassian.jira.web.dispatcher.JiraWebworkViewDispatcher.dispatchViaSoyView(JiraWebworkViewDispatcher.java:148) at com.atlassian.jira.web.dispatcher.JiraWebworkViewDispatcher.dispatchView(JiraWebworkViewDispatcher.java:65) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:204) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) {noformat} Probably some configuration issue as it all works after I log in.

    Spring JIRA | 2 years ago | Neeme Praks
    com.google.template.soy.tofu.SoyTofuException: In template JIRA.Templates.Projects.browseTabs: In 'print' tag, expression "$projectAvatarUrl" evaluates to undefined.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.google.template.soy.tofu.SoyTofuException

      In template JIRA.Templates.Projects.browseTabs: When evaluating "length($operationLinks)": Error while computing function "length($operationLinks)": Argument to length() function is not SoyListData.

      at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper()
    2. com.google.template
      BaseTofu$RendererImpl.render
      1. com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:341)
      2. com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:300)
      3. com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:56)
      4. com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:427)
      4 frames
    3. com.atlassian.soy
      DefaultSoyManager.render
      1. com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:118)
      1 frame