Strange warning how to interpret it?

203 visualizaciones (últimos 30 días)
Bruno Luong
Bruno Luong el 17 de Sept. de 2023
Comentada: Michael Vinskus el 12 de Feb. de 2024
I get this strange warning in command window when MATLAB starts (R2023b)
"[WARN] StAXDialectDetector - Unable to determine dialect of the StAX implementation at jar:file:/C:/Program%20Files/MATLAB/R2023b/java/jarext/axis2/woodstox-core-asl.jar"
Does not occur everytime.
  6 comentarios
Jorge
Jorge el 16 de Nov. de 2023
+1
Michael Vinskus
Michael Vinskus el 12 de Feb. de 2024
I just had the same happen on a clean install of 2023b Update 6 (23.2.0.2365128 (R2023b)) when starting via the desktop shortcut created during installation. The issue does not happen if the program is started:
  • Via the Start menu
  • By running the executable out of the bin/win64 directory
  • From a shortcut which starts from the $matlabroot/bin/win64 directory.
The only difference in the shortcuts is that the one created on install has the "Start in" directory blank.

Iniciar sesión para comentar.

Respuesta aceptada

Bruno Luong
Bruno Luong el 21 de Nov. de 2023
Editada: Bruno Luong el 21 de Nov. de 2023

Más respuestas (4)

Nick Patterson
Nick Patterson el 22 de Sept. de 2023
Editada: Nick Patterson el 22 de Sept. de 2023
I got the same warning on my Windows machine when I installed R2023b. I restarted MATLAB and got the exact same error. Reading the comments (since I also had the pre-release for R2023b), I entered this command to clear all my preferences,
cellfun(@rmpref, fieldnames(getpref))
And the error did not occur on two consecutive start ups. I then ran several of my GUI's (which stores preferences), restarted MATLAB, and no more warnings.
So, not sure if this will work for others, but this was my experience:
  • Got warning every time I started R2023b (two times on two restarts)
  • Removed all preferences, never saw warning again (5 times and counting)
  4 comentarios
Bruno Luong
Bruno Luong el 23 de Sept. de 2023
@J. Alex Lee I do not use exportfig.
IYelin
IYelin el 16 de Oct. de 2023
I also got the same warning (new installation of MATLAB 2023b on Windows).
I tried to use your solution. However, when I run:
cellfun(@rmpref, fieldnames(getpref))
I get:
Error using fieldnames
Invalid input argument of type 'double'. Input must be a structure or a Java or COM object.
running 'getpref' returns empty, which explains it.
I then edited the preferences which were initially just the default. Specifically, I changed Text display 'line spacing' to 'compact' instead of 'loose'.
restarted matlab and did not get the warning. Hope it keeps this way.
Thanks!

Iniciar sesión para comentar.


Walter Roberson
Walter Roberson el 17 de Sept. de 2023
Editada: Walter Roberson el 17 de Sept. de 2023
I got the same thing the first time I started r2023b official on my macos ventura intel (I had prerelease before that.) I created a case about it; Mathworks suggested reinstall, which I have not done. I have not seen it in any of my starts of matlab since the first.
I had speculated that it might have to do with creation of prefdir which would only happen first time. I moved prefdir out of the way but the problem did not occur on start.
I speculated that the prefdir for the prerelease might have conflicted with the official, but I have not restored the old version from backup to test.
If I recall correctly, Bruno, you are using Windows, but I do not recall whether you are using intel or AMD? If you are using Windows then we could rule out it being Mac or Windows specific. (Ah, the file name gives away your os but not your CPU manufacturer)
  10 comentarios
Jon
Jon el 4 de Oct. de 2023
I just installed R2023 Update 1, I still get the StAXDialectDetector error on startup
Bruno Luong
Bruno Luong el 4 de Oct. de 2023
@Jon, thanks. Too bad.

Iniciar sesión para comentar.


Nathan Kimmitt
Nathan Kimmitt el 4 de Oct. de 2023
I'm also getting this error, and usually it's followed by the program freezing in the initialization state. I uninstall and reinstall and it fixes the issue but only temporarily. Any ideas? I just tried Nick's suggestion by running:
cellfun(@rmpref, fieldnames(getpref))
so we'll see if that works.
  10 comentarios
Leon Thürnau
Leon Thürnau el 6 de Nov. de 2023
Just installed update 3, same warning there. This was a fresh installation and I did not have installed update 1 / 2 before.
Leon Thürnau
Leon Thürnau el 16 de Nov. de 2023
installed update 4, no warning message there

Iniciar sesión para comentar.


Andres
Andres el 27 de Oct. de 2023
Movida: Adam Danz el 27 de Oct. de 2023
Note there is now a thread by the MathWorks support team you may want to follow as well
  2 comentarios
MathWorks Support Team
MathWorks Support Team el 27 de Oct. de 2023
Thank you Andres. Yes, please refer to the linked post and this Bug Report for future updates on this known issue.
Leon Thürnau
Leon Thürnau el 16 de Nov. de 2023
installed update 4, no warning message there

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by