Play framework 1.2.4 PROD precompiling fails with Java 7

孤街醉人 提交于 2019-12-10 15:08:25

问题


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


回答1:


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.




回答2:


We had similar issue on Windows 7 JDK 1.7 update 3 and updating to 4 fixed it.



来源:https://stackoverflow.com/questions/8599520/play-framework-1-2-4-prod-precompiling-fails-with-java-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!