org.zkoss.zk.ui.UiException: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read.

ZK-Tracker | JerryChen | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    reproduce step: import attached file {noformat} org.zkoss.zk.ui.UiException: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read. at org.zkoss.zul.impl.FileuploadDlg.onClose(FileuploadDlg.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2736) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:611) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read. at org.zkoss.poi.hssf.record.RecordInputStream.hasNextRecord(RecordInputStream.java:156) at org.zkoss.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:231) at org.zkoss.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:485) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:295) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:258) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:339) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:320) at org.zkoss.zss.range.impl.imexp.ExcelXlsImporter.createPoiBook(ExcelXlsImporter.java:48) at org.zkoss.zss.range.impl.imexp.AbstractExcelImporter.imports(AbstractExcelImporter.java:123) at org.zkoss.zss.range.impl.imexp.ExcelImportAdapter.imports(ExcelImportAdapter.java:46) at org.zkoss.zss.api.impl.ImporterImpl.imports(ImporterImpl.java:51) at org.zkoss.zss.app.ui.AppCtrl$12.onEvent(AppCtrl.java:426) at org.zkoss.zss.app.ui.AppCtrl$12.onEvent(AppCtrl.java:1) at org.zkoss.zul.impl.FileuploadDlg.onClose(FileuploadDlg.java:61) {noformat}

    ZK-Tracker | 2 years ago | JerryChen
    org.zkoss.zk.ui.UiException: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read.
  2. 0

    reproduce step: import attached file {noformat} org.zkoss.zk.ui.UiException: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read. at org.zkoss.zul.impl.FileuploadDlg.onClose(FileuploadDlg.java:63) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2736) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:611) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read. at org.zkoss.poi.hssf.record.RecordInputStream.hasNextRecord(RecordInputStream.java:156) at org.zkoss.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:231) at org.zkoss.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:485) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:295) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:258) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:339) at org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:320) at org.zkoss.zss.range.impl.imexp.ExcelXlsImporter.createPoiBook(ExcelXlsImporter.java:48) at org.zkoss.zss.range.impl.imexp.AbstractExcelImporter.imports(AbstractExcelImporter.java:123) at org.zkoss.zss.range.impl.imexp.ExcelImportAdapter.imports(ExcelImportAdapter.java:46) at org.zkoss.zss.api.impl.ImporterImpl.imports(ImporterImpl.java:51) at org.zkoss.zss.app.ui.AppCtrl$12.onEvent(AppCtrl.java:426) at org.zkoss.zss.app.ui.AppCtrl$12.onEvent(AppCtrl.java:1) at org.zkoss.zul.impl.FileuploadDlg.onClose(FileuploadDlg.java:61) {noformat}

    ZK-Tracker | 2 years ago | JerryChen
    org.zkoss.zk.ui.UiException: org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException: Initialisation of record 0x896 left 3120 bytes remaining still to be read.

    Root Cause Analysis

    1. org.zkoss.poi.hssf.record.RecordInputStream$LeftoverDataException

      Initialisation of record 0x896 left 3120 bytes remaining still to be read.

      at org.zkoss.poi.hssf.record.RecordInputStream.hasNextRecord()
    2. org.zkoss.poi
      HSSFWorkbook.<init>
      1. org.zkoss.poi.hssf.record.RecordInputStream.hasNextRecord(RecordInputStream.java:156)
      2. org.zkoss.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:231)
      3. org.zkoss.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:485)
      4. org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:295)
      5. org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:258)
      6. org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:202)
      7. org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:339)
      8. org.zkoss.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:320)
      8 frames
    3. org.zkoss.zss
      AppCtrl$12.onEvent
      1. org.zkoss.zss.range.impl.imexp.ExcelXlsImporter.createPoiBook(ExcelXlsImporter.java:48)
      2. org.zkoss.zss.range.impl.imexp.AbstractExcelImporter.imports(AbstractExcelImporter.java:123)
      3. org.zkoss.zss.range.impl.imexp.ExcelImportAdapter.imports(ExcelImportAdapter.java:46)
      4. org.zkoss.zss.api.impl.ImporterImpl.imports(ImporterImpl.java:51)
      5. org.zkoss.zss.app.ui.AppCtrl$12.onEvent(AppCtrl.java:426)
      6. org.zkoss.zss.app.ui.AppCtrl$12.onEvent(AppCtrl.java:1)
      6 frames
    4. ZK XUL Components
      FileuploadDlg.onClose
      1. org.zkoss.zul.impl.FileuploadDlg.onClose(FileuploadDlg.java:61)
      1 frame