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

Excel spreadsheet with macro cause OutOfMemory issue when showing via Viewfile macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • 5.5
    • 5.1.3, 5.2.3
    • None

    Description

      Here is the step to reproduce the issue:

      1. Install a fresh Confluence 5.1.3 instance.
      2. Create a new page.
      3. Attach the xls file created with macro.
      4. Add the Excel macro to display the file and also add the value spreadsheet name contain that the macro to the "Worksheet Name"
      5. Try the preview in the macro or save the page.
      6. The macro will load forever and we've got the following error message in the log :
        2013-09-03 13:09:03,552 ERROR [http-8513-3] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: viewxls
         -- referer: http://mymac:8513/pages/editpage.action?pageId=1507330 | url: /rest/tinymce/1/macro/preview | userName: admin
        java.lang.OutOfMemoryError: Java heap space
        	at java.util.Arrays.copyOf(Arrays.java:2734)
        	at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
        	at java.util.ArrayList.add(ArrayList.java:351)
        	at com.aspose.cells.b.a.a.e.a(Unknown Source)
        	at com.aspose.cells.bG.a(Unknown Source)
        	at com.aspose.cells.bG.a(Unknown Source)
        	at com.aspose.cells.cn.a(Unknown Source)
        	at com.aspose.cells.cn.i(Unknown Source)
        	at com.aspose.cells.cn.b(Unknown Source)
        	at com.aspose.cells.cn.e(Unknown Source)
        	at com.aspose.cells.cn.a(Unknown Source)
        	at com.aspose.cells.cn.a(Unknown Source)
        	at com.aspose.cells.Chart.toImage(Unknown Source)
        	at com.benryan.conversion.SpreadsheetConverter.collectImageObjects(SpreadsheetConverter.java:283)
        	at com.benryan.conversion.SpreadsheetConverter.convert(SpreadsheetConverter.java:85)
        	at com.benryan.conversion.XlsConverter$1.doConversion(XlsConverter.java:47)
        	at com.benryan.conversion.DocConverter.execute(DocConverter.java:61)
        	at com.benryan.conversion.macro.ConverterMacro.execute(ConverterMacro.java:254)
        	at com.benryan.conversion.macro.ViewOfficeFile.execute(ViewOfficeFile.java:75)
        	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:24)
        	at com.atlassian.confluence.content.render.xhtml.DefaultXhtmlContent.convertMacroDefinitionToView(DefaultXhtmlContent.java:153)
        	at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(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 com.sun.proxy.$Proxy241.convertMacroDefinitionToView(Unknown Source)
        	at sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        	at java.lang.reflect.Method.invoke(Method.java:597)
        	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
        

      The same issue can be reproduced on Confluence 5.2.3.

      Attachments

        Issue Links

          Activity

            People

              psemeniuk Petro Semeniuk (Inactive)
              yilinmo Yilin (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: