Strange gwt compilation error when using trunk version (r9604)

402 views
Skip to first unread message

Miroslav Genov

unread,
Jan 25, 2011, 5:29:36 AM1/25/11
to google-we...@googlegroups.com
Hello, 
I'm trying to use GWT's trunk, due some latest RequestFactory fixes. Everything is building okay, but the problem occurs when I try to compile my project with the new gwt version. The same version of my code is compiling correctly when using GWT 2.1.1. I think that the problem is with the javax.validation emulation, but don't know where I'm doing something wrong or maybe the current trunk project building is broken, case all GWT tests are passing. 

Here are the errors that I'm getting:

Information:Compilation completed with 207 errors and 29 warnings
Information:207 errors
Information:29 warnings
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Validator; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.BootstrapState; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.BootstrapState; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Path.Node; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Path; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidationProviderResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.ValidationProvider<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Validator; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.bootstrap.GenericBootstrap; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.BootstrapState; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidationProviderResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.ValidationProvider<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidationException; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.bootstrap.ProviderSpecificBootstrap<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.DecimalMax; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.DecimalMin; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Digits; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Max; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Min; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Size; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.AssertFalse; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.AssertTrue; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Future; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.NotNull; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Null; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.constraints.Past; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.groups.Default; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Validator; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidationException; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Payload; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidator<A,T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderDefinedContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeBuilderCustomizableContext; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorContext.ConstraintViolationBuilder.NodeContextBuilder; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Path; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.BeanDescriptor; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.PropertyDescriptor; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ElementDescriptor.ConstraintFinder; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidationException; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.BeanDescriptor; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Path; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Path.Node; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Path.Node; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.PropertyDescriptor; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ElementDescriptor.ConstraintFinder; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.BootstrapState; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidationProviderResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.ValidationProvider<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.spi.BootstrapState; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolationException; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.metadata.ConstraintDescriptor<T>; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.Payload; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.ConstraintValidatorFactory; did you forget to inherit a required module?
Error:No source code is available for type javax.validation.TraversableResolver; did you forget to inherit a required module?
Error:Unable to find type 'com.evo.adm.device.client.device.editor.DeviceEditorFactoryImpl'
Error:Hint: Previous compiler errors may have made this type unavailable
Error:Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
Error:Unable to find type 'com.evo.adm.research.client.ResearchRequestEditor'
Error: Failed to resolve 'com.evo.adm.device.client.device.editor.DeviceEditorFactoryImpl' via deferred binding
Error: Failed to resolve 'com.evo.adm.research.client.ResearchRequestEditor' via deferred binding

Error:Unable to find type xxx.client.view.ContractEditorWorkflow.ContractEditorWorkFlowWidgetBinder'
Error:Unable to find type 'xxx.client.view.ContractEditorWorkflow.Driver'
Error:Unable to find type 'xxx.client.view.ContractEditorView.ContractEditorBinder'

Error: Internal compiler error
Error:at com.google.gwt.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:276)
Error:at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
Error:at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
Error:at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
Error:at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
Error:at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
Error:at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
Error:at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
Error:at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
Error:at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
Error:at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
Error:at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
Error:at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
Error:at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
Error:at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
Error:at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:523)
Error:at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
Error:at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
Error:at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
Error:at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
Error:at com.google.gwt.dev.Compiler.run(Compiler.java:215)
Error:at com.google.gwt.dev.Compiler.run(Compiler.java:187)
Error:at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
Error:at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
Error:at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
Error:at com.google.gwt.dev.Compiler.main(Compiler.java:166)
Error:Unexpected
Warning:Unknown type 'com.google.gwt.requestfactory.client.RequestFactoryEditorDriver' specified in deferred binding rule
Warning:Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule
Warning:Unknown type 'com.google.gwt.validation.client.impl.GwtSpecificValidator' specified in deferred binding rule
Warning:Unknown type 'javax.validation.Validator' specified in deferred binding rule
Warning:Unable to resolve method method create_Key$type$com$evo$adm$workflow$client$installation$device$DeviceDetailsPanel$_annotation$$none$$
/usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/rt.jar!/java/lang/String.class


Any idea how to fix it? 

Miroslav Genov

unread,
Jan 25, 2011, 6:55:10 AM1/25/11
to google-we...@googlegroups.com
I just tried out to compile the DynatableRf example and it seems that the same problem occurs and there. Here is the full build information:

DynaTableRf$ ant gwtc
Buildfile: build.xml

libs:
     [copy] Copying 1 file to /home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/samples/DynaTableRf/war/WEB-INF/lib
     [copy] Copying 1 file to /home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/samples/DynaTableRf/war/WEB-INF/lib

javac:
     [copy] Copying 13 files to /home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/samples/DynaTableRf/war/WEB-INF/classes

gwtc:
     [java] Compiling module com.google.gwt.sample.dynatablerf.DynaTableRf
     [java]    Validating newly compiled units
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/editor/client/SimpleBeanEditorDriver.java'
     [java]          [ERROR] Line 105: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
     [java]          [ERROR] Line 80: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
     [java]          [ERROR] Line 36: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
     [java]          [ERROR] Line 101: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/requestfactory/client/RequestFactoryEditorDriver.java'
     [java]          [ERROR] Line 160: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/requestfactory/client/impl/AbstractRequestFactoryEditorDriver.java'
     [java]          [ERROR] Line 207: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/requestfactory/client/testing/MockRequestFactoryEditorDriver.java'
     [java]          [ERROR] Line 155: No source code is available for type javax.validation.ConstraintViolation<T>; did you forget to inherit a required module?
     [java]       [ERROR] Errors in 'jar:file:/home/matrix/workspaces/build/gwt-trunk/build/dist/gwt-0.0.0/gwt-user.jar!/com/google/gwt/validation/client/AbstractGwtValidatorFactory.java'


I was wrong that all GWT tests are passing. The EmulTestSuite is failing.

[junit] Tests run: 1169, Failures: 2, Errors: 1, Time elapsed: 540.53 sec
[junit] Test com.google.gwt.emultest.EmulSuite FAILED

Nick Chalko

unread,
Jan 25, 2011, 7:52:31 AM1/25/11
to google-we...@googlegroups.com

Validation is only in  the head version. 

> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
>

Miroslav Genov

unread,
Jan 25, 2011, 9:30:50 AM1/25/11
to google-we...@googlegroups.com
Any idea which revision or branch or tag that I could use? 

Nick Chalko

unread,
Jan 25, 2011, 10:26:59 AM1/25/11
to google-we...@googlegroups.com
If you are compiling at head you need the dependent libraries.   
When I get in the office I will lookup how to get / set them using ant

Maven will take care of all of that for you.

Miroslav Genov

unread,
Jan 26, 2011, 4:45:40 AM1/26/11
to google-we...@googlegroups.com
I've checked out the http://google-web-toolkit.googlecode.com/svn/tags/2.2-M1 and it seems that the things are okay there. 

The strange thing is that this version has problem with the gwt-google-maps-v3 library ( http://code.google.com/p/gwt-google-maps-v3/ ). When maps library is in the classpath and one of my gwt modules
is using it, then the compiler is throwing internal compiler error which is pointing to: 


Any idea where this is a temporary issue or it will remain after the release of GWT 2.2 ? 
Reply all
Reply to author
Forward
0 new messages