Hi,
I get the following error when attempting to run my script:
%Error using matlab.internal.editor.eval.FileInfo
Java exception occurred:
java.io.IOException: java.lang.RuntimeException: Internal Exception in reading MLX file : fl:filesystem:AccessDenied
at com.mathworks.services.mlx.MlxFileUtils.writeCode(MlxFileUtils.java:204)
Caused by: java.lang.RuntimeException: Internal Exception in reading MLX file : fl:filesystem:AccessDenied
at com.mathworks.services.mlx.MlxFileUtils.nativeWriteMlxFile(Native Method)
at com.mathworks.services.mlx.MlxFileUtils.writeCode(MlxFileUtils.java:202)
Error in matlab.internal.editor.eval.TmpFilePath.get
Error in matlab.internal.editor.evaluateCode
Error in matlab.internal.editor.evaluateCode
I'm trying to figure out what is causing this error, please help!

댓글 수: 7

From
Internal Exception in reading MLX file : fl:filesystem:AccessDenied
I would guess you don't have permissions to read(?)/write(?) to a file
Optical_Stress
Optical_Stress 2018년 4월 3일
편집: Optical_Stress 2018년 4월 3일
It seems that the error was initiated by having the same script open on multiple desktops (the current path is directed to a cloud folder). After closing matlab on all but one desktop, the error ceased.
Never mind, still seem to be getting the error...
Optical_Stress
Optical_Stress 2018년 4월 3일
So the script runs fine, the error only shows up when I attempt to run double commented segments of the script.
Guillaume
Guillaume 2018년 4월 3일
편집: Guillaume 2018년 4월 3일
If you copy the script to a non-synched folder does the error still occur?
Optical_Stress
Optical_Stress 2018년 4월 3일
편집: Optical_Stress 2018년 4월 3일
Yes the error is still triggered when all files are synced. I noticed that this started during an update with Dell drivers (graphics card related). Following the update, MATLAB's command terminal output a number of errors indicating that it will now use some virtual low performance graphics card... I have not been able to revert this setting/feature.
Guillaume
Guillaume 2018년 4월 3일
I meant copying the file into a folder that's completely independent of the cloud.
It may be a red herring but the error message and your initial comments would suggest that something is opening the file at the same time as matlab. The only thing I can suggest is looking at which processes try to access the file with something like process monitor.
Optical_Stress
Optical_Stress 2018년 4월 3일
I'm tempted to believe it may be related to the fact that each desktop I have owns a different iteration of matlab (2016a, 2017b and 2018a). Perhaps by going between each one I may triggering java run time errors.

댓글을 달려면 로그인하십시오.

답변 (1개)

Howard Lam
Howard Lam 2018년 4월 26일

0 개 추천

Because some path settings are migrated from older version to newer version. Those paths that point to 2017a rather than 2017b or higher will cause these access errors.

댓글 수: 1

Millard Alexander
Millard Alexander 2018년 4월 26일
I have the same error. howard, how do I reset my path so that this doesn't happen?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Call MATLAB from Java에 대해 자세히 알아보기

태그

질문:

2018년 4월 3일

댓글:

2018년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by