A fatal error has been detected by the Java Runtime Environment

IDEA无法打开 IDEA无法打开 IDEA 无法打开在 C:\Users\Theodore\java_error_in_idea_%p.log 出现报错的日志文件 报错信息如下 # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff81d245140, pid=11188, tid=1212 # # JRE version 阅读详情

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

        分类:            服务器 1255人阅读 评论(2) 收藏 举报

iLife's 博客http://blog.youkuaiyun.com/fei1502816


2013年1月10号注:

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

  1. # 
  2. # A fatal error has been detected by the Java Runtime Environment: 
  3. # 
  4. #  Internal Error (c1_Optimizer.cpp:271), pid=6048, tid=5404 
  5. #  guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp 
  6. # 
  7. # JRE version: 6.0_29-b11 
  8. # Java VM: Java HotSpot(TM) Client VM (20.4-b02 mixed mode windows-x86 ) 
  9. 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 
  10. 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 
  11. 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 
  12. 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 
  13. 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 
  14. 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 
  15. # An error report file with more information is saved as: 
  16. # D:\Program Files\apache-tomcat-6.0.20\bin\hs_err_pid6048.log 
  17. # 
  18. # If you would like to submit a bug report, please visit: 
  19. #   http://java.sun.com/webapps/bugreport/crash.jsp 
  20. # 
#
# 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
#

在网上搜寻好久,终于找到了类似错误,网上解释归结于:JIT在做编译优化的时候处理时出错,可能是触发了JVM的编译器的BUG导致的。幸好SUN(Oracle)提供了相关的文档说明,得以让我们解决了这个问题。
文档地址:http://www.oracle.com/technetwork/java/javase/crashes-137240.html#gbyzu

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

  1. org.hibernate.cfg.annotations.SimpleValueBinder.setType 
org.hibernate.cfg.annotations.SimpleValueBinder.setType

解决办法:让jvm跳过该方法的编译优化

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

代码:

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

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

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


2.如果是直接通过startup 启动tomcat,则需要修改以下文件 Windows下,在文件/bin/catalina.bat,Unix下,在文件/bin/catalina.sh找到

  1. set JAVA_OPTS=%JAVA_OPTS%  %LOGGING_CONFIG%   
set JAVA_OPTS=%JAVA_OPTS%  %LOGGING_CONFIG%  
修改为以下内容即可:

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


A fatal error has been detected by the Java Runtime Environment EXCEPTION_ACCESS_VIOLATION 阅读详情

相关推荐

A fatal error has been detected by the Java Runtime Environment, C [VCRUNTIME140.dll+0x1989]

前言: 在服务器Linux(内存32G)下执行加密算法,入参是1G时发现了内存崩溃问题,直接杀死了Java进程,所以需要在Windows调试代码看是否能重现此问题。Windows的内存小,入参是300M就出现了,后来排查到原因是因为执行程序需要的内存超过了运行机器的内存。 Linux执行时内存的效果: Windows执行: 在运行Java代码时,出现A fatal error has been detected by the Java Runtime Environment, C [VCRUNT

fen_fen的专栏 4131

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

错误日志如下: # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000069c7ea77, pid=28380, tid=0x000000000000e414 # # JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_

m0_61096201的博客 7310

Edge主页被2345劫持?手动清理注册表与组策略的完整方案

浏览器主页劫持是Windows系统中常见的恶意篡改行为,其原理是通过修改注册表、快捷方式、组策略等多处系统配置,强制锁定浏览器启动页。这类劫持不仅影响上网体验,还可能带来隐私泄露和恶意软件感染风险。在安全防护与系统优化场景中,掌握手动清理主页劫持的技能至关重要。本文针对Edge主页被2345导航劫持的问题,深入解析劫持入口,提供从快捷方式、注册表到组策略的逐层清理步骤,并给出防复发策略,帮助用户彻底摆脱顽固劫持。

weixin_30582943的博客 397

A fatal error has been detected by the Java Runtime Environment程序错误处理方法

# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x70e72b89, pid=8020, tid=7880 # # JRE version: Java(TM) SE Runtime Environment

qq_23438131的博客 9万+

从零配置华为S5720交换机VLAN:Web界面与命令行双模式详解(附拓扑图)

本文详细解析华为S5720交换机VLAN配置的全过程,涵盖Web界面与命令行(CLI)双模式操作指南。从基础环境准备到多交换机环境配置同步,特别针对S5720-52X系列交换机的VLANif接口、端口分配策略及交换机堆叠技术进行深入讲解,并附实用拓扑图与配置示例,助力企业网络管理员高效完成VLAN部署。

happy2的博客 1374

手把手教你用FPGA+AD9822搭建300DPI的CIS高速图像采集系统(附时序调试心得)

本文详细介绍了如何利用FPGA作为核心控制器,结合AD9822三通道采样保持放大器/ADC,构建一套完整的300DPI CIS高速图像采集系统。内容涵盖从CIS传感器驱动时序、AD9822寄存器配置与协同调试,到采用千兆以太网替代USB实现稳定高速数据传输的完整实战指南,并分享了关键的时序调试心得与系统集成经验。

weixin_29306261的博客 136

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

** A fatal error has been detected by the Java Runtim`e Environment: ** 最近刚开始接触spring boot,还是个小白。在做实验的时候遇到idea的运行出错,如下: A fatal error has been detected by the Java Runtim`e Environment: #**EXCEPTION_P...

weixin_44729898的博客 6059

从零到一:KUKA机械臂与ROS的工业级通讯协议深度解析

本文深度解析KUKA机械臂与ROS的工业级通讯协议,重点对比EKI与RSI两种核心接口的技术特点与应用场景。详细介绍了网络架构设计、数据包解析机制及ROS-I集成方法,并提供实时性能优化与故障排除策略,为工程师实现高可靠性工业自动化集成提供完整解决方案。

2a4s6d8f0g的博客 297

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

# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062664f5e, pid=3088, tid=7728 # # JRE version: Java(TM) SE Runtime Env...

qq_34266804的博客 9248

PDF与OFD电子发票解析技术实战:从格式转换到精准识别

本文深入探讨了PDF与OFD电子发票解析技术的实战应用,从格式转换到精准识别,提供了全面的解决方案。通过OFD转PDF技术、动态定位算法和多重校验机制,显著提升电子发票识别效率与准确率,助力企业财务数字化转型。

weixin_42565652的博客 167

MySQL 一一 MySQL基本使用

1、数据库 简单来说,所谓的数据库就是存储数据的容器,而且是永久存储的。 2、为什么需要数据库 3、为什么要学习MySQL数据库 最早MySQL数据,瑞典AB公司开发的一款开源型的关系型数据库。 随着时间的推移,瑞典AB公司把MySQL数据库转让给Sun公司(Java语言的创始公司) 后来,Sun公司经营不善,又把MySQL数据库转让给甲骨文公司(Oracle数据库) 4、数

Guizy 7万+

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

A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd58302a3c, pid=5328, tid=8380 JRE version: OpenJDK Runtime Environment (11.0....

jiang598467513的博客 5370

适航规章、标准,书籍资料下载汇总(更新中)

以下是一些收集到的适航相关的资料,分享给大家。(如果没有你想要的资料,请留言,等找到会及时更新!

qq_41854911的博客 2562

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=0x00002ba9d88e02da, pid=17844, tid=1076017472 # # JRE version: 6.0_29-b11 # Java VM: Java HotSpot(TM

cuker919的专栏 1万+

优快云 付费专栏连载第 3 篇|Cadence Allegro 8 层板布局实战教程:RK3568 硬件模块化分区布局,DDR4 内存约束区域设置、布局禁忌避坑指南

本文是 RK3568 8 层板高速 PCB 设计实战专栏的第 3 篇,聚焦 DDR4 布局阶段的核心方法论与 Allegro 实操。文章从布局前 6 项前置检查清单入手,系统讲解模块化分区布局的五大黄金原则,并给出 160mm×100mm 样板的 5 大功能分区实战案例。随后以图文步骤演示如何在 Allegro 中创建 ROOM_DDR4 与 ROOM_CPU 约束区域,并强调 Hard Room 硬约束的强制校验作用。

weixin_44520581的博客 1734

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

A fatal error has been detected by the Java Runtime Environment(图解)

今天在Window系统下weblogic服务器上新搭建了一个SpringMVC Maven Project,启动工程一直报如下错误: # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000

YuZongTao 7733

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

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

使用JNA 调DLL 常见错误之一 错误信息如下 # # A fatal error has been detected by the Java Runtime Environment: # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x72ff2989, pid=1276, tid=4516 # -- 底下这行

Eyuang的专栏 8347

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

jvm 奔溃 A fatal error has been detected by the Java Runtime Environment

# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006852ad23, pid=1992, tid=0x0000000000001d34 # # JRE version: Java(TM) ...

qq_28616811的博客 2975

nacos启动报错:A fatal error has been detected by the Java Runtime Environment

今天启动nacos的时候出现了异常了,先是启动成功,然后崩溃报错,报错信息如下。查了好多资料,修改启动参数,都没有成功,最后,删除了data目录就好了。但是原因不知,而且后面每次启动都报错,每次都需要删除一下data目录。哪位大佬知道明白缘由,还望告知。

qq_33666472的博客 1051

关于Springboot启动以后进入页面报出A fatal error has been detected by the Java Runtime Environment错误的解决方法

首先贴一下错误代码以及日志 # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (c1_Optimizer.cpp:271), pid=4560, tid=5860 # guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp # # JRE version

weixin_43837880的博客 2万+

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

今天把一个springboot项目打成jar包,然后通过java -jar启动时没启动起来,报了如下错误。 # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000010014ed4, pid=18668, tid=0x00000000000028d8 # # JRE version: Java(T...

gitcat的博客 6997

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

# # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (classFileParser.cpp:3075), pid=15512, tid=20040 # Error: ShouldNotReachHere() # # JRE version: 6.0_16-b01

liaoyuanhuo66的专栏 2961

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

原因:传递给本地函数的对象为null // string操作 class JNIString { static { System.loadLibrary("JNIString"); } public static native String strMethod(String s); } /* javac JNIString.java javah JNIString.java

码农 1万+
上一篇: 自己总结(进行中...)
下一篇: MyException 自定义异常
zyb_java
博客等级 码龄14年 8粉丝 15原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值