Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-22

java.lang.RuntimeException: Buffer overrun

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.0.0
    • None
    • Importer
    • None

      A side-effect of increasing Ptg size for Xlsx and it causes importing xls failure - https://github.com/zkoss/keikaicml/commit/ab342ba8c456fdb5c694cc7fa03d07ce0534dd4e

      Stack traces:

      java.lang.RuntimeException: Buffer overrun
      
      	at org.zkoss.poi.util.LittleEndianByteArrayInputStream.checkPosition(LittleEndianByteArrayInputStream.java:47)
      	at org.zkoss.poi.util.LittleEndianByteArrayInputStream.readUShort(LittleEndianByteArrayInputStream.java:100)
      	at org.zkoss.poi.ss.formula.ptg.RefPtgBase.readCoordinates(RefPtgBase.java:65)
      	at org.zkoss.poi.ss.formula.ptg.Ref3DPtg.<init>(Ref3DPtg.java:43)
      	at org.zkoss.poi.ss.formula.ptg.Ptg.createClassifiedPtg(Ptg.java:119)
      	at org.zkoss.poi.ss.formula.ptg.Ptg.createPtg(Ptg.java:87)
      	at org.zkoss.poi.ss.formula.ptg.Ptg.readTokens(Ptg.java:58)
      	at org.zkoss.poi.ss.formula.Formula.getTokens(Formula.java:82)
      	at org.zkoss.poi.hssf.record.NameRecord.getNameDefinition(NameRecord.java:309)
      	at org.zkoss.poi.hssf.usermodel.HSSFName.getRefersToFormula(HSSFName.java:195)
      	at io.keikai.range.impl.imexp.AbstractExcelImporter.skipName(AbstractExcelImporter.java:292)
      	at io.keikai.range.impl.imexp.ExcelXlsImporter.skipName(ExcelXlsImporter.java:400)
      	at io.keikai.range.impl.imexp.AbstractExcelImporter.importNamedRange(AbstractExcelImporter.java:269)
      	at io.keikai.range.impl.imexp.AbstractExcelImporter.imports(AbstractExcelImporter.java:205)
      	at io.keikai.range.impl.imexp.ExcelImportAdapter.imports(ExcelImportAdapter.java:47)
      	at io.keikai.api.impl.ImporterImpl.imports(ImporterImpl.java:58)
      	at io.keikai.api.impl.ImporterImpl.imports(ImporterImpl.java:48)
      	at io.keikai.Util.loadBook(Util.java:78)
      	at io.keikai.api.impl.BorderTest.testBorder(BorderTest.java:45)
      	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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

            jumperchen jumperchen
            jumperchen jumperchen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: