An unknown error has occurred. No chart found.
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Problem
When generating a report, the chart error shows a red banner with the following message:
1
An unknown error has occurred. No chart found.

Diagnosis
Senario 1
The following appears in the atlassian-bamboo.log
Missing fonts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
2015-12-10 09:47:46,740 ERROR [http-bio-80-exec-13] [runtime] get(chart) failed on instance of com.atlassian.bamboo.webwork.StarterAction
get(chart) failed on instance of com.atlassian.bamboo.webwork.StarterAction
The problematic instruction:
----------
==> if action.chart?has_content [on line 1, column 1 in URLTemplate]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateModelException: get(chart) failed on instance of com.atlassian.bamboo.webwork.StarterAction
at freemarker.ext.beans.BeanModel.get(BeanModel.java:210)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.BuiltIn$has_contentBI._getAsTemplateModel(BuiltIn.java:666)
at freemarker.core.BuiltIn$has_contentBI.isTrue(BuiltIn.java:678)
at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:289)
at freemarker.template.Template.process(Template.java:243)
at com.atlassian.bamboo.ww2.BambooFreemarkerManager.renderText(BambooFreemarkerManager.java:554)
...
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:805)
at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:251)
at freemarker.ext.beans.BeanModel.get(BeanModel.java:176)
... 273 more
Caused by: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:776)
at sun.font.SunFontManager$2.run(SunFontManager.java:431)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
... 280 more
Senario 2
The following appears in the atlassian-bamboo.log
No command prompt defined for user
1
2
3
4
5
6
7
8
9
10
11
12
13
Caused by: java.lang.NoClassDefFoundError: org.jfree.chart.JFreeChart (initialization failure)
at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:121)
at org.jfree.chart.ChartFactory.createXYBarChart(ChartFactory.java:1517)
at com.atlassian.bamboo.charts.author.AuthorNumberBuildsBarChart.getJFreeChart(AuthorNumberBuildsBarChart.java:73)
at com.atlassian.bamboo.charts.author.AuthorNumberBuildsBarChart.generateChartParams(AuthorNumberBuildsBarChart.java:41)
at com.atlassian.bamboo.webwork.StarterAction.getChart(StarterAction.java:489)
... 275 more
Caused by: java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:77)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:122)
at java.security.AccessController.doPrivileged(AccessController.java:274)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:86)
Senario 3
The problem only happens when accessing Bamboo through proxy server.
Cause
Dependency required to generate the charts are not found in the operating system. Dependency known to cause such error is TrueType Fonts
No Terminal defined for the user
Incorrect proxy server configuration
Solution
Resolution
Senario 1
Install the missing dependency .
Install TrueType fonts
Senario 2
Stop Bamboo
Please edit "<bamboo-install>/bin/setenv.sh":
1
JVM_SUPPORT_RECOMMENDED_ARGS="-Djava.awt.headless=true"
Refer to Configuring Bamboo on start-up documentation for further information.
Start Bamboo
Senario 3
Check it out with the proxy server administrator
Was this helpful?