Vaadin depends on Atmosphere 2.4.5.vaadin2 but version 2.2.9.vaadin2.cuba1

Hi,

I want to use a Vaadin component (https://vaadin.com/directory#!addon/autocompletetextfield-add-on) in my CUBA platform project.
I have followed the tutorial at https://doc.cuba-platform.com/manual-6.6/vaadin_addon_sample.html.
Then I can start Tomcat server but Tomcat’s console occurs exception:

=================================================================
Vaadin depends on Atmosphere 2.4.5.vaadin2 but version 2.2.9.vaadin2.cuba1 was found.
This might cause compatibility problems if push is used.
=================================================================
Aug 31, 2017 5:32:59 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoSuchMethodError: com.haulmont.cuba.web.sys.CubaVaadinServletService.addSessionInitListener(Lcom/vaadin/server/SessionInitListener;)V
        at com.haulmont.cuba.web.sys.CubaVaadinServletService.<init>(CubaVaadinServletService.java:88)
        at com.haulmont.cuba.web.sys.CubaApplicationServlet.createServletService(CubaApplicationServlet.java:79)
        at com.vaadin.server.VaadinServlet.init(VaadinServlet.java:228)
        at com.haulmont.cuba.web.sys.CubaApplicationServlet.init(CubaApplicationServlet.java:99)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
        at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:779)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

Please help me to solve this problem.
Thanks.

Hi,

What version of the add-on do you use? You have to use 1.0-alpha-4 version, since CUBA supports Vaadin 7 only. Check “Available for 7” link of the Add-ons in Vaadin Directory before adding them to dependencies.

1 Like

Thanks Yuriy,
I got it, version 1.0-alpha-4 is ok.