You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't run my Spring Boot with Vaadin and vaadin4Spring appliction because of following exception:
java.lang.NoSuchMethodError: org.vaadin.spring.sidebar.components.ValoSideBar$ItemButton.addClickListener(Lcom/vaadin/ui/Button$ClickListener;)V
at org.vaadin.spring.sidebar.components.ValoSideBar$ItemButton.<init>(ValoSideBar.java:188) ~[vaadin-spring-addon-sidebar-0.0.7.RELEASE.jar:na]
at org.vaadin.spring.sidebar.components.ValoSideBar$DefaultItemComponentFactory.createItemComponent(ValoSideBar.java:287) ~[vaadin-spring-addon-sidebar-0.0.7.RELEASE.jar:na]
at org.vaadin.spring.sidebar.components.ValoSideBar$DefaultSectionComponentFactory.createSection(ValoSideBar.java:271) ~[vaadin-spring-addon-sidebar-0.0.7.RELEASE.jar:na]
at org.vaadin.spring.sidebar.components.ValoSideBar$DefaultSectionComponentFactory.createSection(ValoSideBar.java:254) ~[vaadin-spring-addon-sidebar-0.0.7.RELEASE.jar:na]
at org.vaadin.spring.sidebar.components.AbstractSideBar.createSection(AbstractSideBar.java:139) ~[vaadin-spring-addon-sidebar-0.0.7.RELEASE.jar:na]
at org.vaadin.spring.sidebar.components.AbstractSideBar.attach(AbstractSideBar.java:75) ~[vaadin-spring-addon-sidebar-0.0.7.RELEASE.jar:na]
My Java class
package com.example;
import com.vaadin.annotations.Theme;
import com.vaadin.server.VaadinRequest;
import com.vaadin.spring.annotation.SpringUI;
import com.vaadin.ui.UI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Component;
import org.vaadin.spring.i18n.annotation.EnableI18N;
import org.vaadin.spring.sidebar.annotation.EnableSideBar;
import org.vaadin.spring.sidebar.annotation.SideBarItem;
import org.vaadin.spring.sidebar.annotation.SideBarSection;
import org.vaadin.spring.sidebar.annotation.SideBarSections;
import org.vaadin.spring.sidebar.components.ValoSideBar;
@SpringBootApplication
@EnableSideBar
@EnableI18N
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@SpringUI
@Theme("valo")
static class MyUI extends UI {
@Autowired
private ValoSideBar sideBar;
@Override
protected void init(VaadinRequest request) {
setContent(sideBar);
}
}
@SideBarItem(sectionId = Sections.SECTION)
@Component
static class MyOperation implements Runnable {
@Override
public void run() {
System.out.println("run");
}
}
@SideBarSections({@SideBarSection(caption = Sections.SECTION, id = Sections.SECTION)})
@Component
public class Sections {
public static final String SECTION = "section";
}
}
Hi, sample with 2.0.0-SNAPSHOT works fine. How can I attach this version to my Maven project? I found only 0.0.7.RELEASE on https://mvnrepository.com/.
If you build the snapshot locally you can just use 2.0.0-SNAPSHOT in your project (locally) as well. If you have maven proxy, you can probably install the artifacts there as well.
I can't run my Spring Boot with Vaadin and vaadin4Spring appliction because of following exception:
My Java class
My pom.xml
What can be wrong and how to solve this issue?
The text was updated successfully, but these errors were encountered: