2016-12-08 13 views
2

컴파일 중에이 오류가 발생했을 수 있습니다.GWT - Java AST를 구성하는 중 오류가 발생했습니다

이 아키타 유형 https://github.com/ArcBees/Arcbees-Archetypes에서 프로젝트를 생성했으며 GWT를 2.8.0으로 업데이트하고 GWTP를 1.5.3으로 변경했습니다.

[INFO] [ERROR] An internal compiler exception occurred 
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST 
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3099) 
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:352) 
[INFO] at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.traverse(AllocationExpression.java:670) 
[INFO] at org.eclipse.jdt.internal.compiler.ast.Assignment.traverse(Assignment.java:260) 
[INFO] at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:347) 
[INFO] at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1379) 
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3058) 
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:141) 
[INFO] at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384) 
[INFO] at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470) 
[INFO] at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:985) 
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:339) 
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580) 
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513) 
[INFO] at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499) 
[INFO] at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668) 
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:255) 
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229) 
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:145) 
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:206) 
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:158) 
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:120) 
[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:127) 
[INFO] Caused by: java.lang.NullPointerException 
[INFO] at com.google.gwt.dev.jjs.impl.ReferenceMapper.get(ReferenceMapper.java:99) 
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.pushNewExpression(GwtAstBuilder.java:2642) 
[INFO] at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:350) 
[INFO] ... 23 more 
[INFO] [ERROR] at AbstractStringBuilder.java(137): new String(buffer) 
[INFO]  org.eclipse.jdt.internal.compiler.ast.AllocationExpression 
[INFO] Shutting down PersistentUnitCache thread 

답변

1

pom.xml 파일은 GWTP 아키가 버전 불일치 결과 GWT-DEV-2.7.0에 내재 의존성이 발생. 2.8.0에 명시 적 종속성을 추가하십시오.

<dependency> 
     <groupId>com.google.gwt</groupId> 
     <artifactId>gwt-dev</artifactId> 
     <version>2.8.0</version> 
     <scope>provided</scope> 
    </dependency>