服务器启动报错(Jetty、Tomcat),A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关

原创 2015年11月18日 11:25:28

新电脑部署B2C项目,启动服务时报错如下:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (c1_Optimizer.cpp:271), pid=19800, tid=19896
#  guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp
#
# JRE version: 6.0_39-b04
# Java VM: Java HotSpot(TM) Client VM (20.14-b01 mixed mode windows-x86 )
# An error report file with more information is saved as:
# E:\WorkSpace\b2cCeshi\online\hs_err_pid19800.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

网上解释归结于:JIT在做编译优化的时候处理时出错,可能是触发了JVM的编译器的BUG导致的。SUN(Oracle)提供了相关的文档说明。
文档地址:http://www.oracle.com/technetwork/java/javase/crashes-137240.html#gbyzu
在这里,导致本次错误的是这个方法:
org.hibernate.cfg.annotations.SimpleValueBinder.setType
解决办法:让jvm跳过该方法的编译优化

1.如果是eclipse下启动服务,则在myeclipse-preference-java-installed jres 里面设置当前使用JDK点击Edit, 在 defalt vm arguments 填入下边的代码就可以了!
代码:

-XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder,setType 

2.如果直接在外部启动Tomcat服务器的话
则需要修改以下文件 Windows下,在文件/bin/catalina.bat,Unix下,在文件/bin/catalina.sh找到

set JAVA_OPTS=%JAVA_OPTS%  %LOGGING_CONFIG%   

修改为以下内容即可:

set JAVA_OPTS=%JAVA_OPTS% -XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder,setType %LOGGING_CONFIG%

参考资料:
http://seanhe.iteye.com/blog/905997
http://eric-flower.iteye.com/blog/1447080
http://sind.iteye.com/blog/1132459

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)

iLife's 博客http://blog.csdn.net/fei1502816  2013年1月10号注: 今天更新代码之后,突然出现一个问题:Tomcat启动时,总是会出现jvm...

Tomcat启动报A fatal error has been detected by the Java Runtime Environment

# # A fatal error has been detected by the Java Runtime Environment: # #  SIGSEGV (0xb) at pc=0x0...

A fatal error has been detected by the Java Runtime Environment:

# # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (javaClasse...

A fatal error has been detected by the Java Runtime Environment:

今天在用Junit做单元测试,发现出现了一下奇葩的问题: 打开它所说的Log文件,具体错误如下: # # A fatal error has been detected by the J...

Fedora 17 下运行Kettle遇到"A fatal error has been detected by the Java Runtime Environment"

遇到此问题十分纠结,具体的报错信息如下: # A fatal error has been detected by the Java Runtime Environment: # # SIGS...

JNI:一个典型的错误——A fatal error has been detected by the Java Runtime Environment

原因:传递给本地函数的对象为null // string操作 class JNIString { static { System.loadLibrary("JNIString"); ...

an unexpected error has been detected by java runtime environment(转载)

本人在用jni调用.dll的时候,经常碰见这类问题,于是在网上查了相关的资料,但最终也没有找到最合理的解释,就整理一些思路: 1 修改jvm的内存大小,把size增大一点 2 呵呵 很感谢...

An unexpected error has been detected by Java Runtime Environment

最近团队内部遇到一个非常奇怪的问题。网上有人说是sun公司的bug,我在这里贴一下,有兴趣的同志可以研究一下。据说,换一个java版本就好了,团队内部正在进行升级java版本。sun公司官网解释:ht...

an unexpected error has been detected by java runtime environment

an unexpected error has been detected by java runtime environment 本人在用jni调用.dll的时候,经常碰见这类问题,于是在...

jdk重新安装后报错,Error:opening registry key 'Software/JavaSoft/Java Runtime Environment...'

出现的问题: 之前安装了好几个版本的JDK,直接在安装路径的位置删除了文件夹,然后重装就提示没卸载干净重装不了。之后在控制面板的位置删除了JDK之后又删除了注册表中的JavaSoft,这下子可以重新安...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)