java.lang.IndexOutOfBoundsException

ZK-Tracker | paowang | 4 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

    reproducing steps: 1. load a xlsx file with autofilter 2. export once (no any modification) 3. select one column with autofilter 4. insert/delete one column on selected column 5. occur exception {noformat} Aug 21, 2013 11:03:06 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1362 SEVERE: >>java.lang.IndexOutOfBoundsException >> at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTWorksheetImpl.getColsArray(Unknown Source) >> at org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.getOrCreateColumn1Based(ColumnHelper.java:259) >> at org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.setColWidth(ColumnHelper.java:243) >> at org.zkoss.poi.xssf.usermodel.XSSFSheet.setColumnWidth(XSSFSheet.java:2080) >> at org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:681) >> at org.zkoss.zss.model.sys.impl.BookHelper.insertXSSFColumns(BookHelper.java:2224) >> at org.zkoss.zss.model.sys.impl.BookHelper.insertColumns(BookHelper.java:2201) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.insert(XRangeImpl.java:741) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.insert(XRangeImpl.java:747) >> at org.zkoss.zss.api.impl.RangeImpl.insert(RangeImpl.java:470) >> at org.zkoss.zss.api.CellOperationUtil.insert(CellOperationUtil.java:729) >> at org.zkoss.zss.ui.impl.undo.InsertCellAction.doAction(InsertCellAction.java:54) >> at org.zkoss.zssex.ui.impl.UndoableActionManagerImpl.doAction(UndoableActionManagerImpl.java:50) >> at org.zkoss.zss.ui.impl.ua.InsertColumnHandler.processAction(InsertColumnHandler.java:52) >> at org.zkoss.zss.ui.impl.ua.AbstractHandler.process(AbstractHandler.java:58) >> at org.zkoss.zss.ui.impl.DefaultUserActionManagerCtrl.dispatchAuxAction(DefaultUserActionManagerCtrl.java:272) >> at org.zkoss.zss.ui.impl.DefaultUserActionManagerCtrl.onEvent(DefaultUserActionManagerCtrl.java:395) >> at org.zkoss.zssex.ui.impl.UserActionManagerCtrlImpl.onEvent(UserActionManagerCtrlImpl.java:285) >> at org.zkoss.zss.ui.Spreadsheet$3.onEvent(Spreadsheet.java:386) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1720) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1505) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1215) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) >> 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) {noformat}

    ZK-Tracker | 4 years ago | paowang
    java.lang.IndexOutOfBoundsException
  2. 0

    reproducing steps: 1. load a xlsx file with autofilter 2. export once (no any modification) 3. select one column with autofilter 4. insert/delete one column on selected column 5. occur exception {noformat} Aug 21, 2013 11:03:06 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1362 SEVERE: >>java.lang.IndexOutOfBoundsException >> at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTWorksheetImpl.getColsArray(Unknown Source) >> at org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.getOrCreateColumn1Based(ColumnHelper.java:259) >> at org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.setColWidth(ColumnHelper.java:243) >> at org.zkoss.poi.xssf.usermodel.XSSFSheet.setColumnWidth(XSSFSheet.java:2080) >> at org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:681) >> at org.zkoss.zss.model.sys.impl.BookHelper.insertXSSFColumns(BookHelper.java:2224) >> at org.zkoss.zss.model.sys.impl.BookHelper.insertColumns(BookHelper.java:2201) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.insert(XRangeImpl.java:741) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.insert(XRangeImpl.java:747) >> at org.zkoss.zss.api.impl.RangeImpl.insert(RangeImpl.java:470) >> at org.zkoss.zss.api.CellOperationUtil.insert(CellOperationUtil.java:729) >> at org.zkoss.zss.ui.impl.undo.InsertCellAction.doAction(InsertCellAction.java:54) >> at org.zkoss.zssex.ui.impl.UndoableActionManagerImpl.doAction(UndoableActionManagerImpl.java:50) >> at org.zkoss.zss.ui.impl.ua.InsertColumnHandler.processAction(InsertColumnHandler.java:52) >> at org.zkoss.zss.ui.impl.ua.AbstractHandler.process(AbstractHandler.java:58) >> at org.zkoss.zss.ui.impl.DefaultUserActionManagerCtrl.dispatchAuxAction(DefaultUserActionManagerCtrl.java:272) >> at org.zkoss.zss.ui.impl.DefaultUserActionManagerCtrl.onEvent(DefaultUserActionManagerCtrl.java:395) >> at org.zkoss.zssex.ui.impl.UserActionManagerCtrlImpl.onEvent(UserActionManagerCtrlImpl.java:285) >> at org.zkoss.zss.ui.Spreadsheet$3.onEvent(Spreadsheet.java:386) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1720) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1505) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1215) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491) >> 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) {noformat}

    ZK-Tracker | 4 years ago | paowang
    java.lang.IndexOutOfBoundsException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    java.lang.IndexOutOfBoundsException during XSSF Workbook.cloneSheet()

    Apache Bugzilla | 6 years ago | kirubakaran.d
    java.lang.IndexOutOfBoundsException

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      No message provided

      at org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTWorksheetImpl.getColsArray()
    2. Apache POI
      CTWorksheetImpl.getColsArray
      1. org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTWorksheetImpl.getColsArray(Unknown Source)
      1 frame
    3. org.zkoss.poi
      XSSFSheet.setColumnWidth
      1. org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.getOrCreateColumn1Based(ColumnHelper.java:259)
      2. org.zkoss.poi.xssf.usermodel.helpers.ColumnHelper.setColWidth(ColumnHelper.java:243)
      3. org.zkoss.poi.xssf.usermodel.XSSFSheet.setColumnWidth(XSSFSheet.java:2080)
      3 frames
    4. org.zkoss.zss
      InsertCellAction.doAction
      1. org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:681)
      2. org.zkoss.zss.model.sys.impl.BookHelper.insertXSSFColumns(BookHelper.java:2224)
      3. org.zkoss.zss.model.sys.impl.BookHelper.insertColumns(BookHelper.java:2201)
      4. org.zkoss.zss.model.sys.impl.XRangeImpl.insert(XRangeImpl.java:741)
      5. org.zkoss.zss.model.sys.impl.XRangeImpl.insert(XRangeImpl.java:747)
      6. org.zkoss.zss.api.impl.RangeImpl.insert(RangeImpl.java:470)
      7. org.zkoss.zss.api.CellOperationUtil.insert(CellOperationUtil.java:729)
      8. org.zkoss.zss.ui.impl.undo.InsertCellAction.doAction(InsertCellAction.java:54)
      8 frames
    5. org.zkoss.zssex
      UndoableActionManagerImpl.doAction
      1. org.zkoss.zssex.ui.impl.UndoableActionManagerImpl.doAction(UndoableActionManagerImpl.java:50)
      1 frame
    6. org.zkoss.zss
      DefaultUserActionManagerCtrl.onEvent
      1. org.zkoss.zss.ui.impl.ua.InsertColumnHandler.processAction(InsertColumnHandler.java:52)
      2. org.zkoss.zss.ui.impl.ua.AbstractHandler.process(AbstractHandler.java:58)
      3. org.zkoss.zss.ui.impl.DefaultUserActionManagerCtrl.dispatchAuxAction(DefaultUserActionManagerCtrl.java:272)
      4. org.zkoss.zss.ui.impl.DefaultUserActionManagerCtrl.onEvent(DefaultUserActionManagerCtrl.java:395)
      4 frames
    7. org.zkoss.zssex
      UserActionManagerCtrlImpl.onEvent
      1. org.zkoss.zssex.ui.impl.UserActionManagerCtrlImpl.onEvent(UserActionManagerCtrlImpl.java:285)
      1 frame
    8. org.zkoss.zss
      Spreadsheet$3.onEvent
      1. org.zkoss.zss.ui.Spreadsheet$3.onEvent(Spreadsheet.java:386)
      1 frame
    9. ZK Kernel
      DHtmlUpdateServlet.doPost
      1. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2748)
      2. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2719)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2660)
      4. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      5. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1720)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1505)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1215)
      8. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
      9. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
      10. org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491)
      10 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    11. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      7. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      8. org.mortbay.jetty.Server.handle(Server.java:326)
      9. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      10. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
      11. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      12. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      13. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      14. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      14 frames
    12. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame