Play框架1.2.4 PROD预编译失败,使用Java 7

时间:2011-12-22 04:45:36

标签: playframework java-7

我尝试用Java 7在PROD模式下运行我的播放应用程序,我感到很惊讶。预编译失败:

10:28:18,819 INFO  ~ Precompiling ...
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb6ed766c, pid=27336, tid=2673077104
#
# JRE version: 7.0_01-b08
# Java VM: Java HotSpot(TM) Server VM (21.1-b02 mixed mode linux-x86 )
# Problematic frame:
# V  [libjvm.so+0x4fc66c]  PhaseIdealLoop::build_loop_late_post(Node*)+0x15c
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /media/projects/myApp/hs_err_pid27336.log
[thread -1231336592 also had an error]
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

可能有人有同样的问题吗?

我的操作系统:Gentoo Linux

2 个答案:

答案 0 :(得分:2)

我在OpenJDK 6中遇到了类似的问题。原因是我的应用程序中同时使用了安全和CRUD模块。我不确定为什么,但是当我删除其中一个模块时它工作了。

在我的案例中,转向Sun JDK 6解决了这个问题。由于您已经在使用HotSpot,除了更新到非beta版本之外,我建议禁用某些模块(CRUD模块,如果您使用它,可能是第一个目标),看看它们是否是失败的原因。

答案 1 :(得分:1)

我们在Windows 7 JDK 1.7 update 3上遇到了类似的问题,并且更新为4修复了它。