Error while compiling gwt module ?.

3,565 views
Skip to first unread message

suresh babu

unread,
Aug 23, 2011, 1:28:47 AM8/23/11
to google-we...@googlegroups.com
Hi,

I am using Gwt 2.3.0 and Eclipse Version: 3.6.1 IDE, when I try to compile my module I am getting following error: 

Compiling module com.veersoft.gwt.AgeingReport
   Validating newly compiled units
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'
         [ERROR] Line 20: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 97: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
         [ERROR] Line 28: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type BaseEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
         [ERROR] Line 31: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 67: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
         [ERROR] Line 25: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 40: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 43: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 44: Missing code implementation in the compiler
         [ERROR] Line 49: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 49: Missing code implementation in the compiler
         [ERROR] Line 70: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 72: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 73: ConstraintViolation<?> cannot be resolved to a type
         [ERROR] Line 77: ConstraintViolation<capture#2-of ?> cannot be resolved to a type
         [ERROR] Line 81: ConstraintViolation<capture#3-of ?> cannot be resolved to a type
         [ERROR] Line 89: ConstraintViolation<capture#4-of ?> cannot be resolved to a type
         [ERROR] Line 93: ConstraintViolation<capture#5-of ?> cannot be resolved to a type
         [ERROR] Line 98: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
         [ERROR] Line 26: The import javax.validation.ConstraintViolation cannot be resolved
         [ERROR] Line 35: The type MockSimpleBeanEditorDriver<T,E> must implement the inherited abstract method EditorDriver<T>.setConstraintViolations(Iterable<ConstraintViolation<?>>)
         [ERROR] Line 107: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type MockSimpleBeanEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
         [ERROR] Line 108: ConstraintViolation cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'
         [ERROR] Line 93: TraversableResolver cannot be resolved to a type
         [ERROR] Line 105: ConstraintValidatorFactory cannot be resolved to a type
         [ERROR] Line 182: TraversableResolver cannot be resolved to a type
         [ERROR] Line 182: No source code is available for type TraversableResolver; did you forget to inherit a required module?
         [ERROR] Line 194: ConstraintValidatorFactory cannot be resolved to a type
         [ERROR] Line 194: No source code is available for type ConstraintValidatorFactory; did you forget to inherit a required module?
         [ERROR] Line 202: ValidatorFactory cannot be resolved to a type
         [ERROR] Line 202: No source code is available for type ValidatorFactory; did you forget to inherit a required module?
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'
         [ERROR] Line 30: ConstraintViolationException cannot be resolved to a type
         [ERROR] Line 34: ConstraintViolationException cannot be resolved to a type
         [ERROR] Line 34: No source code is available for type ConstraintViolationException; did you forget to inherit a required module?
         [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 39: ConstraintViolation cannot be resolved to a type
         [ERROR] Line 40: ConstraintViolationException cannot be resolved to a type
         [ERROR] Line 44: ConstraintViolationException cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'
         [ERROR] Line 21: The import javax.validation.metadata cannot be resolved
         [ERROR] Line 66: ConstraintDescriptor cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'
         [ERROR] Line 30: The import javax.validation.Constraint cannot be resolved
         [ERROR] Line 31: The import javax.validation.Payload cannot be resolved
         [ERROR] Line 49: Constraint cannot be resolved to a type
         [ERROR] Line 49: The attribute validatedBy is undefined for the annotation type Constraint
         [ERROR] Line 75: Payload cannot be resolved to a type
      [ERROR] Errors in 'jar:file:/D:/suresh/gwt-2.3.0/gwt-user.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'
         [ERROR] Line 22: The import javax.validation.ConstraintValidatorFactory cannot be resolved
         [ERROR] Line 24: The import javax.validation.TraversableResolver cannot be resolved
         [ERROR] Line 93: ConstraintValidatorFactory cannot be resolved to a type
         [ERROR] Line 107: TraversableResolver cannot be resolved to a type
   Computing all possible rebind results for 'com.google.gwt.user.client.UserAgentAsserter'
      Rebinding com.google.gwt.user.client.UserAgentAsserter
         Checking rule <generate-with class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/>
            [WARN] Detected warnings related to 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are validation-api-<version>.jar and validation-api-<version>-sources.jar on the classpath?
            Specify -logLevel DEBUG to see all errors.
            [WARN] Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule
   Scanning for additional dependencies: file:/D:/suresh/NewIde/NewCopyOfAccountingGuru/vs-src/com/veersoft/gwt/client/ageingreport/AgeingReportGwtEntryPoint.java
      Computing all possible rebind results for 'com.veersoft.gwt.client.ageingreport.AgeingReportGwtService'
         Rebinding com.veersoft.gwt.client.ageingreport.AgeingReportGwtService
            Invoking generator com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator
               Generating client proxy for remote service interface 'com.veersoft.gwt.client.ageingreport.AgeingReportGwtService'
                  Analyzing 'com.veersoft.gwt.client.ageingreport.AgeingReportGwtService' for serializable types
                     Analyzing methods:
                        public abstract java.util.Map getCustomerPayablesInfo(java.lang.String tenantId, long branchId)
                           Return type: java.util.Map
                              java.util.Map
                                 Verifying instantiability
                                    java.util.LinkedHashMap<? extends java.lang.Object, ? extends java.lang.Object>
                                       [WARN] Checking all subtypes of Object which qualify for serialization
   Scanning for additional dependencies: file:/D:/suresh/NewIde/NewCopyOfAccountingGuru/vs-src/com/veersoft/gwt/client/ageingreport/view/CustomerPayablesViewImpl.java
      Computing all possible rebind results for 'com.veersoft.gwt.client.ageingreport.view.CustomerPayablesViewImpl.CustomerPayablesViewUiBinder'
         Rebinding com.veersoft.gwt.client.ageingreport.view.CustomerPayablesViewImpl.CustomerPayablesViewUiBinder
            Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
               [WARN] Configuration property UiBinder.useSafeHtmlTemplates is false! UiBinder SafeHtml integration is off, leaving your users more vulnerable to cross-site scripting attacks. This property will default to true in future releases of GWT.
   Compiling 6 permutations
      Compiling permutation 0...
      Compiling permutation 1...
      Compiling permutation 2...
      Compiling permutation 3...
      Compiling permutation 4...
      Compiling permutation 5...
   Compile of permutations succeeded
Linking into D:\suresh\NewIde\NewCopyOfAccountingGuru\war\AgeingReport
   Link succeeded
   Compilation succeeded -- 108.625s

 Could any one tell me what is this errors all about, and how do I solve this error ?.

 Any help would be greatly appreciated. 

--
Regards
Suresh Babu G



Xybrek

unread,
Aug 23, 2011, 4:55:45 AM8/23/11
to Google-We...@googlegroups.com
Looks like you have forgotten to "inherit" a required module?

Skimming to the error I can see: No source code is available for type

ValidatorFactory; did you forget to inherit a required module?

On Tuesday, 23 August, 2011 01:28 PM, suresh babu wrote:
> Hi,
>
> I am using *Gwt 2.3.0* and Eclipse Version: 3.6.1 IDE, when I try to

> <http://www.accountingguru.in/>
>
> --
> 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.


Alexander Orlov

unread,
Aug 23, 2011, 7:46:30 AM8/23/11
to google-we...@googlegroups.com
Putting 

<inherits name="javax.validation.Validation"/>

into your *.gwt.xml might solve the problem.

suresh babu

unread,
Aug 23, 2011, 9:08:43 AM8/23/11
to google-we...@googlegroups.com
 Even after adding <inherits name="javax.validation.Validation"/> in gwt.xml it shows same error.


--
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.

Alexander Orlov

unread,
Aug 23, 2011, 9:12:14 AM8/23/11
to google-we...@googlegroups.com
On Tue, Aug 23, 2011 at 3:08 PM, suresh babu <suresh...@gmail.com> wrote:
 Even after adding <inherits name="javax.validation.Validation"/> in gwt.xml it shows same error.

Are validation-api-*.jar and validation-api-*-sources.jar in your classpath? 

suresh babu

unread,
Aug 23, 2011, 10:03:10 AM8/23/11
to google-we...@googlegroups.com
Thanks for the reply, now this issue is solved by adding validation-api-1.0.0.GA.jar, validation-api-1.0.0.GA-sources.jar
in class path.

This jar is available in gwt-2.3.0.

But I don't known where this jar is used.


--
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.

Alexander Orlov

unread,
Aug 23, 2011, 10:13:36 AM8/23/11
to google-we...@googlegroups.com
On Tue, Aug 23, 2011 at 4:03 PM, suresh babu <suresh...@gmail.com> wrote:
But I don't known where this jar is used.

It's a dependency for some CellWidgets. You should be able to compile your code without this dependency using GWT 2.4-rc1. 

Thomas Broyer

unread,
Aug 23, 2011, 10:30:06 AM8/23/11
to google-we...@googlegroups.com
It's a direct dependency of EditorDriver, and the errors made it clear:

geert3

unread,
Aug 23, 2011, 3:16:28 PM8/23/11
to google-we...@googlegroups.com
Those errors aren't fatal. I know they look scary but as long as the compile doesn't abort, you may just as well see them as warnings or plain ignore them. They're caused by code that is eventually pruned as dead code, and as a result it doesn't prevent the compile from succeeding.
Reply all
Reply to author
Forward
0 new messages