java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I have set up a transformation to create multiple output file. If I use the Microsoft Excel Output step and select the xls option, then my transformation (job) runs fine. If I select the xlxs option, then I have the following error: 2011/08/08 10:08:27 - Change Sequence.0 - Finished processing (I=0, O=0, R=15079, W=15079, U=0, E=0) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : UnexpectedError: 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : java.lang.OutOfMemoryError: Java heap space 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.util.Arrays.copyOf(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.io.ByteArrayOutputStream.grow(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.io.ByteArrayOutputStream.write(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.openxml4j.opc.internal.MemoryPackagePartOutputStream.write(MemoryPackagePartOutputStream.java:88) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.xmlbeans.impl.store.Cursor._save(Cursor.java:590) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.xmlbeans.impl.store.Cursor.save(Cursor.java:2544) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:212) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.xssf.usermodel.XSSFSheet.write(XSSFSheet.java:2480) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.xssf.usermodel.XSSFSheet.commit(XSSFSheet.java:2439) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:196) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:200) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:204) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.java:204) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.processRow(ExcelWriterStep.java:168) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.lang.Thread.run(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - Finished processing (I=0, O=15080, R=15079, W=15079, U=0, E=1) 2011/08/08 10:12:09 - 16 Output v5 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : Errors detected! 2011/08/08 10:12:09 - 16 Output v5 - 16 Output v5 2011/08/08 10:12:09 - 16 Output v5 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : Errors detected! 2011/08/08 10:12:09 - 16 Output v5 - 16 Output v5 2011/08/08 10:12:31 - 06 - EmailPropagator Output v5 - Finished job entry [16 Output v5] (result=[false])
    via by Michele,
  • I have set up a transformation to create multiple output file. If I use the Microsoft Excel Output step and select the xls option, then my transformation (job) runs fine. If I select the xlxs option, then I have the following error: 2011/08/08 10:08:27 - Change Sequence.0 - Finished processing (I=0, O=0, R=15079, W=15079, U=0, E=0) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : UnexpectedError: 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : java.lang.OutOfMemoryError: Java heap space 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.util.Arrays.copyOf(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.io.ByteArrayOutputStream.grow(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.io.ByteArrayOutputStream.write(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.openxml4j.opc.internal.MemoryPackagePartOutputStream.write(MemoryPackagePartOutputStream.java:88) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.xmlbeans.impl.store.Cursor._save(Cursor.java:590) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.xmlbeans.impl.store.Cursor.save(Cursor.java:2544) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:212) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.xssf.usermodel.XSSFSheet.write(XSSFSheet.java:2480) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.xssf.usermodel.XSSFSheet.commit(XSSFSheet.java:2439) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:196) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:200) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:204) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.java:204) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.processRow(ExcelWriterStep.java:168) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : at java.lang.Thread.run(Unknown Source) 2011/08/08 10:12:09 - Microsoft Excel Writer.0 - Finished processing (I=0, O=15080, R=15079, W=15079, U=0, E=1) 2011/08/08 10:12:09 - 16 Output v5 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : Errors detected! 2011/08/08 10:12:09 - 16 Output v5 - 16 Output v5 2011/08/08 10:12:09 - 16 Output v5 - ERROR (version 4.2.0-RC1, build 15366 from 2011-06-14 12.04.35 by buildguy) : Errors detected! 2011/08/08 10:12:09 - 16 Output v5 - 16 Output v5 2011/08/08 10:12:31 - 06 - EmailPropagator Output v5 - Finished job entry [16 Output v5] (result=[false])
    via by Michele,
  • GitHub comment 32#5598227
    via GitHub by mtwestra
    ,
  • GitHub comment 32#5598697
    via GitHub by cfagiani
    ,
  • Heap Space issue in Jenkins
    via Stack Overflow by Ashish Shukla
    ,
  • GitHub comment 60#34633585
    via GitHub by sskuts
    ,
    • java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.io.ByteArrayOutputStream.grow(Unknown Source) at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source) at java.io.ByteArrayOutputStream.write(Unknown Source) at org.apache.poi.openxml4j.opc.internal.MemoryPackagePartOutputStream.write(MemoryPackagePartOutputStream.java:88) at org.apache.xmlbeans.impl.store.Cursor._save(Cursor.java:590) at org.apache.xmlbeans.impl.store.Cursor.save(Cursor.java:2544) at org.apache.xmlbeans.impl.values.XmlObjectBase.save(XmlObjectBase.java:212) at org.apache.poi.xssf.usermodel.XSSFSheet.write(XSSFSheet.java:2480) at org.apache.poi.xssf.usermodel.XSSFSheet.commit(XSSFSheet.java:2439) at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:196) at org.apache.poi.POIXMLDocumentPart.onSave(POIXMLDocumentPart.java:200) at org.apache.poi.POIXMLDocument.write(POIXMLDocument.java:204) at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.closeOutputFile(ExcelWriterStep.java:204) at org.pentaho.di.trans.steps.excelwriter.ExcelWriterStep.processRow(ExcelWriterStep.java:168) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:40) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    51 more bugmates