Repository navigation
Open
Labels
Description
I have an instance of FilterTable in which I want to support drag&drop feature of rows. I do it by sample code:
table.setDragMode(TableDragMode.ROW);
table.setDropHandler( /* my drop handler */ );Until 0.9.2.v7 everything worked fine. After upgrade to 0.9.3.v7 and drag&drop some row, the exception is being thrown:
java.lang.ClassCastException: org.tepi.filtertable.FilterTable cannot be cast to com.vaadin.ui.Table
at com.vaadin.ui.CustomTable$TableTransferable.getSourceComponent(CustomTable.java:5062)
at com.vaadin.ui.CustomTable$TableTransferable.getSourceComponent(CustomTable.java:5036)
at com.vaadin.event.dd.acceptcriteria.SourceIsTarget.accept(SourceIsTarget.java:51)
at com.vaadin.server.DragAndDropService.handleDropRequest(DragAndDropService.java:135)
at com.vaadin.server.DragAndDropService.changeVariables(DragAndDropService.java:102)
at com.vaadin.server.communication.ServerRpcHandler.changeVariables(ServerRpcHandler.java:396)
at com.vaadin.server.communication.ServerRpcHandler.handleBurst(ServerRpcHandler.java:221)
at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:111)
at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:91)
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:37)
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1382)
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
After downgrade to 0.9.2.v7 it works again with no exception. Vaadin 7.1.9.
Activity
tepi commentedon Jan 28, 2014
Thanks for noticing! This will be fixed in the upcoming 0.9.4.v7 version.
ruddy32 commentedon Apr 18, 2014
Is it planned to update vaadin6 branch with this fix?
tepi commentedon Apr 24, 2014
Reopening this to remember to fix it in vaadin6 branch.
Fixes issue #45 for the vaadin6 branch