Why do I receive Java exceptions when I log in to my computer via Remote Desktop while MATLAB is running?

5 views (last 30 days)
I run MATLAB with GUI/IDE/Editor open on Computer A and log in using Remote Desktop Connection on Computer B. When I connect and access the MATLAB GUI/IDE/Editor I observe a large number of errors start being generated.
A sample is shown below:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsScrollBarUI.paintThumb(Unknown Source)
at javax.swing.plaf.basic.BasicScrollBarUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImm

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
One resolution is based on the fact that for slower connections, the theme is changed while logging in. To resolve this, you require a Fast connection to your remote machine (10 Mbps or higher with low latency). Multiple monitor setups and drastic resolution changes between the two computers complicate this issue. These cases are not covered here.
Assuming the requirements are met, you can change the Connection speed setting under the "Experience" tab on the Remote Desktop client to "LAN (10 Mbps or higher)" before connecting.
NOTE: If the above causes an undesired experience using Remote Desktop, you may revert back to the old connection speed setting in Remote Desktop and make sure that the look and feel of both operating systems is set to the same. This can be changed by navigating from the Control Panel to Display and then Themes.

More Answers (0)

Categories

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

Products


Release

R2009a

Community Treasure Hunt

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

Start Hunting!