com.atlassian.jira.issue.search.ClauseTooComplexSearchException: A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"}

Atlassian JIRA | Andrew Myers [Atlassian] | 8 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

    If i run a JQL search that is too general, then try to click on the "file attachments" link on an issue it dumps a stack trace {noformat} com.atlassian.jira.issue.search.ClauseTooComplexSearchException: A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"} at com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder.createLuceneQuery(DefaultLuceneQueryBuilder.java:38) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:151) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:276) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:110) at com.atlassian.jira.issue.pager.NextPreviousPager.populateDocIdsAndGetCurrentKeyPosition(NextPreviousPager.java:233) at com.atlassian.jira.issue.pager.NextPreviousPager.update(NextPreviousPager.java:162) at com.atlassian.jira.web.action.issue.ManageAttachments.doExecute(ManageAttachments.java:88) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) {noformat} *Screenshot*: User might encounter this, if he has watched a huge number of issues (> 200000) !watched.PNG!

    Atlassian JIRA | 8 years ago | Andrew Myers [Atlassian]
    com.atlassian.jira.issue.search.ClauseTooComplexSearchException: A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"}
  2. 0

    If i run a JQL search that is too general, then try to click on the "file attachments" link on an issue it dumps a stack trace {noformat} com.atlassian.jira.issue.search.ClauseTooComplexSearchException: A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"} at com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder.createLuceneQuery(DefaultLuceneQueryBuilder.java:38) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:151) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:276) at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:110) at com.atlassian.jira.issue.pager.NextPreviousPager.populateDocIdsAndGetCurrentKeyPosition(NextPreviousPager.java:233) at com.atlassian.jira.issue.pager.NextPreviousPager.update(NextPreviousPager.java:162) at com.atlassian.jira.web.action.issue.ManageAttachments.doExecute(ManageAttachments.java:88) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) {noformat} *Screenshot*: User might encounter this, if he has watched a huge number of issues (> 200000) !watched.PNG!

    Atlassian JIRA | 8 years ago | Andrew Myers [Atlassian]
    com.atlassian.jira.issue.search.ClauseTooComplexSearchException: A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"}

    Root Cause Analysis

    1. com.atlassian.jira.issue.search.ClauseTooComplexSearchException

      A the following query was too complex to generate a query from: {comment ~ "Unable to retrieve gadget xml. HTTP error 404"}

      at com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder.createLuceneQuery()
    2. com.atlassian.jira
      ManageAttachments.doExecute
      1. com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder.createLuceneQuery(DefaultLuceneQueryBuilder.java:38)
      2. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:151)
      3. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:276)
      4. com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:110)
      5. com.atlassian.jira.issue.pager.NextPreviousPager.populateDocIdsAndGetCurrentKeyPosition(NextPreviousPager.java:233)
      6. com.atlassian.jira.issue.pager.NextPreviousPager.update(NextPreviousPager.java:162)
      7. com.atlassian.jira.web.action.issue.ManageAttachments.doExecute(ManageAttachments.java:88)
      7 frames
    3. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    4. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:59)
      1 frame
    5. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:141)
      1 frame
    6. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:181)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      1 frame