help > RE: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException in conn
Jul 3, 2024  11:07 AM | Alfonso Nieto-Castanon - Boston University
RE: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException in conn

Dear Ralf,


Sorry about that, this could indicate some problem/limitation with Matlab/VNC interactions, could you try using the 'connect to remote project" functionality in CONN to see if that fixes this? That would allow you to use your own computer/laptop graphic hardware (e.g. windows machine) while working on a project stored on a remote computer (e.g. linux server), skipping the need to use VNC or other remote-desktop software (I often use this for graphic-intensive operations in CONN like running or displaying second-level analyses, while reverting to VNC / OnDemand / etc. when I prefer to have full access to the remote server). See https://web.conn-toolbox.org/resources/s... for details.


Hope this helps


Alfonso


Originally posted by Ralf Veit:



Dear all,


I think the thread was mentioned several times (at least partly) in the forum, but I think the problem was not really solved. 
In the group analysis settings (using the conn toolbox) I can run a contrast and display the results without problems, however, after 2-3 contrasts I'm not able to click on another contrast in the results 2nd level window anymore and receive the following error message in the matlab command line.


Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException at com.jgoodies.looks.plastic.PlasticComboBoxButton.paintComponent(PlasticComboBoxButton.java:206)
    at javax.swing.JComponent.paint(JComponent.java:1056)
    at javax.swing.JComponent.paintChildren(JComponent.java:889)
    at javax.swing.JComponent.paint(JComponent.java:1065)
    at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
    at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
    at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
    at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
    at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
... an more


In this case I must click on the x in the conn window and I answer yes to the question save and exit. Then I have to restart conn and the error will appear again after 2-3 contrasts.
This is really annoying, in particular with bigger datasets that need some time to reload the data.
I work with matlab_22b and conn22.a using linux and vnc viewer for visualizing (the data is located on a server). The error appeared also with older matlab versions (2018b).
version -java 
'Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'.


The problem seems to be specific for linux, with windows I have never problems like that. 
Did someone solved this problem?


Ralf



 

Threaded View

TitleAuthorDate
Ralf Veit Jul 1, 2024
RE: Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException in conn
Alfonso Nieto-Castanon Jul 3, 2024
Ralf Veit Jul 4, 2024
Alfonso Nieto-Castanon Jul 4, 2024
Ralf Veit Jul 4, 2024
Alfonso Nieto-Castanon Jul 4, 2024
Ralf Veit Jul 5, 2024