PDA

View Full Version : Switched to GWT 220 (GXT 223) -> NullPointerException



Eich
23 Mar 2011, 12:08 AM
Hello there :) ,
first, for your information -> i have postet the same "issue" in the gwt-group (http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b7d5bec80185a9f3#).

My problem:
I want/-ed to change to the new gwt/gxt-version and got the following warning:

[WARN] Setting configuration property named compiler.max.vars.per.var in com.google.gwt.core.CompilerParameters that has not been previously defined. This may be disallowed in the future.

After this warning occurs an error (both -> development mode and during compiling):

[ERROR] Unexpected
java.lang.NullPointerException
at com.google.gwt.dev.javac.JsniChecker.getSuppressedWarnings(JsniChecker.java:454)
at com.google.gwt.dev.javac.JsniChecker$JsniDeclChecker.visit(JsniChecker.java:121)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:209)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1239)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:687)
at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:499)
at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:448)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:69)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:195)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:617)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:193)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:390)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:275)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:325)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:512)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)

I hope somebody had the same error and fixed it already ;D .

Thanks for every hint!

Greetings Daniel