Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-12972

Updating JIRA Software causes a NullPointerException and breaks the quick search

    XMLWordPrintable

Details

    Description

      Summary

      Upgrading JIRA Software can cause the below exception in certain situations, stopping the use of the Issue Navigator. This apppears to be due to workflow names being changed, without the cache being updated.

      2015-12-09 15:41:58,893 http-nio-8091-exec-8 ERROR TechTime 941x3049x1 tbpi1v 192.168.32.25 /secure/QuickSearch.jspa [o.a.c.c.C.[.[localhost].[/].[action]] Servlet.service() for servlet action threw exception
      java.lang.NullPointerException
      	at com.atlassian.jira.issue.search.searchers.renderer.StatusSearchRenderer.getSelectListOptions(StatusSearchRenderer.java:67)
      	at com.atlassian.jira.issue.search.searchers.renderer.IssueConstantsSearchRenderer.getEditHtml(IssueConstantsSearchRenderer.java:51)
      	at com.atlassian.jira.components.query.DefaultSearcherService.getEditHtml(DefaultSearcherService.java:474)
      	at com.atlassian.jira.components.query.DefaultSearcherService.getValueResults(DefaultSearcherService.java:260)
      	at com.atlassian.jira.components.query.DefaultSearcherService.getSearchResults(DefaultSearcherService.java:181)
      	at com.atlassian.jira.components.query.DefaultSearcherService.searchWithJql(DefaultSearcherService.java:175)
      	... 3 filtered
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
      	at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
      	at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
      	at com.sun.proxy.$Proxy2435.searchWithJql(Unknown Source)
      	at com.atlassian.jira.plugin.issuenav.IssueNavAction.performSearch(IssueNavAction.java:1261)
      	at com.atlassian.jira.plugin.issuenav.IssueNavAction.doNav(IssueNavAction.java:427)
      	at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:271)
      	... 3 filtered
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      	at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      	... 2 filtered
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
      	... 7 filtered
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      	... 122 filtered
      	at com.atlassian.jira.plugin.issuenav.IssueNavRewriteFilter.doFilter(IssueNavRewriteFilter.java:101)
      	... 86 filtered
      	at com.atlassian.jira.plugin.issuenav.KickassRedirectFilter.doFilter(KickassRedirectFilter.java:151)
      	... 33 filtered
      	at com.atlassian.jira.plugin.issuenav.LegacyTextQueryUrlRedirectFilter.doFilter(LegacyTextQueryUrlRedirectFilter.java:43)
      	... 15 filtered
      	at com.atlassian.jira.web.action.issue.QuickSearch.sendInternalRedirect(QuickSearch.java:50)
      	at com.atlassian.jira.web.action.issue.QuickSearch.doExecute(QuickSearch.java:43)
      	... 1 filtered
      	at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)
      	... 7 filtered
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
      	... 55 filtered
      	at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59)
      	... 151 filtered
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

      Steps to Reproduce

      1. Install JIRA Core.
      2. Restore an XML backup that contains 'Agile Simplied Workflow's.
      3. Perform a quick search in JIRA Core.
      4. Go to versions & licenses and install JIRA Software.
      5. Perform a quick search.

      Expected Results

      The search returns the normal, expected results.

      Actual Results

      The exception above is thrown and breaks searching.

      Workaround

      Restart JIRA, and the cache will be reset.

      Attachments

        Activity

          People

            bmccoy bmccoy
            tkanafa Tomasz Kanafa
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: