compiling problem when using GWT.runAsync()

43 views
Skip to first unread message

Rodrigue ...

unread,
Apr 1, 2013, 7:03:25 AM4/1/13
to google-we...@googlegroups.com
Hi everybody

I applied the idea of Mr. Thomas Broyer (you can find it on this link; https://gist.github.com/tbroyer/3038878). This is the first time I'm using the code splitting feature in GWT. Since I did it, I'm facing a strange gwt compiler error. The stacktrace is below (the line in Bold is exactly where I call GWT.runAsync() )

What am I doing wrong here?

Thank you 

 [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.JVisitor.accept(JVisitor.java:128)
      at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:120)
      at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
      at com.google.gwt.dev.jjs.ast.JRunAsync.traverseOnSuccess(JRunAsync.java:101)
      at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.traverseFromRunAsync(ControlFlowAnalyzer.java:1008)
      at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.traverseFromRunAsyncs(ControlFlowAnalyzer.java:1016)
      at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer.traverseEverything(ControlFlowAnalyzer.java:977)
      at com.google.gwt.dev.jjs.impl.Pruner.execImpl(Pruner.java:622)
      at com.google.gwt.dev.jjs.impl.Pruner.exec(Pruner.java:497)
      at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimizeLoop(JavaToJavaScriptCompiler.java:863)
      at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimize(JavaToJavaScriptCompiler.java:778)
      at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:714)
      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.NullPointerException
      at com.google.gwt.dev.jjs.impl.ControlFlowAnalyzer$RescueVisitor.visit(ControlFlowAnalyzer.java:383)
      at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:240)
      at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:125)
      ... 21 more
            [ERROR] at WarehouseActivityMapper.java(54): <source info not available>
               com.google.gwt.dev.jjs.ast.JMethodCall
Reply all
Reply to author
Forward
0 new messages