Play 框架 1.2.4 PROD 预编译在 Java 7 中失败
我尝试使用 Java 7 在 PROD 模式下运行我的 play 应用程序,我感到很惊讶。预编译失败:
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
I have try to run my play application in PROD mode with Java 7 and I was surprised. Precompiling fails:
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
#
May be someone has the same problem?
My OS: Gentoo Linux
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在使用 OpenJDK 6 时遇到了类似的问题。原因是在我的应用程序中同时使用了 Security 和 CRUD 模块。我仍然不确定为什么,但当我删除其中一个模块时,它起作用了。
就我而言,迁移到 Sun JDK 6 解决了这个问题。由于您已经在使用 HotSpot,除了更新到非 beta 版本之外,我建议禁用一些模块(CRUD 模块,如果您使用它,可能是第一个目标)以查看它们是否是失败的原因。
I had a similar problem with OpenJDK 6. The reason was using both Security and CRUD modules in my app. I'm not still sure why but when I removed one of the modules it worked.
In my case moving to Sun JDK 6 sovled the issue. As you are already using HotSpot, besides updating to a non-beta version I would suggest disabling some modules (CRUD module, if you use it, may be the first target) to see if they are the reason it fails.
我们在
Windows 7 JDK 1.7 update 3
上遇到了类似的问题,并更新到 4 修复了该问题。We had similar issue on
Windows 7 JDK 1.7 update 3
and updating to 4 fixed it.