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

73 views (last 30 days)
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 Comments
Kele Kelemente
Kele Kelemente on 21 Jan 2025
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...
Matheus Sousa
Matheus Sousa on 23 Jan 2025
Edited: Matheus Sousa on 23 Jan 2025
Seems our server received an windows update in December, so that could be the cause but even if it is I still don't understand why it happened and what is the solution.

Sign in to comment.

Answers (1)

Karan Singh
Karan Singh on 6 Feb 2025
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
  1 Comment
Matheus Sousa
Matheus Sousa on 13 Mar 2025
Edited: Matheus Sousa on 13 Mar 2025
The issue is that there are several applications in this MATLAB WebApps environment, and all of them seem to be working just fine. Only one particular application is having issues. I'm not sure if this is an isolated issue in this application since it has more graphs than the others and thus is the only one with issues, or if this error should appear for all applications in the WebApps environment.
When I run the dev version of the application in my own computer it works just fine, only the online version that I run on the server has issues.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!