Very Strange Errors with gradle-vaadin-plugin's target: vaadinCompileWidget

I am attempting to embed the
QuickTicks Dashboard Demo
(as a starting point) into our project, which is built using Gradle, so naturally I’m using the
gradle-vaadin-plugin
. But when I attempt to execute the
vaadinCompileWidgetset
task, the build fails in one of the embedded actions, which I don’t believe we have control over. How do we get this to work?

Error:

[code]
15:55:37.856 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/GwtBeanDescriptorImpl.java’
15:55:37.856 [ERROR]
[org.gradle.api.Project]
Line 38: The type GwtBeanDescriptorImpl must implement the inherited abstract method BeanDescriptor.getConstraintsForConstructor(Class<?>...) 15:55:37.857 [ERROR] [org.gradle.api.Project] Line 38: The type GwtBeanDescriptorImpl must implement the inherited abstract method BeanDescriptor.getConstrainedConstructors() 15:55:37.857 [ERROR] [org.gradle.api.Project] Line 38: The type GwtBeanDescriptorImpl must implement the inherited abstract method BeanDescriptor.getConstraintsForMethod(String, Class<?>…)
15:55:37.857 [ERROR]
[org.gradle.api.Project]
Line 38: The type GwtBeanDescriptorImpl must implement the inherited abstract method BeanDescriptor.getConstrainedMethods(MethodType, MethodType…)
15:55:37.858 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java’
15:55:37.858 [ERROR]
[org.gradle.api.Project]
Line 35: The type ConstraintDescriptorImpl must implement the inherited abstract method ConstraintDescriptor.getMessageTemplate()
15:55:37.858 [ERROR]
[org.gradle.api.Project]
Line 35: The type ConstraintDescriptorImpl must implement the inherited abstract method ConstraintDescriptor.getValidationAppliesTo()
15:55:37.859 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java’
15:55:37.859 [ERROR]
[org.gradle.api.Project]
Line 31: The type PropertyDescriptorImpl must implement the inherited abstract method CascadableDescriptor.getGroupConversions()
15:55:37.859 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.GwtConstraintValidatorFactory’
15:55:37.860 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/GwtConstraintValidatorFactory.java’
15:55:37.860 [ERROR]
[org.gradle.api.Project]
Line 26: The type GwtConstraintValidatorFactory must implement the inherited abstract method ConstraintValidatorFactory.releaseInstance(ConstraintValidator<?,?>)
15:55:37.861 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.impl.ConstraintValidatorContextImpl’
15:55:37.861 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/ConstraintValidatorContextImpl.java’
15:55:37.861 [ERROR]
[org.gradle.api.Project]
Line 46: The type ConstraintValidatorContextImpl<A,T>.ConstraintViolationBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.addPropertyNode(String)
15:55:37.862 [ERROR]
[org.gradle.api.Project]
Line 39: The type ConstraintValidatorContextImpl<A,T> must implement the inherited abstract method ConstraintValidatorContext.unwrap(Class)
15:55:37.862 [ERROR]
[org.gradle.api.Project]
Line 112: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderDefinedContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext.addPropertyNode(String)
15:55:37.862 [ERROR]
[org.gradle.api.Project]
Line 79: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderCustomizableContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext.addBeanNode()
15:55:37.863 [ERROR]
[org.gradle.api.Project]
Line 79: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderCustomizableContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext.addPropertyNode(String)
15:55:37.863 [ERROR]
[org.gradle.api.Project]
Line 112: The type ConstraintValidatorContextImpl<A,T>.NodeBuilderDefinedContextImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext.addBeanNode()
15:55:37.863 [ERROR]
[org.gradle.api.Project]
Line 46: The type ConstraintValidatorContextImpl<A,T>.ConstraintViolationBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.addParameterNode(int)
15:55:37.863 [ERROR]
[org.gradle.api.Project]
Line 46: The type ConstraintValidatorContextImpl<A,T>.ConstraintViolationBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.addBeanNode()
15:55:37.864 [ERROR]
[org.gradle.api.Project]
Line 142: The type ConstraintValidatorContextImpl<A,T>.NodeContextBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder.addBeanNode()
15:55:37.864 [ERROR]
[org.gradle.api.Project]
Line 142: The type ConstraintValidatorContextImpl<A,T>.NodeContextBuilderImpl must implement the inherited abstract method ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder.addPropertyNode(String)
15:55:37.864 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.impl.GwtValidatorContext’
15:55:37.865 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/GwtValidatorContext.java’
15:55:37.865 [ERROR]
[org.gradle.api.Project]
Line 29: The type GwtValidatorContext must implement the inherited abstract method ValidatorContext.parameterNameProvider(ParameterNameProvider)
15:55:37.865 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.impl.NodeImpl’
15:55:37.866 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/NodeImpl.java’
15:55:37.866 [ERROR]
[org.gradle.api.Project]
Line 25: The type NodeImpl must implement the inherited abstract method Path.Node.as(Class)
15:55:37.866 [ERROR]
[org.gradle.api.Project]
Line 25: The type NodeImpl must implement the inherited abstract method Path.Node.getKind()
15:55:37.866 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘javax.validation.ParameterNameProvider’
15:55:37.867 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/ParameterNameProvider.java’
15:55:37.867 [ERROR]
[org.gradle.api.Project]
Line 54: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
15:55:37.867 [ERROR]
[org.gradle.api.Project]
Line 44: No source code is available for type java.lang.reflect.Constructor; did you forget to inherit a required module?
15:55:37.867 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.impl.PropertyDescriptorImpl’
15:55:37.868 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/PropertyDescriptorImpl.java’
15:55:37.868 [ERROR]
[org.gradle.api.Project]
Line 31: The type PropertyDescriptorImpl must implement the inherited abstract method CascadableDescriptor.getGroupConversions()
15:55:37.868 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java’
15:55:37.868 [ERROR]
[org.gradle.api.Project]
Line 35: The type ConstraintDescriptorImpl must implement the inherited abstract method ConstraintDescriptor.getMessageTemplate()
15:55:37.868 [ERROR]
[org.gradle.api.Project]
Line 35: The type ConstraintDescriptorImpl must implement the inherited abstract method ConstraintDescriptor.getValidationAppliesTo()
15:55:37.869 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.impl.ConstraintDescriptorImpl’
15:55:37.869 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/ConstraintDescriptorImpl.java’
15:55:37.869 [ERROR]
[org.gradle.api.Project]
Line 35: The type ConstraintDescriptorImpl must implement the inherited abstract method ConstraintDescriptor.getMessageTemplate()
15:55:37.869 [ERROR]
[org.gradle.api.Project]
Line 35: The type ConstraintDescriptorImpl must implement the inherited abstract method ConstraintDescriptor.getValidationAppliesTo()
15:55:37.870 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘javax.validation.executable.ExecutableValidator’
15:55:37.870 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/7d49b53caed9bd81d172807c3e096d24f3c57090/validation-api-1.1.0.Final-sources.jar!/javax/validation/executable/ExecutableValidator.java’
15:55:37.870 [ERROR]
[org.gradle.api.Project]
Line 53: No source code is available for type java.lang.reflect.Method; did you forget to inherit a required module?
15:55:37.870 [ERROR]
[org.gradle.api.Project]
Line 94: No source code is available for type java.lang.reflect.Constructor; did you forget to inherit a required module?
15:55:37.871 [ERROR]
[org.gradle.api.Project]
Tracing compile failure path for type ‘com.google.gwt.validation.client.impl.ConstraintViolationImpl’
15:55:37.871 [ERROR]
[org.gradle.api.Project]
Errors in ‘jar:file:/Users/builduser/.gradle/caches/modules-2/files-2.1/com.vaadin/vaadin-client/7.5.10/d911e13523ea5dfdad33479f972404c32415b0a9/vaadin-client-7.5.10.jar!/com/google/gwt/validation/client/impl/ConstraintViolationImpl.java’
15:55:37.871 [ERROR]
[org.gradle.api.Project]
Line 30: The type ConstraintViolationImpl must implement the inherited abstract method ConstraintViolation.getExecutableReturnValue()
15:55:37.871 [ERROR]
[org.gradle.api.Project]
Line 30: The type ConstraintViolationImpl must implement the inherited abstract method ConstraintViolation.unwrap(Class)
15:55:37.871 [ERROR]
[org.gradle.api.Project]
Line 30: The type ConstraintViolationImpl must implement the inherited abstract method ConstraintViolation.getExecutableParameters()
15:55:39.405 [ERROR]
[org.gradle.api.Project]
Aborting compile due to errors in some input files
15:55:44.870 [DEBUG]
[org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter]
Finished executing task ‘:web3:vaadinCompileWidgetset’
15:55:44.871 [LIFECYCLE]
[class org.gradle.TaskExecutionLogger]
:web3:vaadinCompileWidgetset FAILED
15:55:44.871 [INFO]
[org.gradle.execution.taskgraph.AbstractTaskPlanExecutor]
:web3:vaadinCompileWidgetset (Thread[main,5,main]
) completed. Took 24.957 secs.
15:55:44.871 [DEBUG]
[org.gradle.execution.taskgraph.AbstractTaskPlanExecutor]
Task worker [Thread[main,5,main]
] finished, busy: 38.291 secs, idle: 0.013 secs
15:55:44.878 [ERROR]
[org.gradle.BuildExceptionReporter]

15:55:44.879 [ERROR]
[org.gradle.BuildExceptionReporter]
FAILURE: Build failed with an exception.
15:55:44.879 [ERROR]
[org.gradle.BuildExceptionReporter]

15:55:44.879 [ERROR]
[org.gradle.BuildExceptionReporter]

  • What went wrong:
    15:55:44.879 [ERROR]
    [org.gradle.BuildExceptionReporter]
    Execution failed for task ‘:web3:vaadinCompileWidgetset’.
    15:55:44.879 [ERROR]
    [org.gradle.BuildExceptionReporter]

Widgetset failed to compile. See error log above.
15:55:44.880 [ERROR]
[org.gradle.BuildExceptionReporter]

15:55:44.880 [ERROR]
[org.gradle.BuildExceptionReporter]

  • Try:
    15:55:44.880 [ERROR]
    [org.gradle.BuildExceptionReporter]
    Run with --stacktrace option to get the stack trace.
    15:55:44.881 [LIFECYCLE]
    [org.gradle.BuildResultLogger]

15:55:44.881 [LIFECYCLE]
[org.gradle.BuildResultLogger]
BUILD FAILED
15:55:44.881 [LIFECYCLE]
[org.gradle.BuildResultLogger]

[/code]Attached is a full snipped in debug mode, which I thought too verbose to pose directly.

build.gradle (relevant snippet):

[code]
plugins {
id “fi.jasoft.plugin.vaadin” version “0.10.4”
}

repositories {
maven {
url “http://maven.vaadin.com/vaadin-addons
}
}

apply plugin: ‘war’

dependencies {

providedCompile 'javax.servlet:javax.servlet-api:3.1.0'

compile 'javax.validation:validation-api:1.1.0.Final'
compile 'javax.portlet:portlet-api:2.0'
compile 'com.google.code.gson:gson:2.5'
compile 'org.vaadin:viritin:1.38'
compile 'org.slf4j:slf4j-jdk14:1.6.4'
compile 'com.google.code.gson:gson:2.5'

compile 'com.vaadin:vaadin-server:7.5.9'
compile 'com.vaadin:vaadin-push:7.5.9'
compile 'com.vaadin:vaadin-client:7.5.9'
compile 'com.vaadin:vaadin-client-compiled:7.5.9'
compile 'com.vaadin:vaadin-client-compiler:7.5.9'
compile 'com.vaadin:vaadin-themes:7.5.9'

providedCompile project(':core')

}

vaadin {
version ‘7.5.+’
debug true
push true
widgetset ‘com.vaadin.demo.dashboard.DashboardWidgetSet’
}
[/code]Googling for these types of errors leads to suggestions for altering the classpath of the widget compilation, however this is entirely controlled by the gradle-vaadin-plugin, isn’t it?

Also, the widgetset.gwt.xml that I’m using is located here
/src/main/resources/com/vaadin/demo/dashboard/DashboardWidgetSet.gwt.xml
, which starts off as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>
    <inherits name="com.vaadin.DefaultWidgetSet" />
    
    
    
    <!--  -->

    <set-configuration-property name="devModeRedirectEnabled"
        value="true" />

    <!-- Uncomment the following to compile the widgetset for one browser only. 
        This can reduce the GWT compilation time significantly when debugging. The 
        line should be commented out before deployment to production environments. 
        Multiple browsers can be specified for GWT 1.7 as a comma separated list. 
        The supported user agents at the moment of writing were: ie6,ie8,gecko,gecko1_8,safari,opera 
        The value gecko1_8 is used for Firefox 3 and later and safari is used for 
        webkit based browsers including Google Chrome. -->
    <!-- <set-property name="user.agent" value="safari"/> -->

    <!-- WidgetSetOptimizer -->
    <generate-with class="com.vaadin.demo.dashboard.OptimizedConnectorBundleLoaderFactory">
        <when-type-assignable
            class="com.vaadin.client.metadata.ConnectorBundleLoader" />
    </generate-with>

</module>

Note that this file is as supplied as part of the QuickTickets Dashboard Demo, except that I removed the following plugins:

<inherits name="com.vaadin.addon.charts.Widgetset" /> <inherits name="com.vaadin.addon.timeline.gwt.TimelineWidgetSet" /> Note also that the gradle-vaadin-plugin changes this file to:

[code]

<?xml version="1.0" encoding="UTF-8"?> [/code]Please advise.

Thanks,
Peter
22413.txt (298 KB)

I’m also having a terrible time trying to get vaadin to run with Gradle.

Base Vaadin is fine actually, but a specific addon is giving Gradle grief.

Were you able to solve your problem?

Same here. No solution yet. Multiple addons I tried all fail, no matter what VAADIN and plugin version I try.