-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GWT 2.8 RC2 - An internal compiler exception occurred #9411
Comments
The error seems to points to a classpath issue. Reopen it if/when you can create a small repro case. |
Hi, got the same problem here. Can't figure out what would cause the issue yet. This only happens with SuperDevMode. |
@rluble It looks like, for some reason, the compiler maps @rsertelon Is this is the exact same error? Can you create a small repro case? or maybe it's in an opensource project? |
@tbroyer Same error yes. However, not sure I can create a simple reproduction case. What would generate such confusion for the compiler? Another implementation of Stream.java ? |
I've just checked another thing or two.
I've compared the classpaths, they are identical for the call to gwt-maven-plugin (be it with compile or run-codeserver). So, AFAIC, it does not seem to be a classpath problem. |
Just tried to isolate the problem for the last hour, but couldn't. I'm afraid I can't really spend more time on this issue, if I find some, I'll post more information. |
I saw in your profile that you have a lot of OS projects. As tbroyer asked, is this one? If yes, in my opinion how small small is, is debatable. If I were you I would zip it together and attach it. |
Nope, not an OSS project, a proprietary one. I tried to tear the project down to the problem, but without success as said above :) |
I'll have a look. BTW If you are using the snapshot you should be seeing a different error. UnifyAst no longer throws NoSuchMethodException (see f4ce942). |
Hi, I've tried today with rc3, and no more luck, although it's not the same method that is missing now:
And this time it appears at compilation time. I'm using ECJ in my build for our JSP compilation, could it be linked? I can't see any dependency on ECJ in GWT (in maven dependencies), do you have a dependency on ECJ, and if so, which version? Thanks, Edit: It seems that you have a custom version of ECJ 3.11.2 for gwt-dev.jar. In my project, as we're using java8, I use 4.4.2. This wasn't a problem in 2.8.0-beta1, so maybe it has no link to the underlying issue at all ;) |
Probably. |
It compiles fine with the runtime scope (still don't know how I could let it slip ;)). Both with gwt-maven-plugin and SDM via Eclipse. Thanks for your help @tbroyer ! Edit: Oops, I might have not tested it correctly (forgot some stash in git) Will post results ASAP. |
Hi I have a very similar error but on a different class, I dont use any explicit ECJ. Do i have to disable it ? how ? What might be the rootcause of my issue ? All the modules got loaded Then the below log and the errror
|
Check your classpath ( |
What should i be looking for from the dependency tree ? Below is my dependency tree.
|
As said above, split your client and server code into separate modules to avoid such clashes. (there might be workarounds, as suggested above, but they're just that: workarounds) Ask on the Google Group (or Stackoverflow) if you need help doing so. |
When switching my working GWT 2.7 project to 2.8 RC2 I get this:
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
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:118)
at com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
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:92)
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:785)
at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:777)
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:1379)
at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:875)
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.codeserver.Recompiler.doCompile(Recompiler.java:362)
at com.google.gwt.dev.codeserver.Recompiler.compile(Recompiler.java:175)
at com.google.gwt.dev.codeserver.Recompiler.recompile(Recompiler.java:134)
at com.google.gwt.dev.codeserver.Outbox.recompile(Outbox.java:135)
at com.google.gwt.dev.codeserver.JobRunner.recompile(JobRunner.java:113)
at com.google.gwt.dev.codeserver.JobRunner.access$000(JobRunner.java:37)
at com.google.gwt.dev.codeserver.JobRunner$2.run(JobRunner.java:90)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchMethodError: java.lang.Object.Object(I)
at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1595)
at com.google.gwt.dev.jjs.impl.UnifyAst.access$1000(UnifyAst.java:131)
at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.visit(UnifyAst.java:405)
at com.google.gwt.dev.jjs.ast.JVisitor.visit(JVisitor.java:683)
at com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:73)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
... 41 more
[ERROR] at Stream.java(762): new Object(arg0)
com.google.gwt.dev.jjs.ast.JNewInstance
[ERROR] at Stream.java(762): return new Object(arg0)
com.google.gwt.dev.jjs.ast.JReturnStatement
[ERROR] at Stream.java(762): {
return new Object(arg0);
}
com.google.gwt.dev.jjs.ast.JBlock
[ERROR] at Stream.java(762): {
return new Object(arg0);
}
com.google.gwt.dev.jjs.ast.JMethodBody
[ERROR] at Stream.java(762): java.util.stream.Stream$StreamSource$0methodref$ctor$Type.apply(I)Ljava/lang/Object;
com.google.gwt.dev.jjs.ast.JMethod
[ERROR] Compiler returned false
[WARN] recompile failed
job's progress set to ERROR:
I don't use Maven for reasons, maybe I forgot to download a required jar? ... I would expect another error message then. What I did was: I replaced all GWT files with their new counterparts, switched guava/-gwt to git-master and updated their dependencies as far as I can see.
The text was updated successfully, but these errors were encountered: