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

Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)iLife s 博客 http blog csdn net fei 年 1 月 10 号注 今天更新代码之后 突然出现一个问题 Tomcat 启动时 总是会出现 jvmfatalerro 错误导致 tomcat 无法正常启动 以下是错误信息 Afatalerrorh

2013年1月10号注:

今天更新代码之后,突然出现一个问题:Tomcat启动时,总是会出现jvm fatal error错误导致tomcat无法正常启动,以下是错误信息:

# # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (c1_Optimizer.cpp:271), pid=6048, tid=5404 # guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp # # JRE version: 6.0_29-b11 # Java VM: Java HotSpot(TM) Client VM (20.4-b02 mixed mode windows-x86 ) 2013-01-10 13:47:34,671 INFO hibernate.cfg.AnnotationBinder:419 -> Binding entity from annotated class: com.estone.www.spis.model.po.zd.sys.DPossession 2013-01-10 13:47:34,671 INFO cfg.annotations.EntityBinder:422 -> Bind entity com.estone.www.spis.model.po.zd.sys.DPossession on table d_possession 2013-01-10 13:47:34,671 INFO hibernate.cfg.AnnotationBinder:419 -> Binding entity from annotated class: com.estone.www.spis.model.po.zd.writ.DWritTemplate 2013-01-10 13:47:34,671 INFO cfg.annotations.EntityBinder:422 -> Bind entity com.estone.www.spis.model.po.zd.writ.DWritTemplate on table d_writ_template 2013-01-10 13:47:34,671 INFO hibernate.cfg.AnnotationBinder:419 -> Binding entity from annotated class: com.estone.www.spis.model.po.zd.writ.DWritType 2013-01-10 13:47:34,671 INFO cfg.annotations.EntityBinder:422 -> Bind entity com.estone.www.spis.model.po.zd.writ.DWritType on table d_writ_type # An error report file with more information is saved as: # D:\Program Files\apache-tomcat-6.0.20\bin\hs_err_pid6048.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #

在这里,导致本次错误的是这个方法:

org.hibernate.cfg.annotations.SimpleValueBinder.setType

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

代码:

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

 

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

选择使用的JRE,,点击编辑edit

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

将上边代码粘贴到此处,OK

2.如果是直接通过startup 启动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%

如图:

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

参考资料:感谢以下链接的朋友

http://seanhe.iteye.com/blog/

http://eric-flower.iteye.com/blog/

http://sind.iteye.com/blog/

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

 iLife’s 博客Thinking in life_我和1988_CSDN博客 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/233579.html原文链接:https://javaforall.net

(0)
上一篇 2025年7月7日 下午6:01
下一篇 2025年7月7日 下午6:22


相关推荐

  • vim and python

    vim and python

    2021年8月23日
    62
  • 操作系统概念(导论)

    操作系统概念(导论)SDU考试特别提醒:整无语了,遇到hmb老师出题就躺平了吧。八个论述两个计算(死锁检测、硬盘访问),论述题感觉像考研题,基本是结合xx谈谈xx这样。分数直接爆炸,心累了,呜呜。操作系统(概念)

    2022年7月1日
    28
  • python初级:基础知识-字符串

    python初级:基础知识-字符串

    2021年10月6日
    40
  • python中class的定义及使用_python中class的定义及使用

    python中class的定义及使用_python中class的定义及使用因为一直不太清楚面向对象的类和方法的编程思想,所以特地补了一下python-class的知识,在这里记录和分享一下。文章目录类和方法的概念和实例1.python类:`class`2.类的构造方法`__init__()`3.类中方法的参数`self`4.继承5.方法重写类的特殊属性与方法类的私有属性类的私有方法类和方法的概念和实例类(Class):用来描述具有相同的属性和方法的对象的集合。它定义了该集合中每个对象所共有的属性和方法。对象是类的实例。方法:类中定义的函数。类的构造方法__init.

    2022年5月3日
    63
  • 信息学奥赛一本通(C++)在线评测系统——基础(一)C++语言—— 1123:图像相似度

    信息学奥赛一本通(C++)在线评测系统——基础(一)C++语言—— 1123:图像相似度时间限制 1000ms 内存限制 65536KB 提交数 5813 通过数 3910 题目描述 给出两幅相同大小的黑白图像 用 0 1 矩阵 表示 求它们的相似度 说明 若两幅图像在相同位置上的像素点颜色相同 则称它们在该位置具有相同的像素点 两幅图像的相似度定义为相同像素点数占总像素点数的百分比 输入 第一行包含两个整数 m 和 n 表示图像的行数和列数

    2026年3月18日
    1
  • Typora主题收集

    Typora主题收集主题下载链接 https theme typora io theme Purple Purple css https blog csdn net chotin article details 颜色代码网站 https encycolorped cn b4b4baCSS 自制粉色 Typora 界面 https www bilibili com video av

    2026年3月16日
    1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号