Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37022

Confluence becomes unusable after using chart macro with type gantt

    XMLWordPrintable

Details

    Description

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

      A specific component on Chart Macro code is hanging Confluence when used the type gantt.
      This behaviour was tested on version 5.4.2 and 5.7.1.

      How to reproduce:

      1. Create a new page on Confluence and save it
      2. Edit this page and using Source Editor paste the content of the hangschart.txt file and try to save the page.
      3. It will hang Confluence.

      On the Confluence logs you will get:

      2015-03-25 14:38:00,261 ERROR [http-bio-8090-exec-2] [editor.source.rest.FormatConversionResource] getEditorFormat TemplateId = null
       -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/rest/sourceeditor/1.0/convert/toEditorFormat | userName: admin
      2015-03-25 14:43:39,405 ERROR [http-bio-8090-exec-9] [xhtml.view.macro.ViewMacroMarshaller] marshalInternal Error rendering macro: chart
       -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin | action: viewpage | page: 2326541
      java.lang.OutOfMemoryError: Java heap space
      	at sun.util.calendar.JulianCalendar.newCalendarDate(JulianCalendar.java:142)
      	at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2348)
      	at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2753)
      	at java.util.Calendar.updateTime(Calendar.java:2606)
      	at java.util.Calendar.getTimeInMillis(Calendar.java:1118)
      	at java.util.Calendar.getTime(Calendar.java:1091)
      	at org.jfree.data.time.Year.getFirstMillisecond(Year.java:241)
      	at org.jfree.data.time.Year.peg(Year.java:180)
      	at org.jfree.data.time.Year.<init>(Year.java:131)
      	at org.jfree.data.time.Year.<init>(Year.java:118)
      	at org.jfree.chart.axis.DateAxis.refreshTicksHorizontal(DateAxis.java:1491)
      	at org.jfree.chart.axis.DateAxis.refreshTicks(DateAxis.java:1395)
      	at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:768)
      	at org.jfree.chart.plot.CategoryPlot.calculateRangeAxisSpace(CategoryPlot.java:2252)
      	at org.jfree.chart.plot.CategoryPlot.calculateAxisSpace(CategoryPlot.java:2272)
      	at org.jfree.chart.plot.CategoryPlot.draw(CategoryPlot.java:2319)
      	at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1039)
      	at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1213)
      	at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193)
      	at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1178)
      	at com.atlassian.confluence.extra.chart.ChartMacro.getChartImage(ChartMacro.java:418)
      	at com.atlassian.confluence.extra.chart.ChartMacro.execute(ChartMacro.java:321)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.atlassian.confluence.macro.xhtml.XhtmlMacroManager$ResourceAwareMacroInvocationHandler.invoke(XhtmlMacroManager.java:229)
      	at com.sun.proxy.$Proxy2756.execute(Unknown Source)
      	at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshalInternal(ViewMacroMarshaller.java:141)
      	at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88)
      	at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:36)
      	at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:33)
      2015-03-25 14:43:40,517 WARN [http-bio-8090-exec-9] [render.xhtml.transformers.DefaultFragmentTransformer] transformFragment Rendering: 'page: test v.2 (2326541)' exceeded the timeout of 120 seconds by 216798 milliseconds
       -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin | action: viewpage | page: 2326541
      2015-03-25 14:43:40,519 ERROR [http-bio-8090-exec-9] [content.render.xhtml.DefaultRenderer] render Rendering this content exceeded the timeout of 120 seconds.
       -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin | action: viewpage | page: 2326541
      2015-03-25 14:43:41,446 WARN [http-bio-8090-exec-9] [confluence.util.profiling.DefaultActivityMonitor] close Exceeded the threshold of 60000 ms: ActivitySnapshot{startTime=1427308682724, threadId=133, threadName='http-bio-8090-exec-9', userId='admin', type='web-request', summary='/display/REC/test'}
       -- referer: http://192.168.213.129:8090/confluence/pages/editpage.action?pageId=2326541 | url: /confluence/display/REC/test | userName: admin
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rrudnicki Renato Rudnicki (Inactive)
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: