我正在使用ant 1.7.1
来编译我的代码。在运行ant.bat命令时,即使增加堆大小,我也会遇到异常。
An annotation processor threw an uncaught exception.
[javac] Consult the following stack trace for details.
[javac] java.lang.StackOverflowError
[javac] at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:54)
[javac] at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
[javac] at java.lang.reflect.Field.get(Field.java:379)
[javac] at lombok.core.AST.buildWithField0(AST.java:348)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
[javac] at lombok.core.AST.buildWithField(AST.java:249)
[javac] at lombok.javac.JavacAST.drill(JavacAST.java:272)
[javac] at lombok.javac.JavacAST.buildStatementOrExpression(JavacAST.java:267)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:167)
[javac] at lombok.javac.JavacAST.buildTree(JavacAST.java:61)
[javac] at lombok.core.AST.buildWithField0(AST.java:351)
答案 0 :(得分:0)
检查龙目岛的版本。他们在0.7.1中遇到了一些问题。使用0.7.2或更高。
抛出此错误表示应用程序的堆栈因深度递归而耗尽,有时甚至是永无止境的递归。
参考Link。