java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Yilin Mo [Atlassian] | 3 years ago
  1. 0

    Here is the step to reproduce the issue: # Install a fresh Confluence 5.1.3 instance. # Create a new page. # Attach the xls file created with macro. # Add the Excel macro to display the file and also add the value spreadsheet name contain that the macro to the "Worksheet Name" # Try the preview in the macro or save the page. # The macro will load forever and we've got the following error message in the log : {noformat} 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) {noformat} The same issue can be reproduced on Confluence 5.2.3.

    Atlassian JIRA | 3 years ago | Yilin Mo [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    OutOfMemoryError in com.google.inject.internal.Errors

    GitHub | 2 years ago | michalradziwon
    java.lang.OutOfMemoryError: Java heap space
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    <openjpa-1.1.1-SNAPSHOT-r422266:891341 fatal internal error> org.apache.ope

    Oracle Community | 5 years ago | user10955210
    java.lang.OutOfMemoryError: Java heap space
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.util.Arrays.copyOf()
  2. Java RT
    ArrayList.add
    1. java.util.Arrays.copyOf(Arrays.java:2734)
    2. java.util.ArrayList.ensureCapacity(ArrayList.java:167)
    3. java.util.ArrayList.add(ArrayList.java:351)
    3 frames
  3. com.aspose.cells
    Chart.toImage
    1. com.aspose.cells.b.a.a.e.a(Unknown Source)
    2. com.aspose.cells.bG.a(Unknown Source)
    3. com.aspose.cells.bG.a(Unknown Source)
    4. com.aspose.cells.cn.a(Unknown Source)
    5. com.aspose.cells.cn.i(Unknown Source)
    6. com.aspose.cells.cn.b(Unknown Source)
    7. com.aspose.cells.cn.e(Unknown Source)
    8. com.aspose.cells.cn.a(Unknown Source)
    9. com.aspose.cells.cn.a(Unknown Source)
    10. com.aspose.cells.Chart.toImage(Unknown Source)
    10 frames
  4. com.benryan.conversion
    ViewOfficeFile.execute
    1. com.benryan.conversion.SpreadsheetConverter.collectImageObjects(SpreadsheetConverter.java:283)
    2. com.benryan.conversion.SpreadsheetConverter.convert(SpreadsheetConverter.java:85)
    3. com.benryan.conversion.XlsConverter$1.doConversion(XlsConverter.java:47)
    4. com.benryan.conversion.DocConverter.execute(DocConverter.java:61)
    5. com.benryan.conversion.macro.ConverterMacro.execute(ConverterMacro.java:254)
    6. com.benryan.conversion.macro.ViewOfficeFile.execute(ViewOfficeFile.java:75)
    6 frames
  5. com.atlassian.confluence
    DefaultXhtmlContent.convertMacroDefinitionToView
    1. com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88)
    2. com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:24)
    3. com.atlassian.confluence.content.render.xhtml.DefaultXhtmlContent.convertMacroDefinitionToView(DefaultXhtmlContent.java:153)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  7. com.atlassian.plugin
    DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
    1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
    1 frame
  8. com.sun.proxy
    $Proxy241.convertMacroDefinitionToView
    1. com.sun.proxy.$Proxy241.convertMacroDefinitionToView(Unknown Source)
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor642.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  10. Spring AOP
    AopUtils.invokeJoinpointUsingReflection
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    1 frame
  11. Spring OSGi Core
    ServiceInvoker.doInvoke
    1. org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
    1 frame