2 Replies Latest reply on Nov 25, 2013 9:34 AM by Max Barkley

    GWT compile error with Errai 2.4.2.Final

    Hristo Stoyanov Master

      Hi all,

       

      I am getting the below very confusing stack trace when compiling with GWT, where the issue seems to be:

       

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

       

      I checked the compile-time JAR: errai-marshalling-2.4.2.Final.jar, and there is no such class indeed. Where is the missing class supposed to be found (which JAR)?

       

      Btw, here is my dependency configuration with Gradle - is it correct?

      =================Gradle======================================

      dependencies {

        

          //Java EE

          providedCompile "javax:javaee-api:6.0"

       

       

          //GWT - used only during GWT compilation

          compile fileTree (dir: gwt_sdk_root, includes:["gwt-servlet.jar"])

          gwt fileTree (dir: gwt_sdk_root, includes: ["gwt-dev.jar", "gwt-user.jar", "validation-api*.jar"])

          //gwt "com.google.guava:guava-gwt:13.0.1"

          //gwt "org.jboss.errai:errai-codegen-gwt:"+project.erraiVersion

          //gwt "org.jboss.errai:errai-data-binding:"+project.erraiVersion

          //gwt "org.jboss.errai:errai-javax-enterprise:"+project.erraiVersion

          //gwt "org.jboss.errai:errai-jaxrs-client:"+project.erraiVersion

          //gwt "org.jboss.errai:errai-jpa-client:"+project.erraiVersion

          //gwt "org.jboss.errai:errai-navigation:"+project.erraiVersion

          //gwt "org.jboss.errai:errai-tools:"+project.erraiVersion

         

          //Errai

          compile "org.jboss.errai:errai-javaee-all:"+project.erraiVersion

          //compile "org.jboss.errai:errai-cordova:"+project.erraiVersion

          compile "org.jboss.errai:errai-jboss-as-support:"+project.erraiVersion

          compile "org.slf4j:slf4j-log4j12:1.6.1"

          compile 'com.google.guava:guava:13.0.1'

      }

       

       

      =====================Stack Trace=============================

      ...

      Compiling module com.docitt.web.WebApp

      log4j:WARN No appenders could be found for logger (org.jboss.errai.common.rebind.CacheUtil).

      log4j:WARN Please initialize the log4j system properly.

      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

         Computing all possible rebind results for 'org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader'

            Rebinding org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader

               Invoking generator org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator

                  Checking ErraiApp.properties for configured types ...

         Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

      java.util.concurrent.ExecutionException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/enterprise/util/TypeLiteral

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)

        at java.util.concurrent.FutureTask.get(FutureTask.java:188)

        at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

        at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

        at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:100)

        at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:221)

        at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

        at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

        at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

        at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

        at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

        at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

        at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

        at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

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

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

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

                  [ERROR] Error generating MarshallerFactoryImpl

      java.util.concurrent.ExecutionException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/enterprise/util/TypeLiteral

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)

        at java.util.concurrent.FutureTask.get(FutureTask.java:188)

        at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

        at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

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

        at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:100)

        at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:221)

        at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

        at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

        at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

        at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

        at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

        at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

        at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

        at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        at com.gat com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:41)

      ogle.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)

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

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

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

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

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

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

        at com.google.gwt.dev.jjs.ast.itor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/enterprise/util/TypeLiteral

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at javClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:242)

        at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:42)

        at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:39)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

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

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

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

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

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

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

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

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

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

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

      Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/enterprise/util/TypeLiteral

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:242)

        at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:42)

        at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:39)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:744)

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

            Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

               Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  Generating Marshallers Bootstrapper...

         [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)

            [WARN] org.jboss.errai.marshalling.client.api.MarshallerFactoryImpl

         [ERROR] An internal compiler exception occurred

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

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

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

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

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

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

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

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

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

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

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

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:744)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        at com.googdev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(Unifva:237)

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

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

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

        ... 45 more

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

               com.google.gwt.dev.jjs.ast.JMethodCall

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

               com.google.gwt.dev.jjs.ast.JCastOperation

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

               com.google.gwt.dev.jjs.ast.JBinaryOperation

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

               com.google.gwt.dev.jjs.ast.JExpressionStatement

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

        InitVotes.waitFor(MarshallerFramework.class);

        MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

        ParserFactory.registerParser(new MarshallerFramework$1());

        InitVotes.voteFor(MarshallerFramework.class);

      }

               com.google.gwt.dev.jjs.ast.JBlock

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

        Object.$clinit();

        {

          InitVotes.waitFor(MarshallerFramework.class);

          MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

          ParserFactory.registerParser(new MarshallerFramework$1());

          InitVotes.voteFor(MarshallerFramework.class);

        }

      }

               com.google.gwt.dev.jjs.ast.JBlock

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

        Object.$clinit();

        {

          InitVotes.waitFor(MarshallerFramework.class);

          MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

          ParserFactory.registerParser(new MarshallerFramework$1());

          InitVotes.voteFor(MarshallerFramework.class);

        }

      }

               com.google.gwt.dev.jjs.ast.JMethodBody

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

       

       

               com.google.gwt.dev.jjs.ast.JMethod

      :docitt-web:compileGwt FAILED

        • 1. Re: GWT compile error with Errai 2.4.2.Final
          Hristo Stoyanov Master

          Googling around, I found this discussion:

          java.lang.NoClassDefFoundError: org.jboss.errai.marshalling.client.api.MarshallerFactoryImpl

           

          I already have the strict option for compilation,  adding:

             providedCompile "javax.enterprise:cdi-api:1.0-SP4"

           

          was of no help - I am still getting the same errors.

           

          ==== Gradle Dependencies==============

          dependencies {

           

              //Errai provided compile

              providedCompile "com.google.guava:guava-gwt:13.0.1"

              providedCompile "javax.enterprise:cdi-api:1.0-SP4"

           

              //Java EE

              providedCompile "javax:javaee-api:6.0"

           

           

              //GWT

              compile fileTree (dir: gwt_sdk_root, includes:["gwt-servlet.jar"])

              gwt fileTree (dir: gwt_sdk_root, includes: ["gwt-dev.jar", "gwt-user.jar", "validation-api*.jar"])

            

              //Errai

              compile "org.jboss.errai:errai-javaee-all:"+project.erraiVersion

              //compile "org.jboss.errai:errai-cordova:"+project.erraiVersion

              compile "org.jboss.errai:errai-jboss-as-support:"+project.erraiVersion

              compile "org.slf4j:slf4j-log4j12:1.6.1"

              compile "com.google.guava:guava:13.0.1"

           

           

          }

           

          ==========Module===============

          <module rename-to='webapp'>

             

              <!-- Inherit Errai modules.                        -->

             <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.ui.nav.Navigation" />

             <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.jpa.JPA" />

             <inherits name="org.jboss.errai.jpa.sync.DataSync" />

           

           

           

           

           

            <!-- Specify the paths for translatable code-->

            <source path='client'/>

            <source path='shared'/>

           

           

          </module>

           

           

           

          ======== Stack Trace =======================

          Compiling module com.docitt.web.WebApp

          log4j:WARN No appenders could be found for logger (org.jboss.errai.common.rebind.CacheUtil).

          log4j:WARN Please initialize the log4j system properly.

          log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

             Computing all possible rebind results for 'org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader'

                Rebinding org.jboss.errai.enterprise.client.jaxrs.JaxrsProxyLoader

                   Invoking generator org.jboss.errai.enterprise.rebind.JaxrsProxyLoaderGenerator

                      Checking ErraiApp.properties for configured types ...

             Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'

                Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                   Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

          java.util.concurrent.ExecutionException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/el/ELResolver            Generating Marshallers Bootstrapper...

           

           

            at java.util.concurrent.FutureTask.report(FutureTask.java:122)

            at java.util.concurrent.FutureTask.get(FutureTask.java:188)

            at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

            at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

            at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:100)

            at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:221)

            at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

            at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

            at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

            at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

            at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

            at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

            at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

            at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

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

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

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

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

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

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

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

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

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

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

                      [ERROR] Error generating MarshallerFactoryImpl

          java.util.concurrent.ExecutionException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/el/ELResolver

            at java.util.concurrent.FutureTask.report(FutureTask.java:122)

            at java.util.concurrent.FutureTask.get(FutureTask.java:188)

            at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

            at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

            at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:100)

            at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:221)

            at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)

            at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)

            at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

            at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)

            at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)

            at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)

            at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

            at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)

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

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

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

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

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

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

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

            at com.google.gwt.dev..JCastOperation.traverse(JCastOperation.java:65)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            at com.google.gwt.devt.JBlock.traverse(JBlock.java:83)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            at com.google.gwt.dev.jjs.ast.JMor.traverse(JModVisitor.java:361)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/el/ELResolver

            at java.lang.ClassLoader.defineClass1(Native Metat com.google.gwt.dev.Precompile.precompile(Precompile.java:229)

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

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

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

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

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

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

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

          Caused by: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/el/ELResolver

            at java.lang.ClassLoader.defineClass1(Native Method)

            at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

            at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

            at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

            at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

            at java.lang.Class.getDeclaredMethods0(Native Method)

            at java.lang.Class.priveclaredMethods(Class.java:2531)

          hod)

            at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

            at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

            at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

            at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

            at java.security.AccessController.doPrivileged(Native Method)

            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

            at java.lang.Class.getDeclaredMethods0(Native Method)

            at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)

            at java.lang.Class.getDeclaredMethods(Class.java:1855)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPoints(ObserversMarshallingExtension.java:115)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.visit(ObserversMarshallingExtension.java:145)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPoints(ObserversMarshallingExtension.java:108)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPointsInClassPath(ObserversMarshallingExtension.java:90)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.configure(ObserversMarshallingExtension.java:57)

            at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:202)

            at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.generate(MarshallerGeneratorFactory.java:142)

            at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:242)

            at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:42)

            at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:39)

            at java.util.concurrentTask.run(FutureTask.java:262)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

            at java.lang.Thread.run(Thread.java:744)

            at java.lang.Class.getDeclaredMethods(Class.java:1855)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPoints(ObserversMarshallingExtension.java:115)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.visit(ObserversMarshallingExtension.java:145)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPoints(ObserversMarshallingExtension.java:108)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPointsInClassPath(ObserversMarshallingExtension.java:90)

            at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.configure(ObserversMarshallingExtension.java:57)

            at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:202)

            at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.generate(MarshallerGeneratorFactory.java:142)

            at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:242)

            at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:42)

            at org.jboss.errai.config.rebind.AbstractAsyncGenerator$1.call(AbstractAsyncGenerator.java:39)

            at java.util.concurrent.FutureTask.run(FutureTask.java:262)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

            at java.lang.Thread.run(Thread.java:744)

                Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                   Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                      Generating Marshallers Bootstrapper...

                Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                   Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                      Generating Marshallers Bootstrapper...

                Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                   Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                      Generating Marshallers Bootstrapper...

                Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                   Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                      Generating Marshallers Bootstrapper...

                Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                   Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                      Generating Marshallers Bootstrapper...

             [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)

                [WARN] org.jboss.errai.marshalling.client.api.MarshallerFactoryImpl

             [ERROR] An internal compiler exception occurred

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            at com.google.gwt.dev..JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            at com.google.gwt.dev.CompileTaskRunner.doRun(ComkRunner.java:88)

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

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

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

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

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

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

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

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

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

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

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

            ... 45 more

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

                   com.google.gwt.dev.jjs.ast.JMethodCall

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

                   com.google.gwt.dev.jjs.ast.JCastOperation

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

                   com.google.gwt.dev.jjs.ast.JBinaryOperation

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

                   com.google.gwt.dev.jjs.ast.JExpressionStatement

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

            InitVotes.waitFor(MarshallerFramework.class);

            MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

            ParserFactory.registerParser(new MarshallerFramework$1());

            InitVotes.voteFor(MarshallerFramework.class);

          }

                   com.google.gwt.dev.jjs.ast.JBlock

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

            Object.$clinit();

            {

              InitVotes.waitFor(MarshallerFramework.class);

              MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

              ParserFactory.registerParser(new MarshallerFramework$1());

              InitVotes.voteFor(MarshallerFramework.class);

            }

          }

                   com.google.gwt.dev.jjs.ast.JBlock

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

            Object.$clinit();

            {

              InitVotes.waitFor(MarshallerFramework.class);

              MarshallerFramework.marshallerFactory = (MarshallerFactory) GWT.create(MarshallerFactory.class);

              ParserFactory.registerParser(new MarshallerFramework$1());

              InitVotes.voteFor(MarshallerFramework.class);

            }

          }

                   com.google.gwt.dev.jjs.ast.JMethodBody

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

           

           

                   com.google.gwt.dev.jjs.ast.JMethod

          :docitt-web:compileGwt FAILED

          • 2. Re: GWT compile error with Errai 2.4.2.Final
            Max Barkley Expert

            Hi Hristo,

             

            The MarshallerFactoryImpl is not packaged in the jar because it is generated at compile time. The fact that it is missing is indicative of another error while compiling it.

             

            I believe the real cause of your initial problem was this line:

            java.util.concurrent.ExecutionException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/enterprise/util/TypeLiteral


            And I think adding the cdi-api helped because it looks like there is a different cause for that error:

            java.util.concurrent.ExecutionException: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/el/ELResolver


            It looks like ELResolver can be found in javax.el:el-api:2.2. Can you try adding this dependency as well and see if it helps?


            Cheers.