Skip to content

ClassCastException after upgrade to 0.9.3.v7 #45

Open

Description

@fracz

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

  1. tepi commented on Jan 28, 2014

    @tepi
    Owner

    Thanks for noticing! This will be fixed in the upcoming 0.9.4.v7 version.

  2. ruddy32 commented on Apr 18, 2014

    @ruddy32

    Is it planned to update vaadin6 branch with this fix?

  3. tepi commented on Apr 24, 2014

    @tepi
    Owner

    Reopening this to remember to fix it in vaadin6 branch.

  4. reopened this on Apr 24, 2014
  5. added a commit that references this issue on Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions