Pie Charts on Dashboards are not rendering ( An internal server error occurred when requesting resource )
Symptoms
All the pie charts on the Dashboards are not rendering. It displays an error message message "An internal server error occurred when requesting resource"
A reboot of the server solves this for a few minutes, but then it goes back to the error.
The following appears in the atlassian-jira.log
:
2015-01-12 03:51:15,616 http-bio-8080-exec-17 ERROR meleni.moodley 231x4340x1 18zezuv 145.62.32.129 /rest/gadget/1.0/piechart/generate [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service
java.lang.RuntimeException: Error generating pie chart
at com.atlassian.jira.charts.PieChart.generateChart(PieChart.java:205)
at com.atlassian.jira.charts.DefaultChartFactory.generatePieChart(DefaultChartFactory.java:91)
at sun.reflect.GeneratedMethodAccessor507.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.java:181)
at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211)
at com.sun.proxy.$Proxy412.generatePieChart(Unknown Source) <+2>
at java.lang.reflect.Method.invoke(Unknown Source)
at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
at com.sun.proxy.$Proxy412.generatePieChart(Unknown Source) <+2>
at java.lang.reflect.Method.invoke(Unknown Source)
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
at com.sun.proxy.$Proxy412.generatePieChart(Unknown Source)
at com.atlassian.jira.gadgets.system.PieChartResource.createChart(PieChartResource.java:145)
at com.atlassian.jira.gadgets.syste2015-01-12 04:04:32,712 StreamsCompletionService::thread-2674 WARN anonymous com.atlassian.streams.internal.ActivityProviderConnectionMonitorImpl:activityProviderMonitor [atlassian.streams.internal.ActivityProviderConnectionMonitorImpl$ActivityMonitorJob] Could not reach provider mt2; it will be omitted from the stream. The connection will be retried in 5 minutes
Cause
After further investigation, we discovered plugin incompatibility was he root of cause.
BALSAMIQ MOCKUPS - https://marketplace.atlassian.com/plugins/com.balsamiq.jira.plugins.mockups/versions
<plugin>
<key>com.balsamiq.jira.plugins.mockups</key>
<status>ENABLED</status>
<user-installed>true</user-installed>
<vendor-url>http://www.balsamiq.com</vendor-url>
<version>2.1.16</version>
<name>Balsamiq Mockups</name>
<framework-version>2</framework-version>
<vendor>Balsamiq Studios, LLC</vendor>
</plugin>
version is incompatible with jira 5.2.x
GLIFFY - https://marketplace.atlassian.com/plugins/com.gliffy.integration.jira/versions
<plugin>
<key>com.gliffy.integration.jira</key>
<status>ENABLED</status>
<user-installed>true</user-installed>
<vendor-url>http://www.gliffy.com/</vendor-url>
<version>3.7</version>
<name>Gliffy JIRA Plugin</name>
<framework-version>2</framework-version>
<vendor>Gliffy, Inc.</vendor>
</plugin>
version is incompatible with jira 5.2.x
SQL FEED
<plugin>
<key>com.valiantys.jira.plugins.SQLFeed</key>
<status>INSTALLED</status>
<user-installed>true</user-installed>
<vendor-url>http://www.valiantys.com</vendor-url>
<version>3.3.3.1</version>
<name>SQLFeed</name>
<framework-version>2</framework-version>
<vendor>Valiantys</vendor>
</plugin>
version is incompatible with jira 5.2.x
Two of which are close to rendering explains all the symptoms and why a restart momentarily solves it.
Resolution
Update those plugins to the compatible versions - Updating apps