com.atlassian.cache.CacheException: java.lang.IllegalArgumentException: QueryLiteral 'null' must contain at least one non-null value

Atlassian JIRA | David Nicholson [Atlassian] | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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.atlassian.cache.CacheException: java.lang.IllegalArgumentException: QueryLiteral 'null' must contain at least one non-null value
  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.atlassian.cache.CacheException: java.lang.IllegalArgumentException: QueryLiteral 'null' must contain at least one non-null value

    1 unregistered visitors

    Root Cause Analysis

    1. 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()
    2. com.atlassian.cache
      DelegatingCache.get
      1. com.atlassian.cache.memory.DelegatingCache$DelegatingLoadingCache.get(DelegatingCache.java:306)
      2. com.atlassian.cache.compat.delegate.DelegatingCache.get(DelegatingCache.java:37)
      2 frames
    3. com.atlassian.greenhopper
      AgileBoardScopeFilterContextProvider.getContext
      1. com.atlassian.greenhopper.service.query.QueryToProjectMapper.getProjectContextIdsForQuery(QueryToProjectMapper.java:76)
      2. com.atlassian.greenhopper.service.query.QueryServiceImpl.getProjectsForRapidView(QueryServiceImpl.java:114)
      3. com.atlassian.greenhopper.service.query.QueryServiceImpl.getExplicitProjectsForRapidViewFilterQuery(QueryServiceImpl.java:101)
      4. com.atlassian.greenhopper.service.rapid.ProjectRapidViewServiceImpl.findRapidViewsByProject(ProjectRapidViewServiceImpl.java:53)
      5. com.atlassian.greenhopper.web.sidebar.ProjectBoardsHelper.getProjectBoards(ProjectBoardsHelper.java:53)
      6. com.atlassian.greenhopper.web.sidebar.BoardScopeFilterContextProviderImpl.getContext(BoardScopeFilterContextProviderImpl.java:34)
      7. com.atlassian.greenhopper.web.sidebar.AgileBoardScopeFilterContextProvider.getContext(AgileBoardScopeFilterContextProvider.java:27)
      7 frames
    4. com.atlassian.jira
      ProjectPageServlet.doGet
      1. com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:77)
      2. com.atlassian.jira.projects.context.ProjectContextPopulator.populateWithProject(ProjectContextPopulator.java:44)
      3. com.atlassian.jira.projects.page.ProjectPageServlet.getPluginProvidedDefaultPage(ProjectPageServlet.java:166)
      4. com.atlassian.jira.projects.page.ProjectPageServlet.selectItemToRender(ProjectPageServlet.java:121)
      5. com.atlassian.jira.projects.page.ProjectPageServlet.doGet(ProjectPageServlet.java:97)
      5 frames