Java exception with OS X Yosemite seems to occur constantly
1 view (last 30 days)
Show older comments
MATLAB has been dumping out red text that looks like some kind of Java issue. Generally, this isn't a serious problem, it's just incredibly annoying when trying to diagnose scripting problems since I have to scroll through 50 lines of red text to get back to my output.
This is what my error looks like--
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.anyText(WindowsWidgetFactory.java:187)
at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.getIcon(WindowsWidgetFactory.java:195)
at com.apple.laf.AquaButtonUI.setThemeBorder(AquaButtonUI.java:91)
at com.apple.laf.AquaButtonUI.installDefaults(AquaButtonUI.java:58)
at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:71)
at javax.swing.JComponent.setUI(JComponent.java:670)
at javax.swing.AbstractButton.setUI(AbstractButton.java:1815)
at javax.swing.JButton.updateUI(JButton.java:128)
at javax.swing.AbstractButton.init(AbstractButton.java:2182)
at javax.swing.JButton.<init>(JButton.java:118)
at javax.swing.JButton.<init>(JButton.java:73)
at com.mathworks.mwswing.MJButton.<init>(MJButton.java:73)
at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.<init>(WindowsWidgetFactory.java:153)
at com.mathworks.widgets.WindowsWidgetFactory$SearchAndClearButton.<init>(WindowsWidgetFactory.java:167)
at com.mathworks.widgets.WindowsWidgetFactory.createSearchAndClearButton(WindowsWidgetFactory.java:58)
at com.mathworks.widgets.SearchTextField.buildDefaultComponent(SearchTextField.java:517)
at com.mathworks.widgets.SearchTextField.buildComponent(SearchTextField.java:480)
at com.mathworks.widgets.SearchTextField.init(SearchTextField.java:182)
at com.mathworks.widgets.SearchTextField.<init>(SearchTextField.java:173)
at com.mathworks.widgets.SearchTextField.<init>(SearchTextField.java:160)
at com.mathworks.widgets.SearchTextField.<init>(SearchTextField.java:122)
at com.mathworks.mlwidgets.graphics.PlotPickerPanel.init(PlotPickerPanel.java:580)
at com.mathworks.mlwidgets.graphics.PlotPickerPanel.<init>(PlotPickerPanel.java:87)
at com.mathworks.mlwidgets.graphics.PlotPicker.createPlotPickerPanel(PlotPicker.java:152)
at com.mathworks.mlwidgets.graphics.PlotPicker.utSetPlottedVars(PlotPicker.java:482)
at com.mathworks.mlwidgets.graphics.PlotPicker.access$700(PlotPicker.java:23)
at com.mathworks.mlwidgets.graphics.PlotPicker$PlotPickerUIUpdater.run(PlotPicker.java:601)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Version info--
MATLAB Version: 7.14.0.739 (R2012a)
MATLAB License Number: STUDENT
Operating System: Mac OS X Version: 10.10.1 Build: 14B25
Java Version: Java 1.6.0_65-b14-466.1-11M4716 with Apple Inc. Java HotSpot™ 64-Bit Server
2 Comments
Luuk van Oosten
on 10 Feb 2015
Without any further information on what you are trying to do (your code, for instance, would help a lot), it is impossible to answer this question (unless you found that Yosemite is the origin of the problem as you seem to insinuate in your question).
my best guess: your file is corrupted, Java does not like it and throws some errors.
Scott Mc
on 20 Feb 2015
I am also having this issue. This exception (or one very similar) is thrown when doing most anything. For instance: the exception occurs if I clear variables on the command line by evoking 'clear'. It also occurs if I attempt to open the variable editor by double clicking a variable in my workspace, it also occurs when evoking 'version'. I did not have this issue prior to upgrading to Yosemite.
Version info--
MATLAB Version: 7.14.0.739 (R2012a)
MATLAB License: Individual - Standalone Named User - Commercial
Operating System: Mac OS X Version: 10.10.2
java version "1.7.0_07" Java™ SE Runtime Environment (build 1.7.0_07-b10) Java HotSpot™ 64-Bit Server VM (build 23.3-b01, mixed mode)
Accepted Answer
Dave
on 11 Apr 2015
This is clearly a MATLAB exception and has nothing to do with an individual user's code. The exception is a 'NullPointerException' exception in the WindowsWidgetFactory class with is mathworks MATLAB code.
There is a patch here http://www.mathworks.com/support/bugreports/1098655 which addresses this issue.
Sadly I'm on 2011a and that won't work for me. It is very annoying though
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!