java.lang.IllegalArgumentException: fromKey > toKey

ZK-Tracker | dennis | 4 years ago
  1. 0

    1.select a row(click on header), and choose toolbar function 'delete columns', you will get this exception, 2.if you select a column and and use function 'delete rows', you get a empty spreadsheet. {code} >>java.lang.IllegalArgumentException: fromKey > toKey >> at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1240) >> at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1677) >> at java.util.TreeMap.subMap(TreeMap.java:862) >> at java.util.TreeMap.subMap(TreeMap.java:903) >> at org.zkoss.zss.model.impl.XSSFSheetImpl.shiftCells(XSSFSheetImpl.java:748) >> at org.zkoss.zss.model.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:594) >> at org.zkoss.zss.model.impl.BookHelper.deleteXSSFColumns(BookHelper.java:2171) >> at org.zkoss.zss.model.impl.BookHelper.deleteColumns(BookHelper.java:2146) >> at org.zkoss.zss.model.impl.RangeImpl.delete(RangeImpl.java:681) >> at org.zkoss.zss.model.impl.RangeImpl.delete(RangeImpl.java:687) >> at org.zkoss.zss.ui.sys.ActionHandler.doDeleteSheetColumn(ActionHandler.java:1724) >> at org.zkoss.zss.ui.sys.ActionHandler.dispatch(ActionHandler.java:369) >> at org.zkoss.zss.ui.au.in.ActionCommand.process(ActionCommand.java:54) >> at org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4655) >> at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:701) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1201) >> 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) {code}

    ZK-Tracker | 4 years ago | dennis
    java.lang.IllegalArgumentException: fromKey > toKey
  2. 0

    1.select a row(click on header), and choose toolbar function 'delete columns', you will get this exception, 2.if you select a column and and use function 'delete rows', you get a empty spreadsheet. {code} >>java.lang.IllegalArgumentException: fromKey > toKey >> at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1240) >> at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1677) >> at java.util.TreeMap.subMap(TreeMap.java:862) >> at java.util.TreeMap.subMap(TreeMap.java:903) >> at org.zkoss.zss.model.impl.XSSFSheetImpl.shiftCells(XSSFSheetImpl.java:748) >> at org.zkoss.zss.model.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:594) >> at org.zkoss.zss.model.impl.BookHelper.deleteXSSFColumns(BookHelper.java:2171) >> at org.zkoss.zss.model.impl.BookHelper.deleteColumns(BookHelper.java:2146) >> at org.zkoss.zss.model.impl.RangeImpl.delete(RangeImpl.java:681) >> at org.zkoss.zss.model.impl.RangeImpl.delete(RangeImpl.java:687) >> at org.zkoss.zss.ui.sys.ActionHandler.doDeleteSheetColumn(ActionHandler.java:1724) >> at org.zkoss.zss.ui.sys.ActionHandler.dispatch(ActionHandler.java:369) >> at org.zkoss.zss.ui.au.in.ActionCommand.process(ActionCommand.java:54) >> at org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4655) >> at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:701) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1201) >> 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) {code}

    ZK-Tracker | 4 years ago | dennis
    java.lang.IllegalArgumentException: fromKey > toKey
  3. 0

    h3. Problem Description: delete multiple columns causes a exception h3. Reproducing Steps: # select multiple columns # right click the selection and choose "delete" *Expected:* Selected columns are deleted. *Actual:* an exception is thrown. {code} 2013/5/21 上午 11:51:01 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1359 嚴重的: >>java.lang.IllegalArgumentException: fromKey > toKey >> at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1240) >> at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1677) >> at java.util.TreeMap.subMap(TreeMap.java:862) >> at java.util.TreeMap.subMap(TreeMap.java:903) >> at org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftCells(XSSFSheetImpl.java:748) >> at org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:594) >> at org.zkoss.zss.model.sys.impl.BookHelper.deleteXSSFColumns(BookHelper.java:2176) >> at org.zkoss.zss.model.sys.impl.BookHelper.deleteColumns(BookHelper.java:2151) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.delete(XRangeImpl.java:681) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.delete(XRangeImpl.java:687) >> at org.zkoss.zss.api.impl.RangeImpl.delete(RangeImpl.java:465) >> at org.zkoss.zss.api.CellOperationUtil.delete(CellOperationUtil.java:495) >> at org.zkoss.zss.ui.DefaultUserActionHandler.doDeleteSheetColumn(DefaultUserActionHandler.java:1115) >> at org.zkoss.zss.ui.DefaultUserActionHandler.dispatchAction(DefaultUserActionHandler.java:289) >> at org.zkoss.zssex.ui.DefaultExUserActionHandler.dispatchAction(DefaultExUserActionHandler.java:213) >> at org.zkoss.zss.ui.DefaultUserActionHandler.onEvent(DefaultUserActionHandler.java:1407) >> at org.zkoss.zssex.ui.DefaultExUserActionHandler.onEvent(DefaultExUserActionHandler.java:56) >> at org.zkoss.zss.ui.Spreadsheet$3.onEvent(Spreadsheet.java:346) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) {code}

    ZK-Tracker | 4 years ago | hawk
    java.lang.IllegalArgumentException: fromKey > toKey
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h3. Problem Description: delete multiple columns causes a exception h3. Reproducing Steps: # select multiple columns # right click the selection and choose "delete" *Expected:* Selected columns are deleted. *Actual:* an exception is thrown. {code} 2013/5/21 上午 11:51:01 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1359 嚴重的: >>java.lang.IllegalArgumentException: fromKey > toKey >> at java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1240) >> at java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1677) >> at java.util.TreeMap.subMap(TreeMap.java:862) >> at java.util.TreeMap.subMap(TreeMap.java:903) >> at org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftCells(XSSFSheetImpl.java:748) >> at org.zkoss.zss.model.sys.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:594) >> at org.zkoss.zss.model.sys.impl.BookHelper.deleteXSSFColumns(BookHelper.java:2176) >> at org.zkoss.zss.model.sys.impl.BookHelper.deleteColumns(BookHelper.java:2151) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.delete(XRangeImpl.java:681) >> at org.zkoss.zss.model.sys.impl.XRangeImpl.delete(XRangeImpl.java:687) >> at org.zkoss.zss.api.impl.RangeImpl.delete(RangeImpl.java:465) >> at org.zkoss.zss.api.CellOperationUtil.delete(CellOperationUtil.java:495) >> at org.zkoss.zss.ui.DefaultUserActionHandler.doDeleteSheetColumn(DefaultUserActionHandler.java:1115) >> at org.zkoss.zss.ui.DefaultUserActionHandler.dispatchAction(DefaultUserActionHandler.java:289) >> at org.zkoss.zssex.ui.DefaultExUserActionHandler.dispatchAction(DefaultExUserActionHandler.java:213) >> at org.zkoss.zss.ui.DefaultUserActionHandler.onEvent(DefaultUserActionHandler.java:1407) >> at org.zkoss.zssex.ui.DefaultExUserActionHandler.onEvent(DefaultExUserActionHandler.java:56) >> at org.zkoss.zss.ui.Spreadsheet$3.onEvent(Spreadsheet.java:346) >> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2742) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2713) >> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2654) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) {code}

    ZK-Tracker | 4 years ago | hawk
    java.lang.IllegalArgumentException: fromKey > toKey

    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.IllegalArgumentException

      fromKey > toKey

      at java.util.TreeMap$NavigableSubMap.<init>()
    2. Java RT
      TreeMap.subMap
      1. java.util.TreeMap$NavigableSubMap.<init>(TreeMap.java:1240)
      2. java.util.TreeMap$AscendingSubMap.<init>(TreeMap.java:1677)
      3. java.util.TreeMap.subMap(TreeMap.java:862)
      4. java.util.TreeMap.subMap(TreeMap.java:903)
      4 frames
    3. org.zkoss.zss
      Spreadsheet.service
      1. org.zkoss.zss.model.impl.XSSFSheetImpl.shiftCells(XSSFSheetImpl.java:748)
      2. org.zkoss.zss.model.impl.XSSFSheetImpl.shiftColumnsOnly(XSSFSheetImpl.java:594)
      3. org.zkoss.zss.model.impl.BookHelper.deleteXSSFColumns(BookHelper.java:2171)
      4. org.zkoss.zss.model.impl.BookHelper.deleteColumns(BookHelper.java:2146)
      5. org.zkoss.zss.model.impl.RangeImpl.delete(RangeImpl.java:681)
      6. org.zkoss.zss.model.impl.RangeImpl.delete(RangeImpl.java:687)
      7. org.zkoss.zss.ui.sys.ActionHandler.doDeleteSheetColumn(ActionHandler.java:1724)
      8. org.zkoss.zss.ui.sys.ActionHandler.dispatch(ActionHandler.java:369)
      9. org.zkoss.zss.ui.au.in.ActionCommand.process(ActionCommand.java:54)
      10. org.zkoss.zss.ui.Spreadsheet.service(Spreadsheet.java:4655)
      10 frames
    4. ZK Kernel
      DHtmlUpdateServlet.doPost
      1. org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:701)
      2. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1201)
      3. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:600)
      4. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
      5. org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:491)
      5 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    6. 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
    7. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame