java.lang.NullPointerException
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:36)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:18)
at java.lang.reflect.Field.get(Field.java:358)
at apple.awt.CAccessible.getCAccessible(CAccessible.java:37)
at apple.awt.CAccessibility$30.call(CAccessibility.java:505)
at apple.awt.CAccessibility$30.call(CAccessibility.java:501)
at apple.awt.CToolkit$CallableWrapper.run(CToolkit.java:1107)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at apple.awt.CToolkit$CPeerEvent.dispatch(CToolkit.java:1197)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
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)
Or sometimes just simply: java.lang.NullPointerException
I am running Matlab R2010b under OSX 10.6.5 (Snow Leopard).
I thought I had found a fix for this in another thread, where someone reports a similar error: http://www.mathworks.com/matlabcentral/newsreader/view_thread/260767. I followed the instructions mentioned there (taken from this website: http://chxor.chxo.com/post/183013153/installing-java-1-5-on-snow-leopard) and it was fine for a while. Then I started getting some of the red error messages again. I thought that I had maybe done an OSX update in the meantime, in which case I would need to install Java 1.5 again. So I did, but it just got worse.
I'm wondering whether the reason for it not working this time could be that there is a new Java 1.5 (update 8) out, whereas last time I probably used update 7. I really don't see why I should need to be doing this hacking in the first place, though.
Are other people having the same problem. Does anybody know how to fix this?
Thanks!
I don't think the issue you are reporting is related to the other issue
you found by searching, and installing older, unsupported versions of
Java on Snow Leopard is likely to cause other stability problems with
MATLAB.
The issue you are reporting is related to "accessibility", otherwise
known as Universal Access (as in, the System Preferences panel). Do you
have any third party extensions that require Universal Access to be
enabled? If so, try un-installing them (don't simply turn them off),
turn off Universal Access, and logout/login or restart, to see if the
problem is resolved by doing that.
Good luck,
- Brian
I did indeed have several applications that require Universal Access to be enabled. After uninstalling them the error messages have indeed disappeared.
Several of these applications are quite useful to me, however, so I am reluctant to stop using them. Is it the enabling of Universal Access per se that causes the error messages or are there particular applications that are somehow incompatible with Matlab?
- Alec
Brian Arnold <Brian....@mathworks.com> wrote in message <idtgov$a5h$1...@fred.mathworks.com>...
Universal Access itself is not likely to be a source of the problem. In
the past we have found incompatibilities with third party products that
require Universal Access. I would systematically re-install the products
you uninstalled, logging out or restarting for each and testing MATLAB,
to determine which one is causing the incompatibility.
Regards,
"Alec Nagel" wrote in message <idrstm$nrv$1...@fred.mathworks.com>...
Hi,
I did not really find any solution except stopping to use the apps that required Universal Access.
As advised, I uninstalled all of them, and the error messages disappeared. I then tried to install the most important ones, and it seemed to be working fine, but after a few days the error messages started coming again.
While switching between the main window and the help window will often cause the error messages, it turns out that sometimes when that doesn't give an error, clicking a few links in the help window will give an error message. And once the first one has come, pretty much anything will cause a new one.
I have sometimes gotten these error messages even when no applications using Universal Access were installed, but Universal Access was turned on.
> Alec, are you using better touch tool?
No. I've been planning to, but have been reluctant to try because I expected it might create this same error, and I am just so tired of seeing these error messages in Matlab...
Are you using it? Does it give you the same error?
regards,
Alec
bettertouchtool bettersnaptool and cinch all cause the same error.
On Mar 8, 4:56 pm, "Alec Nagel" <spamawa...@gmail.com> wrote:
> "kun deng" <kun.d...@asu.edu> wrote in message <il60qc$kb...@fred.mathworks.com>...