10 Replies Latest reply: Jul 2, 2014 11:02 AM by Max Barkley RSS

    compilation error

    francesco milesi Newbie

      Hi everybody,

       

      today I opened my project that worked perfectly the last time I used it a few days ago and it does not compile anymore.

       

      So I created a project from start using the cordova-quickstart archetype and I get the same errors running "mvn -U clean package -e -X".

       

      I tried all the combinations of gwt-2.4.0, gwt-2.5.1 and open-jdk-6, open-jdk-7 and oracle-7 with the same results when usng the same gwt version.

      If it is a temporary known problem I will just wait for the new snapshots.....

       

      Here is the most relevant part of the attached log when using gwt-2.5.1

       

      [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

      [INFO]           at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

      [INFO]           at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

      [INFO]           at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

      [INFO]           at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

      [INFO]           at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:81)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

      [INFO]           at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)

      [INFO]           at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:41)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

      [INFO]           at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

      [INFO]           at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

      [INFO]           at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)

      [INFO]           at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)

      [INFO]           at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

      [INFO]           at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:434)

      [INFO]           at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:403)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:900)

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:625)

      [INFO]           at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)

      [INFO]           at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

      [INFO]           at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)

      [INFO]           at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

      [INFO]           at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)

      [INFO]           at com.google.gwt.dev.Compiler.run(Compiler.java:232)

      [INFO]           at com.google.gwt.dev.Compiler.run(Compiler.java:198)

      [INFO]           at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

      [INFO]           at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

      [INFO]           at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

      [INFO]           at com.google.gwt.dev.Compiler.main(Compiler.java:177)

      [INFO] Caused by: java.lang.NoClassDefFoundError: org.jboss.errai.marshalling.client.api.MarshallerFactoryImpl

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:981)

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst.access$1500(UnifyAst.java:120)

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:364)

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)

      [INFO]           at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)

      [INFO]           at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)

      [INFO]           at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)

      [INFO]           ... 45 more

      [INFO]       [ERROR] at MarshallerFramework.java(42): GWT.create(MarshallerFactory.class)

      [INFO]          com.google.gwt.dev.jjs.ast.JMethodCall

      [INFO]       [ERROR] at MarshallerFramework.java(42): (MarshallerFactory) GWT.create(MarshallerFactory.class)

      [INFO]          com.google.gwt.dev.jjs.ast.JCastOperation

      [INFO]       [ERROR] at MarshallerFramework.java(42): MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class)

      [INFO]          com.google.gwt.dev.jjs.ast.JBinaryOperation

      [INFO]       [ERROR] at MarshallerFramework.java(42): MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class)

      [INFO]          com.google.gwt.dev.jjs.ast.JExpressionStatement

      [INFO]       [ERROR] at MarshallerFramework.java(40): {

      [INFO]   InitVotes.waitFor(MarshallerFramework.class);

      [INFO]   MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

      [INFO]   ParserFactory.registerParser(new MarshallerFramework$1());

      [INFO]   InitVotes.voteFor(MarshallerFramework.class);

      [INFO] }

      [INFO]          com.google.gwt.dev.jjs.ast.JBlock

      [INFO]       [ERROR] at MarshallerFramework.java(37): {

      [INFO]   Object.$clinit();

      [INFO]   {

      [INFO]     InitVotes.waitFor(MarshallerFramework.class);

      [INFO]     MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

      [INFO]     ParserFactory.registerParser(new MarshallerFramework$1());

      [INFO]     InitVotes.voteFor(MarshallerFramework.class);

      [INFO]   }

      [INFO] }

      [INFO]          com.google.gwt.dev.jjs.ast.JBlock

      [INFO]       [ERROR] at MarshallerFramework.java(37): {

      [INFO]   Object.$clinit();

      [INFO]   {

      [INFO]     InitVotes.waitFor(MarshallerFramework.class);

      [INFO]     MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

      [INFO]     ParserFactory.registerParser(new MarshallerFramework$1());

      [INFO]     InitVotes.voteFor(MarshallerFramework.class);

      [INFO]   }

      [INFO] }

      [INFO]          com.google.gwt.dev.jjs.ast.JMethodBody

      [INFO]       [ERROR] at MarshallerFramework.java(37): private static final void $clinit();

      [INFO]

      [INFO]          com.google.gwt.dev.jjs.ast.JMethod

       

       

      thanks in advance to everybody for your help

       

      ciao Francesco

        • 1. Re: compilation error
          Jonathan Fuerth Master

          Hi Francesco,

           

          This type of error message usually means there is something in your GWT client or shared classes which is not GWT-translatable.

           

          Can you try compiling again like this:

          mvn clean package -Dgwt.compiler.strict=true

           

          hopefully it will fail earlier with clear information about the source of the error.

           

          Note that you can configure the GWT compiler to run in strict mode all the time. Just add <strict>true</strict> under the gwt-maven-plugin configuration section. We're currently planning to do this in the demos and archetypes for Errai 3.0, since strict mode seems to do more good than harm.

           

          -Jonathan

          • 2. Re: compilation error
            francesco milesi Newbie

            Hi Jonathan,

             

            sorry for the strict options. I know I should have used it, but I forgot it.

             

            After using it compiling my project I got the following error (with gwt 2.4.0, 2.5.0 and 2.5.1 and java-oracle-7 build 1.7.0_17-b02)

             

                 [exec] [INFO] Compiling module it.soluzione1.tpl.Tpl

                 [exec] [INFO]    Validating units:

                 [exec] [INFO]       [WARN] Warnings in 'jar:file:/home/milesif/.m2/repository/com/googlecode/mgwt/mgwt/1.1.2/mgwt-1.1.2.jar!/com/googlecode/mgwt/ui/client/internal/CssCanvas.java'

                 [exec] [INFO]          [WARN] Line 93: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                 [exec] [INFO]          [WARN] Line 102: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                 [exec] [INFO]          [WARN] Line 119: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                 [exec] [INFO]          [WARN] Line 132: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                 [exec] [INFO]          [WARN] Line 142: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                 [exec] [INFO]          [WARN] Line 152: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                 [exec] [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-cordova/3.0-SNAPSHOT/errai-cordova-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/cordova/PhoneGapOrientationDetector.java'

                 [exec] [INFO]          [ERROR] Line 26: The type OrientationDetector cannot be a superinterface of PhoneGapOrientationDetector; a superinterface must be an interface

                 [exec] [INFO]          [ERROR] Line 44: The method startFiringOrientationEvents() of type PhoneGapOrientationDetector must override or implement a supertype method

                 [exec] [INFO]          [ERROR] Line 64: The method setOrientationEventSource(Event<OrientationEvent>) of type PhoneGapOrientationDetector must override or implement a supertype method

                 [exec] [INFO]          [ERROR] Line 69: The method stopFiringOrientationEvents() of type PhoneGapOrientationDetector must override or implement a supertype method

                 [exec] [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-data-binding/3.0-SNAPSHOT/errai-data-binding-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/shared/api/annotations/Bound.java'

                 [exec] [INFO]          [ERROR] Line 89: No source code is available for type org.jboss.errai.databinding.client.api.Converter<M,W>; did you forget to inherit a required module?

                 [exec] [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-ui/3.0-SNAPSHOT/errai-ui-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/shared/api/style/StyleBindingChangeHandler.java'

                 [exec] [INFO]          [ERROR] Line 25: No source code is available for type org.jboss.errai.databinding.client.api.PropertyChangeHandler<T>; did you forget to inherit a required module?

                 [exec] [INFO]          [ERROR] Line 27: No source code is available for type org.jboss.errai.databinding.client.api.PropertyChangeEvent<T>; did you forget to inherit a required module?

                 [exec] [INFO]    [ERROR] Aborting compile due to errors in some input files

             

            The last time I compiled it I had no such problem and I did not modify anything. Maybe I should try with open-jdk-6?

             

            I cannot compile even the project cordova-quickstart archetype (I did not investigate with ythe strict that one...)

             

            thanks for your help

             

            ciao Francesco

            • 3. Re: compilation error
              francesco milesi Newbie

              Hi Jonathan,

               

              I have just clear my maven repository ( a bit drastic ;-) ) and run

               

              mvn archetype:generate \

                     -DarchetypeGroupId=org.jboss.errai.archetypes \

                     -DarchetypeArtifactId=cordova-quickstart \

                     -DarchetypeVersion=2.2.0-SNAPSHOT \

                     -DarchetypeRepository=https://repository.jboss.org/nexus/content/repositories/snapshots

              then

              cordova-quickstart and run "mvn -U clean package -Dgwt.compiler.strict=true".

               

              I get the following error:

               

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final-sources.jar!/org/hibernate/validator/constraints/impl/FutureValidatorForReadableInstant.java'

              [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

              [INFO]          [ERROR] Line 32: The type FutureValidatorForReadableInstant must implement the inherited abstract method ConstraintValidator<Future,ReadableInstant>.isValid(ReadableInstant, ConstraintValidatorContext)

              [INFO]          [ERROR] Line 32: ReadableInstant cannot be resolved to a type

              [INFO]          [ERROR] Line 37: ReadableInstant cannot be resolved to a type

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final-sources.jar!/org/hibernate/validator/constraints/impl/FutureValidatorForReadablePartial.java'

              [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

              [INFO]          [ERROR] Line 32: The type FutureValidatorForReadablePartial must implement the inherited abstract method ConstraintValidator<Future,ReadablePartial>.isValid(ReadablePartial, ConstraintValidatorContext)

              [INFO]          [ERROR] Line 32: ReadablePartial cannot be resolved to a type

              [INFO]          [ERROR] Line 37: ReadablePartial cannot be resolved to a type

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final-sources.jar!/org/hibernate/validator/constraints/impl/PastValidatorForReadableInstant.java'

              [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

              [INFO]          [ERROR] Line 32: The type PastValidatorForReadableInstant must implement the inherited abstract method ConstraintValidator<Past,ReadableInstant>.isValid(ReadableInstant, ConstraintValidatorContext)

              [INFO]          [ERROR] Line 32: ReadableInstant cannot be resolved to a type

              [INFO]          [ERROR] Line 37: ReadableInstant cannot be resolved to a type

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final-sources.jar!/org/hibernate/validator/constraints/impl/PastValidatorForReadablePartial.java'

              [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

              [INFO]          [ERROR] Line 32: The type PastValidatorForReadablePartial must implement the inherited abstract method ConstraintValidator<Past,ReadablePartial>.isValid(ReadablePartial, ConstraintValidatorContext)

              [INFO]          [ERROR] Line 32: ReadablePartial cannot be resolved to a type

              [INFO]          [ERROR] Line 37: ReadablePartial cannot be resolved to a type

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final-sources.jar!/org/hibernate/validator/constraints/impl/SafeHtmlValidator.java'

              [INFO]          [ERROR] Line 22: The import org.jsoup cannot be resolved

              [INFO]          [ERROR] Line 23: The import org.jsoup cannot be resolved

              [INFO]          [ERROR] Line 35: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 40: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 40: Whitelist cannot be resolved

              [INFO]          [ERROR] Line 43: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 43: Whitelist cannot be resolved

              [INFO]          [ERROR] Line 46: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 46: Whitelist cannot be resolved

              [INFO]          [ERROR] Line 49: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 49: Whitelist cannot be resolved

              [INFO]          [ERROR] Line 52: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 52: Whitelist cannot be resolved

              [INFO]          [ERROR] Line 55: Whitelist cannot be resolved to a type

              [INFO]          [ERROR] Line 62: Jsoup cannot be resolved

              [INFO]          [ERROR] Line 62: Whitelist cannot be resolved to a type

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'

              [INFO]          [ERROR] Line 72: The constructor NodeImpl(String) is undefined

              [INFO]          [ERROR] Line 84: The constructor NodeImpl(Path.Node) is undefined

              [INFO]          [ERROR] Line 95: The constructor NodeImpl(Path.Node) is undefined

              [INFO]          [ERROR] Line 202: The constructor NodeImpl(String) is undefined

              [INFO]          [ERROR] Line 204: The method setInIterable(boolean) is undefined for the type NodeImpl

              [INFO]          [ERROR] Line 209: The method setIndex(Integer) is undefined for the type NodeImpl

              [INFO]          [ERROR] Line 212: The method setKey(String) is undefined for the type NodeImpl

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-cordova/3.0-SNAPSHOT/errai-cordova-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/cordova/PhoneGapOrientationDetector.java'

              [INFO]          [ERROR] Line 26: The type OrientationDetector cannot be a superinterface of PhoneGapOrientationDetector; a superinterface must be an interface

              [INFO]          [ERROR] Line 44: The method startFiringOrientationEvents() of type PhoneGapOrientationDetector must override or implement a supertype method

              [INFO]          [ERROR] Line 64: The method setOrientationEventSource(Event<OrientationEvent>) of type PhoneGapOrientationDetector must override or implement a supertype method

              [INFO]          [ERROR] Line 69: The method stopFiringOrientationEvents() of type PhoneGapOrientationDetector must override or implement a supertype method

               

              if I set the hibernate-validator version to 4.1.0.Final, I get the following error

               

              [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-cordova/3.0-SNAPSHOT/errai-cordova-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/cordova/PhoneGapOrientationDetector.java'

              [INFO]          [ERROR] Line 26: The type OrientationDetector cannot be a superinterface of PhoneGapOrientationDetector; a superinterface must be an interface

              [INFO]          [ERROR] Line 44: The method startFiringOrientationEvents() of type PhoneGapOrientationDetector must override or implement a supertype method

              [INFO]          [ERROR] Line 64: The method setOrientationEventSource(Event<OrientationEvent>) of type PhoneGapOrientationDetector must override or implement a supertype method

              [INFO]          [ERROR] Line 69: The method stopFiringOrientationEvents() of type PhoneGapOrientationDetector must override or implement a supertype method

              [INFO]    [ERROR] Aborting compile due to errors in some input files

               

              It is the same error I get in my project. I will just switch off errai-cordova for now (I use it only marginally at the moment) and wait the next working snapshot.

               

              Thanks as usual

               

              ciao Francesco

              • 4. Re: compilation error
                Jonathan Fuerth Master

                Thanks for the reply, Francesco.

                 

                It appears this build problem was caused by some out-of-date Errai 3.0 snapshots in the nexus repository. OrientationDetector changed from abstract class to interface 6 days ago.

                 

                We've just shuffled the branches around, so Jenkins should publish good 3.0 snapshots within the next few hours.

                 

                Sorry for the inconvenience!

                 

                -Jonathan

                • 5. Re: compilation error
                  francesco milesi Newbie

                  thanks Jonathan,

                   

                  no inconvenience. I enjoy errai very much. The previous error has disappeared, now I have

                   

                  [INFO]    Validating units:

                  [INFO]       [WARN] Warnings in 'jar:file:/home/milesif/.m2/repository/com/googlecode/mgwt/mgwt/1.1.2/mgwt-1.1.2.jar!/com/googlecode/mgwt/ui/client/internal/CssCanvas.java'

                  [INFO]          [WARN] Line 93: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                  [INFO]          [WARN] Line 102: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                  [INFO]          [WARN] Line 119: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                  [INFO]          [WARN] Line 132: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                  [INFO]          [WARN] Line 142: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                  [INFO]          [WARN] Line 152: Referencing deprecated class 'com.googlecode.mgwt.ui.client.internal.CssCanvas'

                  [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-data-binding/3.0-SNAPSHOT/errai-data-binding-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/shared/api/annotations/Bound.java'

                  [INFO]          [ERROR] Line 89: No source code is available for type org.jboss.errai.databinding.client.api.Converter<M,W>; did you forget to inherit a required module?

                  [INFO]       [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-ui/3.0-SNAPSHOT/errai-ui-3.0-SNAPSHOT.jar!/org/jboss/errai/ui/shared/api/style/StyleBindingChangeHandler.java'

                  [INFO]          [ERROR] Line 25: No source code is available for type org.jboss.errai.databinding.client.api.PropertyChangeHandler<T>; did you forget to inherit a required module?

                  [INFO]          [ERROR] Line 27: No source code is available for type org.jboss.errai.databinding.client.api.PropertyChangeEvent<T>; did you forget to inherit a required module?

                  [INFO]    [ERROR] Aborting compile due to errors in some input files

                  [INFO] ------------------------------------------------------------------------

                  [INFO] BUILD FAILURE

                   

                   

                  I found out that my scripts has mvn -U. I will remove -U as soon as I have a working snapshot.

                   

                  thanks again

                   

                  ciao Francesco

                  • 6. Re: compilation error
                    Christian Sadilek Master

                    Hi Francesco,

                     

                    Are you still experiencing this problem with the latest snapshots? If so, can you verify that the errai-ui GWT module (org.jboss.errai.ui.UI) is inherited in your module. This should bring in the errai-data-binding module automatically.

                     

                    Cheers,

                    Christian

                    • 7. Re: compilation error
                      francesco milesi Newbie

                      Hi Christian,

                       

                      Sorry for the late response.

                      I had mistakenly deleted the DataBinding import: after adding it back again, it works. I do not need the UI module. As soon as I am back to work I will try with the UI module and let you know.

                       

                      Thanks

                       

                      ciao Francesco

                      • 8. Re: compilation error
                        francesco milesi Newbie

                        Hi Christian

                         

                        I verified that importing UI and leaving out Databinding it compiles without problems

                         

                        ciao Francesco

                        • 9. Re: compilation error
                          Victor Wjugow Newbie

                          Hi all,

                          I'm having a similar issue when I compile with strict parameter (without it app compiles). Here's what I get:

                           

                          Compiling module app.App

                          [INFO]    Validating units:

                          [INFO]       [ERROR] Errors in 'org/hibernate/validator/constraints/impl/FutureValidatorForReadableInstant.java'

                          [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

                          [INFO]          [ERROR] Line 32: The type FutureValidatorForReadableInstant must implement the inherited abstract method ConstraintValidator<Future,ReadableInstant>.isValid(ReadableInstant, ConstraintValidatorContext)

                          [INFO]          [ERROR] Line 32: ReadableInstant cannot be resolved to a type

                          [INFO]          [ERROR] Line 37: ReadableInstant cannot be resolved to a type

                          [INFO]       [ERROR] Errors in 'org/hibernate/validator/constraints/impl/FutureValidatorForReadablePartial.java'

                          [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

                          [INFO]          [ERROR] Line 32: The type FutureValidatorForReadablePartial must implement the inherited abstract method ConstraintValidator<Future,ReadablePartial>.isValid(ReadablePartial, ConstraintValidatorContext)

                          [INFO]          [ERROR] Line 32: ReadablePartial cannot be resolved to a type

                          [INFO]          [ERROR] Line 37: ReadablePartial cannot be resolved to a type

                          [INFO]       [ERROR] Errors in 'org/hibernate/validator/constraints/impl/PastValidatorForReadableInstant.java'

                          [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

                          [INFO]          [ERROR] Line 32: The type PastValidatorForReadableInstant must implement the inherited abstract method ConstraintValidator<Past,ReadableInstant>.isValid(ReadableInstant, ConstraintValidatorContext)

                          [INFO]          [ERROR] Line 32: ReadableInstant cannot be resolved to a type

                          [INFO]          [ERROR] Line 37: ReadableInstant cannot be resolved to a type

                          [INFO]       [ERROR] Errors in 'org/hibernate/validator/constraints/impl/PastValidatorForReadablePartial.java'

                          [INFO]          [ERROR] Line 23: The import org.joda cannot be resolved

                          [INFO]          [ERROR] Line 32: The type PastValidatorForReadablePartial must implement the inherited abstract method ConstraintValidator<Past,ReadablePartial>.isValid(ReadablePartial, ConstraintValidatorContext)

                          [INFO]          [ERROR] Line 32: ReadablePartial cannot be resolved to a type

                          [INFO]          [ERROR] Line 37: ReadablePartial cannot be resolved to a type

                          [INFO]       [ERROR] Errors in 'org/hibernate/validator/constraints/impl/SafeHtmlValidator.java'

                          [INFO]          [ERROR] Line 35: No source code is available for type org.jsoup.safety.Whitelist; did you forget to inherit a required module?

                          [INFO]          [ERROR] Line 62: No source code is available for type org.jsoup.Jsoup; did you forget to inherit a required module?

                          [INFO]       [ERROR] Errors in 'org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'

                          [INFO]          [ERROR] Line 72: The constructor NodeImpl(String) is undefined

                          [INFO]          [ERROR] Line 84: The constructor NodeImpl(Path.Node) is undefined

                          [INFO]          [ERROR] Line 95: The constructor NodeImpl(Path.Node) is undefined

                          [INFO]          [ERROR] Line 202: The constructor NodeImpl(String) is undefined

                          [INFO]          [ERROR] Line 204: The method setInIterable(boolean) is undefined for the type NodeImpl

                          [INFO]          [ERROR] Line 209: The method setIndex(Integer) is undefined for the type NodeImpl

                          [INFO]          [ERROR] Line 212: The method setKey(String) is undefined for the type NodeImpl

                          [INFO]    [ERROR] Aborting compile due to errors in some input files

                           

                          Any ideas? I've already ran with -U option. I'm using errai 3.0.0-Final

                           

                          And I have this in my gwt.xml

                              <inherits name='com.watopi.chosen.Chosen'/>
                             <inherits name="com.google.gwt.logging.Logging"/>

                                  <inherits name="org.jboss.errai.common.ErraiCommon" />

                                  <inherits name="org.jboss.errai.bus.ErraiBus" />

                                  <inherits name="org.jboss.errai.ioc.Container" />

                                  <inherits name="org.jboss.errai.ui.UI" />

                           

                                  <inherits name="org.jboss.errai.databinding.DataBinding" />

                                  <inherits name="org.jboss.errai.enterprise.CDI" />

                                  <inherits name="org.jboss.errai.enterprise.Jaxrs" />

                                  <inherits name="org.jboss.errai.ui.nav.Navigation" />

                                  <inherits name="com.google.gwt.query.Query" />

                                  <inherits name='com.eemi.gwt.tour.GwtTour'/>

                                  <inherits name="org.drools.ide.common.Common" />

                                  <inherits name="com.magick.Models" />

                                  <inherits name="org.hibernate.validator.HibernateValidator" />

                                  <inherits name="com.google.gwt.inject.Inject"/>

                                  <inherits name="com.google.gwt.resources.Resources" />

                                  <inherits name="com.google.gwt.i18n.I18N"/>

                          • 10. Re: compilation error
                            Max Barkley Apprentice

                            Hi Victor,

                             

                            It looks like you're using JPA validation. Unfortunately it is not possible to strict compile while using validation. This shouldn't cause any other problems.

                             

                            Cheers.