Jira Dashboard Gadget An internal server error occurred when requesting resource ; Stream closed

Nico Rusam September 14, 2020

Hello,

I have following error. When I try to add the 'Recently Created Chart' gadget to the dashboard, I receive the 'An internal server error occurred when requesting resource.' error message. The atlassian-jira.log prints following error (I masked the IP with 00.000.000.000).

Additional information:

  • I have already tried to reindex the whole instance, but nothing changes.
  • Some other gadgets doesn't work neither (e.g. Workload Pi Chart).
  • Others work (Bubble Chart), so it's not a problem with gadgets or charts in general.
  • The filter is ok (it only points to a project) and I have tried several other filters and projects, too.
  • The gadgets are locale ones.
  • The system health check is completely green
  • It's a clients system, so I can't easily reboot Jira
2020-09-11 10:35:25,604 http-nio-127.0.0.1-8080-exec-20501 ERROR admin 635x3985282x109 16d0xch 00.000.000.000,127.0.0.1 /rest/gadget/1.0/recentlyCreated/generate [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: java.io.IOException: Stream closedjava.lang.InternalErrorjava.io.IOException: Stream closed    at sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:178)    at sun.util.locale.provider.BreakIteratorProviderImpl.getLineInstance(BreakIteratorProviderImpl.java:106)    at java.text.BreakIterator.createBreakInstance(BreakIterator.java:571)    at java.text.BreakIterator.createBreakInstance(BreakIterator.java:553)    at java.text.BreakIterator.getBreakInstance(BreakIterator.java:544)    at java.text.BreakIterator.getLineInstance(BreakIterator.java:483)    at java.text.BreakIterator.getLineInstance(BreakIterator.java:470)    at org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:220)    at org.jfree.chart.axis.CategoryAxis.createLabel(CategoryAxis.java:1247)    at org.jfree.chart.axis.CategoryAxis.refreshTicks(CategoryAxis.java:1144)    at org.jfree.chart.axis.CategoryAxis.reserveSpace(CategoryAxis.java:861)    at org.jfree.chart.plot.CategoryPlot.calculateDomainAxisSpace(CategoryPlot.java:3399)    at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:3466)    at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:3510)    at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1235)    at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1409)    at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389)    at com.atlassian.jira.charts.jfreechart.ChartHelper.createChartImageInline(ChartHelper.java:117)    at com.atlassian.jira.charts.jfreechart.ChartHelper.generateInline(ChartHelper.java:84)    at com.atlassian.jira.charts.RecentlyCreatedChart.generateChartInternal(RecentlyCreatedChart.java:159)    at com.atlassian.jira.charts.RecentlyCreatedChart.generateInlineChart(RecentlyCreatedChart.java:80)    at com.atlassian.jira.charts.DefaultChartFactory.generateRecentlyCreated(DefaultChartFactory.java:99)    ... 2 filtered    at java.lang.reflect.Method.invoke(Method.java:498)    at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)    at com.sun.proxy.$Proxy29.generateRecentlyCreated(Unknown Source)    ... 2 filtered    at java.lang.reflect.Method.invoke(Method.java:498)    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)    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:185)    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)    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:185)    at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)    at com.sun.proxy.$Proxy3140.generateRecentlyCreated(Unknown Source)    at com.atlassian.jira.gadgets.system.RecentlyCreatedChartResource.generateChart(RecentlyCreatedChartResource.java:120)    ... 2 filtered    at java.lang.reflect.Method.invoke(Method.java:498)    ... 19 filtered    at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:159)    ... 1 filtered    at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:69)    ... 36 filtered    at com.atlassian.jira.plugin.mobile.web.filter.MobileAppRequestFilter.doFilter(MobileAppRequestFilter.java:37)    ... 4 filtered    at com.atlassian.jira.plugin.mobile.login.MobileLoginSuccessFilter.doFilter(MobileLoginSuccessFilter.java:54)    ... 3 filtered    at com.atlassian.diagnostics.internal.platform.monitor.http.HttpRequestMonitoringFilter.doFilter(HttpRequestMonitoringFilter.java:55)    ... 8 filtered    at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)    ... 61 filtered    at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)    ... 1 filtered    at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)    ... 16 filtered    at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)    ... 19 filtered    at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)    ... 10 filtered    at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)    ... 4 filtered    at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)    ... 7 filtered    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:239)    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:215)    at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:88)    at net.bull.javamelody.JiraMonitoringFilter.doFilter(JiraMonitoringFilter.java:137)    ... 22 filtered    at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)    ... 25 filtered    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)    at java.lang.Thread.run(Thread.java:748)Caused by: java.io.IOException: Stream closed    at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:159)    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)    at java.io.FilterInputStream.read(FilterInputStream.java:107)    at sun.util.locale.provider.RuleBasedBreakIterator.readTables(RuleBasedBreakIterator.java:375)    at sun.util.locale.provider.RuleBasedBreakIterator.<init>(RuleBasedBreakIterator.java:321)    at sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:169)    ... 307 more

image.png

1 answer

1 accepted

0 votes
Answer accepted
Nico Rusam September 21, 2020

Update: 05.10.2020: A restart of Jira solved the problem.

----------

tl;dr: The Atlassian support think that this error is because of an issue with Java. So rebooting Jira should/could resolve the issue. I haven't verified this solution yet.

 

I opened a ticket for this question at the Atlassian support and received the following answer. Keep in mind that until now I wasn't able to prove if the solution works:

 

Hello Nico

 Thank you for contacting Atlassian support. This is **** and I will be glad to assist you further. As per your above query, I understand that when you are trying to create gadgets you are getting the below error:"

2020-09-16 10:00:50,876 http-nio-127.0.0.1-8080-exec-22930 ERROR admin 600x4105728x109 w9wstd 00.00.000.000,127.0.0.1 /rest/gadget/1.0/recentlyCreated/generate [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: java.io.IOException: Stream closedjava.lang.InternalError: java.io.IOException: Stream closed        at sun.util.locale.provider.BreakIteratorProviderImpl.getBreakInstance(BreakIteratorProviderImpl.java:178)        at sun.util.locale.provider.BreakIteratorProviderImpl.getLineInstance(BreakIteratorProviderImpl.java:106)        at java.text.BreakIterator.createBreakInstance(BreakIterator.java:571)        at java.text.BreakIterator.createBreakInstance(BreakIterator.java:553)        at java.text.BreakIterator.getBreakInstance(BreakIterator.java:544)        at java.text.BreakIterator.getLineInstance(BreakIterator.java:483)        at java.text.BreakIterator.getLineInstance(BreakIterator.java:470)        at org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:220)        at org.jfree.chart.axis.CategoryAxis.createLabel(CategoryAxis.java:1247)        at org.jfree.chart.axis.CategoryAxis.refreshTicks(CategoryAxis.java:1144)        at org.jfree.chart.axis.CategoryAxis.reserveSpace(CategoryAxis.java:861)        at org.jfree.chart.plot.CategoryPlot.calculateDomainAxisSpace(CategoryPlot.java:3399)        at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:3466)        at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:3510)

It could be related to the JDK issue, as we have seen in the past the error "java.io.IOException: Stream closed" being related to JDK issues. I have also done some case studies and see some examples of cases that were experienced by different users.

Restarting the Jira server seems to fix this issue. Could you please restart the Jira server and let me know how it goes.

Also, if the issue persists, we will need a HAR File while reproducing the issue, and a complete support zip once again.

I hope this helps !!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events