java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When I put Cells in my grid rows, in sorting, a ClassCastException Happens. The stackTrace is : Dec 21, 2011 11:55:21 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1279 SEVERE: >>java.lang.ClassCastException: org.zkoss.zul.Cell >> at org.zkoss.zul.RowComparator.compare(RowComparator.java:162) >> at java.util.Arrays.mergeSort(Arrays.java:1270) >> at java.util.Arrays.mergeSort(Arrays.java:1281) >> at java.util.Arrays.mergeSort(Arrays.java:1281) >> at java.util.Arrays.sort(Arrays.java:1210) >> at org.zkoss.zk.ui.Components.sort(Components.java:142) >> at org.zkoss.zk.ui.Components.sort(Components.java:93) >> at org.zkoss.zul.Column.sort0(Column.java:413) >> at org.zkoss.zul.Column.doSort(Column.java:388) >> at org.zkoss.zul.Column.sort(Column.java:360) >> at org.zkoss.zul.Column.onSort(Column.java:588) >> 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.impl.EventProcessor.process0(EventProcessor.java:207) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1635) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1419) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1132) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:466) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at com.prs.solution.web.filter.locale.PRSLocaleFilter.doFilter(PRSLocaleFilter.java:40) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) >> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:589) >> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> at java.lang.Thread.run(Thread.java:619)
    via by hosarb,
  • When I put Cells in my grid rows, in sorting, a ClassCastException Happens. The stackTrace is : Dec 21, 2011 11:55:21 AM org.zkoss.zk.ui.impl.UiEngineImpl handleError:1279 SEVERE: >>java.lang.ClassCastException: org.zkoss.zul.Cell >> at org.zkoss.zul.RowComparator.compare(RowComparator.java:162) >> at java.util.Arrays.mergeSort(Arrays.java:1270) >> at java.util.Arrays.mergeSort(Arrays.java:1281) >> at java.util.Arrays.mergeSort(Arrays.java:1281) >> at java.util.Arrays.sort(Arrays.java:1210) >> at org.zkoss.zk.ui.Components.sort(Components.java:142) >> at org.zkoss.zk.ui.Components.sort(Components.java:93) >> at org.zkoss.zul.Column.sort0(Column.java:413) >> at org.zkoss.zul.Column.doSort(Column.java:388) >> at org.zkoss.zul.Column.sort(Column.java:360) >> at org.zkoss.zul.Column.onSort(Column.java:588) >> 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.impl.EventProcessor.process0(EventProcessor.java:207) >> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138) >> at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1635) >> at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1419) >> at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1132) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) >> at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:466) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at com.prs.solution.web.filter.locale.PRSLocaleFilter.doFilter(PRSLocaleFilter.java:40) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) >> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) >> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:589) >> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) >> at java.lang.Thread.run(Thread.java:619)
    via by hosarb,
    • java.lang.ClassCastException: org.zkoss.zul.Cell at org.zkoss.zul.RowComparator.compare(RowComparator.java:162) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.mergeSort(Arrays.java:1281) at java.util.Arrays.mergeSort(Arrays.java:1281) at java.util.Arrays.sort(Arrays.java:1210) at org.zkoss.zk.ui.Components.sort(Components.java:142) at org.zkoss.zk.ui.Components.sort(Components.java:93) at org.zkoss.zul.Column.sort0(Column.java:413) at org.zkoss.zul.Column.doSort(Column.java:388) at org.zkoss.zul.Column.sort(Column.java:360) at org.zkoss.zul.Column.onSort(Column.java:588) 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.impl.EventProcessor.process0(EventProcessor.java:207) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1635) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1419) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1132) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:466) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.prs.solution.web.filter.locale.PRSLocaleFilter.doFilter(PRSLocaleFilter.java:40) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:111) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619)
    No Bugmate found.