Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin Spring Boot Starter throws MalformedParameterizedTypeException on ap

Zac Harvey
3 years ago Jun 25, 2019 9:57pm
Erik Lumme
3 years ago Jun 26, 2019 5:50am

Have you tried using a newer version of the Spring Boot Gradle plugin, perhaps 2.0.0.RELEASE or newer?

Tatu Lund
3 years ago Jun 26, 2019 5:54am
Denis Anisimov
3 years ago Jun 26, 2019 5:56am
Mikael Grankvist
3 years ago Jun 26, 2019 6:19am

The problem that you met is due to a missmatch in spring versions. To get the project up and running just update the build.gradle dependencies I had the project running fine with the following configuration:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.0.RELEASE")
    }
}

plugins {
    id 'java-library'
}

apply plugin: 'org.springframework.boot'

repositories {
    mavenLocal()
    mavenCentral()
    jcenter()
}

dependencies {
    compile(
        'ch.qos.logback:logback-classic:1.2.3'
        ,'org.slf4j:jul-to-slf4j:1.7.25'
        ,'org.apache.commons:commons-lang3:3.7'
        ,'commons-io:commons-io:2.6'
        ,'org.apache.commons:commons-text:1.2'
        ,'com.google.guava:guava:23.0'
        ,'com.vaadin:vaadin-spring-boot-starter:13.0.8'
        ,'org.springframework.boot:spring-boot-starter-actuator:2.1.0.RELEASE'
        ,'org.springframework.boot:spring-boot-starter-data-jpa:2.1.0.RELEASE'
        ,'com.h2database:h2:1.4.197'
    )

}

sourceCompatibility = 1.8
targetCompatibility = 1.8
String buildName = 'vaadin-spring-example'

jar {
    baseName = buildName
}
Last updated on Jun, 26th 2019
Zac Harvey
3 years ago Jun 26, 2019 6:33pm

Thanks to everyone who pitched in with a quick response, especially you Mikael Grankvist, your solution worked immediately!

It is really refreshing to see a responsive support community, you all made me an instant fan of Vaadin!

Thank you again!