com.google.gwt.dev.jjs.InternalCompilerException

Unexpected error during visit.

Samebug tips4

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

I had to build one fat jar that will include all dependencies from the other jars that i wanted to use.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web225

  • Unexpected error during visit.
  • Unexpected error during visit.
  • Unexpected error during visit.
  • Stack trace

    • com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit. at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)[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:118)[INFO] at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:72)[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:118)[INFO] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:49)[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:88)[INFO] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:331)[INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)[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:139)[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)[INFO] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.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.JModVisitor.accept(JModVisitor.java:265)[INFO] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:785)[INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:777)[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:1379)[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:875)[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1410)[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1222)[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:1140)[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:255)[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:204)[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:155)[INFO] at com.google.gwt.dev.Compiler.compile(Compiler.java:144)[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)[INFO] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)[INFO] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:125)[INFO] Caused by: java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal at java.lang.ClassLoader.defineClass1(Native Method)[INFO] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)[INFO] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[INFO] at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)[INFO] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)[INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)[INFO] at java.security.AccessController.doPrivileged(Native Method)[INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:361)[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[INFO] at org.apache.xerces.jaxp.DocumentBuilderImpl.newDocument(Unknown Source)[INFO] at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.<init>(W3cDocumentBuilder.java:51)[INFO] at com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java:69)[INFO] at com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerator.java:208)[INFO] at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:183)[INFO] at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:128)[INFO] at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)[INFO] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:745)[INFO] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:103)[INFO] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)[INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:262)[INFO] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:251)[INFO] at com.google.gwt.dev.PrecompilationContextCreator$1.getAllPossibleRebindAnswers(PrecompilationContextCreator.java:86)[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createStaticRebindExpression(UnifyAst.java:493)[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.createRebindExpression(UnifyAst.java:463)[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:588)[INFO] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:293)[INFO] at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:268)[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] ... 40 more Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[INFO] ... 72 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 11 months ago
    1587 more bugmates