0 Replies Latest reply on Jun 28, 2017 3:08 AM by Michael Altenburger

    No generator found for TranslationService after Upgrade to 4.0

    Michael Altenburger Newbie

      Hi,

       

      I recently started to upgrade from GWT 2.7 to GWT 2.8 und from Errai 3 to Errai 4. Now during GWT compilation I get the following error:

       

      java.lang.RuntimeException: no generator found for interface: org.jboss.errai.ui.client.local.spi.TranslationService
              at org.jboss.errai.config.rebind.AsyncGenerators.getFutureFor(AsyncGenerators.java:58)
              at org.jboss.errai.config.rebind.AsyncGenerationJob.submit(AsyncGenerationJob.java:109)
              at org.jboss.errai.config.rebind.AbstractAsyncGenerator.startAsyncGeneratorsAndWaitFor(AbstractAsyncGenerator.java:203)
              at org.jboss.errai.ui.rebind.TranslationServiceGenerator.generate(TranslationServiceGenerator.java:117)
              at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
              at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)
              at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:103)
              at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
              at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)
              at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:251)
              at com.google.gwt.dev.PrecompilationContextCreator$1.getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)
              at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:519)
              at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:487)
              at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.maybeHandleMagicMethodCall(UnifyAst.java:415)
              at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:402)
              at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:265)
              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:118)
              at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:76)
              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:118)
              at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)
              at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88)
              at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)
              at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:94)
              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:139)
              at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
              at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.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.JModVisitor.accept(JModVisitor.java:265)
              at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:786)
              at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:778)
              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:1401)
              at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:896)
              at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)
              at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)
              at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)
              at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)
              at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)
              at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
              at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
              at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
              at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
              at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
              at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
              at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
              at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
              at com.google.gwt.dev.Compiler.main(Compiler.java:125)
      

       

       

      I changed nothing regarding internationalization and even if I remove all uses of the TranslationService in my code, this error still persists.

       

      Appreciate any help on this problem!

       

      Regards,

      Michael