Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-36987

Using Date Picker Custom Field causes Internal Server Error on Time Since Chart gadget

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      Steps to Reproduce
      • Create a Date Picker custom field and assign it to the Default Screen:
      • Create a few issues in the project and ensure that the value for the Date Picker is included too:
      • Add the Time Since Chart into the Dashboard and ensure that the Date Picker custom field is chosen for the Date Field option:
      • You will encounter the An internal server error occurred when requesting resource when you click on the Save button:

      Full stack trace that appears on the atlassian-jira.log:

      2014-01-30 17:45:58,653 http-bio-8617-exec-15 ERROR admin 1065x1264x1 tlc1gt 0:0:0:0:0:0:0:1 /rest/gadget/1.0/timeSince/generate [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service
      java.lang.NullPointerException
      	at com.atlassian.jira.charts.TimeSinceChart$GenericDateFieldIssuesHitCollector.collect(TimeSinceChart.java:239)
      	at com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector.collect(FieldableDocumentHitCollector.java:40)
      	at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:572)
      	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:532)
      	at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320)
      	at com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:153)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:342)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:141)
      	at com.atlassian.jira.charts.TimeSinceChart.generateChart(TimeSinceChart.java:105)
      	at com.atlassian.jira.charts.DefaultChartFactory.generateTimeSinceChart(DefaultChartFactory.java:133)  <+3> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      	at $Proxy464.generateTimeSinceChart(Unknown Source)  <+3> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      	at $Proxy464.generateTimeSinceChart(Unknown Source)
      	at com.atlassian.jira.gadgets.system.TimeSinceChartResource.generateChart(TimeSinceChartResource.java:127)  <+3> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)  <+19> (DispatchProviderHelper.java:234) (DispatchProviderHelper.java:100) (DefaultMethodInvocation.java:61) (ExpandInterceptor.java:38) (DefaultMethodInvocation.java:61) (DispatchProviderHelper.java:132) (DispatchProviderHelper.java:230) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537)
      	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)  <+1> (ServletContainer.java:795)
      	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:73)  <+16> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (RestServletUtilsUpdaterFilter.java:26) (RestServletUtilsUpdaterFilter.java:40) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (ContextFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.plugins.cors.CorsFilter.doFilter(CorsFilter.java:65)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(PrettyUrlsDispatcherFilter.java:60)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter.doFilter(PrettyUrlsSiteMeshFilter.java:92)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsMatcherFilter.doFilter(PrettyUrlsMatcherFilter.java:56)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)  <+18> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AccessLogFilter.java:103) (AccessLogFilter.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XsrfTokenAdditionRequestFilter.java:54) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)  <+22> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (SecurityFilter.java:234) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (TrustedApplicationsFilter.java:100) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (BaseLoginFilter.java:169) (JiraLoginFilter.java:70) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66) (OAuthFilter.java:55) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:40)  <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)  <+9> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractJohnsonFilter.java:71) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210)
      	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
      	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)  <+10> (UrlRewriteFilter.java:394) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (GzipFilter.java:74) (GzipFilter.java:51) (JiraGzipFilter.java:55) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)
      	at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61)  <+41> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66) (JWDSendRedirectFilter.java:25) (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:45) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (JiraStartupChecklistFilter.java:78) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (JiraFirstFilter.java:57) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (StandardWrapperValve.java:225) (StandardContextValve.java:123) (AuthenticatorBase.java:472) (StandardHostValve.java:168) (ErrorReportValve.java:98) (StandardEngineValve.java:118) (AccessLogValve.java:927) (CoyoteAdapter.java:407) (AbstractHttp11Processor.java:1001) (AbstractProtocol.java:585) (JIoEndpoint.java:312)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

        1. date_picker_1.JPG
          date_picker_1.JPG
          15 kB
        2. date_picker_2.JPG
          date_picker_2.JPG
          57 kB
        3. date_picker_3.JPG
          date_picker_3.JPG
          199 kB
        4. date_picker_4.JPG
          date_picker_4.JPG
          60 kB
        5. v6.3.png
          v6.3.png
          9 kB

            [JRASERVER-36987] Using Date Picker Custom Field causes Internal Server Error on Time Since Chart gadget

            Hi bryan.michmerhuizen,

            We estimate the fix to go out in JIRA 6.4.11 which currently has an estimated release date of 25 Aug 2015.

            Please bear in mind, that this is only an estimate and the date could change due to yet unforeseen circumstances.

            Regards,

            Oswaldo Hernández.
            JIRA Bugmaster.
            [Atlassian].

            Oswaldo Hernandez (Inactive) added a comment - Hi bryan.michmerhuizen , We estimate the fix to go out in JIRA 6.4.11 which currently has an estimated release date of 25 Aug 2015. Please bear in mind, that this is only an estimate and the date could change due to yet unforeseen circumstances. Regards, Oswaldo Hernández. JIRA Bugmaster. [Atlassian] .

            awesome! estimated release date? i just need a 'month' or even a 'quarter' to satisfy my users. Apparently, they love this widget.

            Bryan Michmerhuizen added a comment - awesome! estimated release date? i just need a 'month' or even a 'quarter' to satisfy my users. Apparently, they love this widget.

            excited to see this in technical review, which release do you think this will go in?

            Bryan Michmerhuizen added a comment - excited to see this in technical review, which release do you think this will go in?

            I think DateRangeSearcher should provide a LuceneFieldSorter that matches the DateCustomFieldIndexer and similarly for DateTimeRangeSearcher.

            Probably just new LocalDateFieldSorter(field.getId()) new DateFieldSorter(field.getId()).

            These classes may need to move to jira-api as a result. I dno't think that is a problem. You could mark them @internal but really I see no reason they shouldn't be api.

            Trevor Campbell (Inactive) added a comment - I think DateRangeSearcher should provide a LuceneFieldSorter that matches the DateCustomFieldIndexer and similarly for DateTimeRangeSearcher. Probably just new LocalDateFieldSorter(field.getId()) new DateFieldSorter(field.getId()) . These classes may need to move to jira-api as a result. I dno't think that is a problem. You could mark them @internal but really I see no reason they shouldn't be api.

            jira cloud version 6.5-OD-08-001 is displaying this same issue.

            Bryan Michmerhuizen added a comment - jira cloud version 6.5-OD-08-001 is displaying this same issue.

            Not yet francis@idalko.com,

            It is an issue that's currently sitting in our short-term backlog, and it is awaiting until it can be assigned to one of our developers for fixing.

            Please do watch the issue for updates, we'll update its status as soon as more information is available.

            Regards,

            Oswaldo Hernández.
            JIRA Bugmaster.
            [Atlassian].

            Oswaldo Hernandez (Inactive) added a comment - Not yet francis@idalko.com , It is an issue that's currently sitting in our short-term backlog, and it is awaiting until it can be assigned to one of our developers for fixing. Please do watch the issue for updates, we'll update its status as soon as more information is available. Regards, Oswaldo Hernández. JIRA Bugmaster. [Atlassian] .

            francis added a comment -

            Any update - we are bumping into this one also.

            francis added a comment - Any update - we are bumping into this one also.

            Hi viktar.bachkouski,

            Could you please create a support ticket at https://support.atlassian.com? That way we can provide you with support specific to your circumstances and with higher security. The credentials should be the same as for this site (https://jira.atlassian.com).

            Regards,

            Oswaldo Hernandez.
            JIRA Bugmaster.
            [Atlassian]

            Oswaldo Hernandez (Inactive) added a comment - Hi viktar.bachkouski , Could you please create a support ticket at https://support.atlassian.com? That way we can provide you with support specific to your circumstances and with higher security. The credentials should be the same as for this site ( https://jira.atlassian.com ). Regards, Oswaldo Hernandez. JIRA Bugmaster. [Atlassian]

            Tony Montana added a comment - - edited

            Hi [ohernandez@atlassian.com],
            I have 'An internal server error occurred when requesting resource' after added Gadgets for confluence from Jira. Workload pie chart, health sprint gadget and other...

            Log Errors
            NoClassDefFoundError, ClassNotFoundException or NoSuchMethodException due to Incompatible Plugin 90 matches, last match on line 49511
            Mixed case usernames breaks the connection between JIRA and LDAP for User Management

            Tony Montana added a comment - - edited Hi [ohernandez@atlassian.com] , I have 'An internal server error occurred when requesting resource' after added Gadgets for confluence from Jira. Workload pie chart, health sprint gadget and other... Log Errors NoClassDefFoundError, ClassNotFoundException or NoSuchMethodException due to Incompatible Plugin 90 matches, last match on line 49511 Mixed case usernames breaks the connection between JIRA and LDAP for User Management

            Hi flavio.beck,

            This is definitely a bug we would like to fix, but it's not currently in the short-term backlog so it will still take a while until we can schedule it. Please do watch the issue as I will update its status as soon as there is more information available on it.

            Regards,

            Oswaldo Hernández.
            JIRA Bugmaster.
            [Atlassian].

            Oswaldo Hernandez (Inactive) added a comment - Hi flavio.beck , This is definitely a bug we would like to fix, but it's not currently in the short-term backlog so it will still take a while until we can schedule it. Please do watch the issue as I will update its status as soon as there is more information available on it. Regards, Oswaldo Hernández. JIRA Bugmaster. [Atlassian] .

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              adanial Ahmad Danial (Inactive)
              Affected customers:
              29 This affects my team
              Watchers:
              46 Start watching this issue

                Created:
                Updated:
                Resolved: