error in web application: A fatal error has been detected by the Java Runtime Environment
28 次查看(过去 30 天)
显示 更早的评论
I have an online application in a server so that I can use the webapps envyroment. This year one of the applications doesn't wor because of a Java runtime error that seems to come from the server itself. The issue is the application worked just fine before so now I'm trying to undertand possible causes and solutions to this issue.
Matlab version is 2018a;
The fist part of the erro message is shown below.
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffdcd35696d, pid=7900, tid=0x0000000000001c98
#
# JRE version: Java(TM) SE Runtime Environment (8.0_144-b01) (build 1.8.0_144-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.144-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
#
C
0x00007ffdcd35696d
#
# Core dump written. Default location: C:\Users\MATLABWebAppsGuest\AppData\Local\MathWorks\webapps\services\mdwas\sessions\868f2753-24fa-47f2-a64f-981cf6d48615\hs_err_pid7900.mdmp
#
# An error report file with more information is saved as:
# C:\ProgramData\MathWorks\webapps\R2018a\logs\hs_error_pid7900.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
2 个评论
Kele Kelemente
2025-1-21
We are getting the same issue since Sunday 20th Jan - Windows patching cycle.
Matlab 2023b
We use JAMS scheduler to fire poweshell (start-process) with "-batch" parameter.
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa27ad696d, pid=36748, tid=0x0000000000005c14
#
# JRE version: Java(TM) SE Runtime Environment (8.0_202-b08) (build 1.8.0_202-b08)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C 0x00007ffa27ad696d
#
# Core dump written. Default location: C:\WINDOWS\system32\hs_err_pid36748.mdmp
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
-------------- T H R E A D ---------------
Current thread (0x000001d8fe889000): JavaThread "AWT-EventQueue-0-SharedResourceRunner" daemon [_thread_in_native, id=23572, stack(0x000000d008900000,0x000000d008a00000)]
ETC...
回答(1 个)
Karan Singh
2025-2-6
A Java Runtime Environment error usually occurs when the Java driver installed on the computer is either unsupported by MATLAB or in a corrupted state. MATLAB only supports the version of Java specified in this link: https://www.mathworks.com/support/requirements/language-interfaces.html.
To check the current Java version in MATLAB, type the following command in the MATLAB Command Window:
version -java
If the output is not as expected, reinstalling Java might be the right choice. You can download the correct version from Oracle's website.
Karan
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!