java.lang.IllegalArgumentException: Null space key in spaces list

Atlassian JIRA | Ivan Benko [Atlassian] | 9 years ago
  1. 0

    [CONF-12711] Searches throw IllegalArgumentException when indexing language is French - Atlassian JIRA

    atlassian.com | 8 months ago
    java.lang.IllegalArgumentException: Invalid query params specified: [com.atlassian.confluence.search.service.SearchQueryParameters@431dca [query=1,category=conf_all,spaceKeys=<null>,contentType=<null>,lastModified=<null>,contributor=<null>]] produced an invalid search query.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Steps to reproduce: # Configure French as indexing language # Rebuild the search index # Perform a search The following stack trace will be returned: {noformat} 2008-08-08 11:14:16,187 ERROR [http-8290-Processor1] [opensymphony.webwork.dispatcher.ServletDispatcher] serviceAction Could not execute action -- url: /dosearchsite.action | userName: admin java.lang.IllegalArgumentException: Invalid query params specified: [com.atlassian.confluence.search.service.SearchQueryParameters@431dca [query=1,category=conf_all,spaceKeys=<null>,contentType=<null>,lastModified=<null>,contributor=<null>]] produced an invalid search query. at com.atlassian.confluence.search.service.DefaultSearchService.search(DefaultSearchService.java:57) at com.atlassian.confluence.search.actions.SearchSiteAction.execute(SearchSiteAction.java:215) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) .... Caused by: java.lang.IllegalArgumentException: Invalid search query found in specified search. at com.atlassian.confluence.search.v2.lucene.LuceneSearchManager.search(LuceneSearchManager.java:74) at com.atlassian.confluence.search.service.DefaultSearchService.search(DefaultSearchService.java:53) ... 112 more Caused by: java.lang.IllegalArgumentException: fieldName must not be null at org.apache.lucene.analysis.fr.FrenchAnalyzer.tokenStream(FrenchAnalyzer.java:136) at com.atlassian.confluence.search.lucene.ConfluenceAnalyzer.tokenStream(ConfluenceAnalyzer.java:57) at org.apache.lucene.analysis.PerFieldAnalyzerWrapper.tokenStream(PerFieldAnalyzerWrapper.java:75) at com.atlassian.confluence.search.v2.lucene.LuceneSearchManager.getSearchWords(LuceneSearchManager.java:86) at com.atlassian.confluence.search.v2.lucene.LuceneSearchManager.search(LuceneSearchManager.java:67) ... 113 more {noformat} Note that other indexing languages are not affected by this problem.

    Atlassian JIRA | 8 years ago | Azwandi Aris [Atlassian]
    java.lang.IllegalArgumentException: Invalid query params specified: [com.atlassian.confluence.search.service.SearchQueryParameters@431dca [query=1,category=conf_all,spaceKeys=<null>,contentType=<null>,lastModified=<null>,contributor=<null>]] produced an invalid search query.

    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. java.lang.IllegalArgumentException

      Null space key in spaces list

      at com.atlassian.confluence.search.v2.query.InSpaceQuery.<init>()
    2. com.atlassian.confluence
      SearchSiteAction.execute
      1. com.atlassian.confluence.search.v2.query.InSpaceQuery.<init>(InSpaceQuery.java:39)
      2. com.atlassian.confluence.search.v2.DefaultPredefinedQueryBuilder.siteSearchQuery(DefaultPredefinedQueryBuilder.java:40)
      3. com.atlassian.confluence.search.actions.SearchSiteAction.execute(SearchSiteAction.java:139)
      3 frames
    3. XWork Tiger Extensions
      DefaultActionInvocation.invoke
      1. com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)
      1 frame
    4. com.opensymphony.xwork
      AroundInterceptor.intercept
      1. com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
      1 frame