Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException after upgrade to 0.9.3.v7 #45

Open
fracz opened this issue Jan 28, 2014 · 3 comments
Open

ClassCastException after upgrade to 0.9.3.v7 #45

fracz opened this issue Jan 28, 2014 · 3 comments
Labels

Comments

@fracz
Copy link

fracz commented Jan 28, 2014

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.

@tepi
Copy link
Owner

tepi commented Jan 28, 2014

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

@tepi tepi closed this as completed Jan 28, 2014
@ruddy32
Copy link

ruddy32 commented Apr 18, 2014

Is it planned to update vaadin6 branch with this fix?

@tepi
Copy link
Owner

tepi commented Apr 24, 2014

Reopening this to remember to fix it in vaadin6 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants