当前位置: 首页 > news >正文

jdk1.8.0_05 在 SpringBootTest Debug模式下奔溃

之前好好的项目,最近换了之前的电脑,但是在使用SpringBootTest  启动debug模式时,虚拟机就会奔溃,通过修改如果把 junit5 

import org.junit.jupiter.api.Test;

修改为 junit4 ,就不奔溃了

import org.junit.Test;

但是这样的话就得在测试类上加上 @RunWith(SpringRunner.class) 并导入,如果不加,依赖注入就会失败

 org.junit.runner.RunWith

这样有点麻烦,比较了两个电脑的环境,发现之前的电脑jdk是jdk1.8.0_05,重新下载了jdk-8u441以后就可以用 junit5 了

jdk奔溃的内容如下

# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000000379b000, pid=33940, tid=16652 # # JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x000000000379b000 # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp # --------------- T H R E A D --------------- Current thread (0x000000000379b000): JavaThread "main" [_thread_in_Java, id=16652, stack(0x0000000003670000,0x0000000003770000)] siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x000000000379b000 Registers: RAX=0x000000071a4654c8, RBX=0x000000002692f228, RCX=0x0000000003baf120, RDX=0x000000071a4654c8 RSP=0x000000000376bea0, RBP=0x000000002ebf8e20, RSI=0x00000005c4120b18, RDI=0x00000007c000b290 R8 =0x00000005c4120b38, R9 =0x00000005c41d13b0, R10=0x00000005c4120b18, R11=0x0000000004124160 R12=0x0000000000000000, R13=0x000000000376be80, R14=0x000000071a465478, R15=0x000000000379b000 RIP=0x000000000379b000, EFLAGS=0x0000000000010246 Top of Stack: (sp=0x000000000376bea0) 0x000000000376bea0: 0000000000000003 000000002b3dd150 0x000000000376beb0: 000000000376bee0 0000000003f8e6cc 0x000000000376bec0: 0000000003f8e6cc 000000071a4654c8 0x000000000376bed0: 00000005c4120b18 0000000003f8e6cc 0x000000000376bee0: 0000000000000003 000000000376bf18 0x000000000376bef0: 0000000000000100 0000000074688fa0 0x000000000376bf00: 00000005c4120b18 0000000717e0a608 0x000000000376bf10: 000000000000073e 000000002ebf8e20 0x000000000376bf20: 000000000376bf50 0000000003ef5ddc 0x000000000376bf30: 0000000003ef5ddc 0000000003ef5ddc 0x000000000376bf40: 0000000717e0a608 00000005c4120b18 0x000000000376bf50: 0000000000000000 000000002b3f33a0 0x000000000376bf60: 0000000028dc9410 00000000742dd923 0x000000000376bf70: 000000000376c030 0000000003790ed0 0x000000000376bf80: 0000000717e0a608 00000005c4120b18 0x000000000376bf90: 00000005c41d1390 00000005c41d13b0 Instructions: (pc=0x000000000379b000) 0x000000000379afe0: 60 00 79 03 00 00 00 00 60 00 79 03 00 00 00 00 0x000000000379aff0: 00 b0 79 03 00 00 00 00 00 40 0f 00 00 00 00 00 0x000000000379b000: e8 b5 69 74 00 00 00 00 00 00 00 00 00 00 00 00 0x000000000379b010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Register to memory mapping: RAX=0x000000071a4654c8 is an oop org.springframework.boot.context.properties.source.ConfigurationPropertyName$$Lambda$376/505968231 - klass: 'org/springframework/boot/context/properties/source/ConfigurationPropertyName$$Lambda$376' RBX=0x000000002692f228 is an unknown value RCX=0x0000000003baf120 is at begin+31 in a stub MethodHandle::interpreter_entry::_linkToStatic [0x0000000003baf101, 0x0000000003baf145[ (68 bytes) RDX=0x000000071a4654c8 is an oop org.springframework.boot.context.properties.source.ConfigurationPropertyName$$Lambda$376/505968231 - klass: 'org/springframework/boot/context/properties/source/ConfigurationPropertyName$$Lambda$376' RSP=0x000000000376bea0 is pointing into the stack for thread: 0x000000000379b000 RBP=0x000000002ebf8e20 is an unknown value RSI=0x00000005c4120b18 is an oop java.lang.invoke.DirectMethodHandle - klass: 'java/lang/invoke/DirectMethodHandle' RDI=0x00000007c000b290 is an unknown value R8 =0x00000005c4120b38 is an oop java.lang.invoke.MemberName - klass: 'java/lang/invoke/MemberName' R9 =0x00000005c41d13b0 is an oop java.lang.invoke.MemberName - klass: 'java/lang/invoke/MemberName' R10=0x00000005c4120b18 is an oop java.lang.invoke.DirectMethodHandle - klass: 'java/lang/invoke/DirectMethodHandle' R11=0x0000000004124160 is at entry_point+0 in (nmethod*)0x0000000004124010 R12=0x0000000000000000 is an unknown value R13=0x000000000376be80 is pointing into the stack for thread: 0x000000000379b000 R14=0x000000071a465478 is an oop [error occurred during error reporting (printing register info), id 0xc0000005] Stack: [0x0000000003670000,0x0000000003770000], sp=0x000000000376bea0, free space=1007k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x000000000379b000 --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x000000002b3d2800 JavaThread "Service Thread" daemon [_thread_blocked, id=29612, stack(0x000000002c540000,0x000000002c640000)] 0x000000002b45c000 JavaThread "C1 CompilerThread11" daemon [_thread_blocked, id=14408, stack(0x000000002c340000,0x000000002c440000)] 0x000000002b460000 JavaThread "C1 CompilerThread10" daemon [_thread_blocked, id=37688, stack(0x000000002c240000,0x000000002c340000)] 0x000000002b45b800 JavaThread "C1 CompilerThread9" daemon [_thread_blocked, id=26548, stack(0x000000002c140000,0x000000002c240000)] 0x000000002b45e800 JavaThread "C1 CompilerThread8" daemon [_thread_blocked, id=13912, stack(0x000000002c040000,0x000000002c140000)] 0x000000002b45a800 JavaThread "C2 CompilerThread7" daemon [_thread_blocked, id=12600, stack(0x000000002bf40000,0x000000002c040000)] 0x000000002b450000 JavaThread "C2 CompilerThread6" daemon [_thread_blocked, id=37560, stack(0x000000002be40000,0x000000002bf40000)] 0x000000002b44f000 JavaThread "C2 CompilerThread5" daemon [_thread_blocked, id=8424, stack(0x000000002bd40000,0x000000002be40000)] 0x000000002b44e800 JavaThread "C2 CompilerThread4" daemon [_thread_blocked, id=38908, stack(0x000000002bc40000,0x000000002bd40000)] 0x000000002b44d800 JavaThread "C2 CompilerThread3" daemon [_thread_blocked, id=44928, stack(0x000000002bb40000,0x000000002bc40000)] 0x000000002b449000 JavaThread "C2 CompilerThread2" daemon [_thread_bl

http://www.jsqmd.com/news/813250/

相关文章:

  • 基于CoPaw框架构建飞书群聊软件工程师助手:多智能体配置与实战
  • OAuth路由网关设计:从认证授权到微服务流量管控
  • tokenviz:量化你的AI编程助手使用习惯,生成GitHub风格热力图
  • ClawPowers Agent:基于OpenClaw的自主进化AI编码代理框架解析
  • LLM长上下文建模技术全景:从高效注意力到RAG与评测实践
  • TinyML中的数据感知NAS技术解析与应用
  • 高电流电源系统设计:分立与模块方案对比
  • 从零部署到高可用语音服务:ElevenLabs + FastAPI + Redis流控的6层熔断架构(附GitHub可运行代码仓库)
  • 光耦LED寿命评估与可靠性设计实践
  • 苹果果梗检测数据集VOC+YOLO格式1141张2类别有增强
  • Golang如何用火焰图分析性能_Golang火焰图教程【对比】
  • 量子传感技术原理与STQS系统架构解析
  • 轻量级Python爬虫框架设计与实现:从零构建mini-claw
  • Window的Window/Client坐标
  • 【限时解密】Midjourney内部修复评估矩阵(v8.0.3 Beta版):含12维质量打分表+自动诊断CLI工具(文末领取离线版)
  • Marp for VS Code插件开发教程:从零开始构建自定义功能
  • Sprout OS:一个融合三大平台应用的操作系统,为创意工作者而生
  • OpenGoat:Web安全漏洞靶场实战指南与攻防演练
  • 上海亚卡黎实业有限公司2026高空作业平台精选:剪式高空作业平台厂家推荐/车载式高空作业车生产厂家优选上海亚卡黎实业 - 栗子测评
  • 基于模板引擎的代码生成器设计:从原理到Spring Boot实战
  • MMseqs2工作流自动化:从数据准备到结果分析的全流程指南 [特殊字符]
  • httpserver.h API完全手册:从基础到高级用法详解
  • 上海亚卡黎实业有限公司2026高空作业车品牌优选:高空作业平台生产厂家/采购/平台厂家哪家好推荐 - 栗子测评
  • 5分钟掌握PUBG罗技鼠标宏:新手必看的自动压枪终极教程
  • 【ZYNQ的Linux开发】网络socket编程
  • Rust DSL BeeClaw:为无人机控制打造的高性能领域特定语言
  • Openclaw-Bootstrapping-Benchmark:AI智能体自举能力评估框架详解
  • 美发行业SaaS系统设计:预约冲突检测与库存管理核心技术解析
  • 解决云服务器安装VSCode Go插件失败/一直是installing问题
  • 开发者效率革命:用dotfiles打造可移植的个性化开发环境