Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-245

Exception when delete columns

XMLWordPrintable

      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.

      >>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)
      

            paowang paowang
            dennis dennis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: