Why does MATLAB Coder app give Java exception error when accessed through remote connection (Linux)?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 28 Mai 2015
Beantwortet: MathWorks Support Team
am 28 Mai 2015
We have a problem with MATLAB Coder app gives Java exception error when accessed through remote connection (Linux).
Currently, MATLAB R2015a is installed in 64-bit Linux server and we are trying to display on Windows 7 machine using Cygwin-X X server.
However, the following exception (please see B below) happens while trying to open (from the remote machine)
the "MATLAB Coder" application by clicking on the App's icon in the Application TAB.
We can start MATLAB, and simple commands such as
>> plot(rand(10))
works without any problem (Line plot Figure properly displayed).
Is there any workaround or any guidance troubleshooting this?
A. Environment
Trial>> !uname -a
Linux mendelejev.argo-graph.co.jp 3.2.0-4-amd64 #1 SMP Debian3.2.65-1+deb7u2 x86_64 GNU/Linux
B. Exception
-------------BEGIN
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at
com.mathworks.toolbox.coder.app.CoderApp$8.run(CoderApp.java:390)
at
com.mathworks.mwswing.MJUtilities.runOnEventDispatchThread(MJUtilities.java:911)
at
com.mathworks.toolbox.coder.app.CoderApp.setup(CoderApp.java:384)
at
com.mathworks.toolbox.coder.app.CoderApp.access$000(CoderApp.java:62)
at
com.mathworks.toolbox.coder.app.CoderApp$3.run(CoderApp.java:249)
at
com.mathworks.toolbox.coder.app.CoderApp$3.run(CoderApp.java:246)
at
com.mathworks.toolbox.coder.app.CoderAppModel$1$1$1.run(CoderAppModel.java:182)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
com.mathworks.toolbox.coder.wfa.core.Animator.getScreenRefreshRate(Animator.java:174)
at
com.mathworks.toolbox.coder.wfa.core.Animator.<clinit>(Animator.java:24)
... 21 more
----------------END
Akzeptierte Antwort
MathWorks Support Team
am 28 Mai 2015
The NullPointerException occurs in a part of the code where we query display information from Java.
Unfortunately, this territory is not under our control.
The results of such queries depend on the JDK implementation which change with platform and environment.
Yet, the development team is considering a guard against this specific exception.
Currently there are no workarounds.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!