我在 Koans 上运行 JUnit 测试时遇到问题neo4j 教程 https://github.com/jimwebber/neo4j-tutorial我在 Windows 7 上使用以下版本的 Intellij:
IntelliJ IDEA 2016.1.3 Build #IC-145.1617,构建于 2016 年 6 月 3 日 JRE:
1.8.0_92-b14 amd64 JVM:Oracle Corporation 的 Java HotSpot(TM) 64 位服务器 VM
我已经生成了 eclipse 的东西ant generate.eclipse.project
如自述文件中所写。然而,当我尝试运行公案时,我面临着一个问题StackOverflowErrror
这是堆栈跟踪的一部分:
Information:Using javac 1.7.0_80 to compile java sources
...
Information:java: at com.sun.tools.javac.comp.AttrContext.dup(AttrContext.java:92)
Information:java: at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1417)
Information:java: at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1321)
Information:java: at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
Information:java: at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
Information:java: at com.sun.tools.javac.comp.Attr.visitSelect(Attr.java:2247)
Information:java: at com.sun.tools.javac.tree.JCTree$JCFieldAccess.accept(JCTree.java:1677)
Information:java: at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:449)
Information:java: at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1521)
Information:java: Errors occurred while compiling module 'neo4j-tutorial'
Information:2016/06/23 16:57 - Compilation completed with 1 error and 32 warnings in 1s 379ms
Error:java: java.lang.StackOverflowError
我将本次测试的VM选项设置如下:
-ea
-Xss1m
可能是什么问题呢?
将 -Xss4m 添加到构建过程 VM 选项应该会有所帮助
构建、执行、部署 -> 编译器 -> 转到属性“Shared Build Process VM Option”并将其设置为 -Xss4M
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)