Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException using CreateTable() / Java

SSOI SS asked on 12 Jan 2012
Latest activity: Answer by John Libert on 15 Mar 2012

Hi,

Is there anyone here who is using the Yair's CreateTable() function.

I used this function to embed two java tables into my GUI. I didn't use the standard GUI uitable simply because the latter one provides me more flexibitlies.

But if I close my GUI, then I get two red java errors in workspace, in format:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.widgets.spreadsheet.SpreadsheetScrollPane.cleanup(SpreadsheetScrollPane.java:571) at com.mathworks.hg.peer.UitablePeer$3.run(UitablePeer.java:149) at java.awt.event.InvocationEvent.dispatch(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)

Does anyone have a idea why this happens and how to solve this ?

By the way, I am not a java experts. How can I find out all the methods within a java (like jTable) object?

Thanks

0 comments

Products

    1 answer

    John Libert answered on 15 Mar 2012

    I get this same error, and most of the time MATLAB locks up. It generally happens when MATLAB is open overnight. I have never seen it while I am working. This should be looked at by tech support as I have lost data during big overnight runs.

    1 comment

    Pawel on 24 Mar 2012

    Same problem here unfortunately. Any updates on this matter? Is there any response from tech-supps?

    many thanks

    Contact us at files@mathworks.com