Thread Subject: Error message on startup (mac)

Subject: Error message on startup (mac)

From: Adam

Date: 8 Jul, 2009 15:54:03

Message: 1 of 9

Hi all,

I am getting the following when matlab starts up:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
at apple.awt.CToolkit$4.run(CToolkit.java:1310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Any help would be appreciated!

   Adam

Subject: Error message on startup (mac)

From: hresquiveloa

Date: 27 Jul, 2009 16:50:40

Message: 2 of 9

On Jul 8, 10:54 am, "Adam " <k...@cs.fairfield.edu> wrote:
> Hi all,
>
> I am getting the following when matlab starts up:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>         at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
>         at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
>         at apple.awt.CToolkit$4.run(CToolkit.java:1310)
>         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j ava:269)
>         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav a:190)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
>         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
> Any help would be appreciated!
>
>    Adam

The same. I'm running Matlab r2008a on a unix machine (Leopard,
10.5.7). Any explanation will be appreciated. Many thanks in advance.

Subject: Error message on startup (mac)

From: hresquiveloa

Date: 27 Jul, 2009 16:55:28

Message: 3 of 9

On Jul 27, 11:50 am, hresquiveloa <hresquive...@gmail.com> wrote:
> On Jul 8, 10:54 am, "Adam " <k...@cs.fairfield.edu> wrote:
>
>
>
>
>
> > Hi all,
>
> > I am getting the following when matlab starts up:
>
> > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> >         at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
> >         at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
> >         at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> >         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> >         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> >         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j ava:269)
> >         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav a:190)
> >         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> >         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> >         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
> > Any help would be appreciated!
>
> >    Adam
>
> The same. I'm running Matlab r2008a on an unix machine (Leopard,
> 10.5.7). Any explanation will be appreciated. Many thanks in advance.

Ok, what I know is that those warnings will not be displayed if I
start up matlab with the -nojvm, --nodisplay options.

Subject: Error message on startup (mac)

From: hresquiveloa

Date: 27 Jul, 2009 16:57:51

Message: 4 of 9

On Jul 27, 11:50 am, hresquiveloa <hresquive...@gmail.com> wrote:
> On Jul 8, 10:54 am, "Adam " <k...@cs.fairfield.edu> wrote:
>
>
>
>
>
> > Hi all,
>
> > I am getting the following when matlab starts up:
>
> > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> >         at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
> >         at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
> >         at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> >         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> >         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> >         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j ava:269)
> >         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav a:190)
> >         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> >         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> >         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
> > Any help would be appreciated!
>
> >    Adam
>
The same. I'm running Matlab r2008a on an unix machine (Leopard,
10.5.7). Any explanation will be appreciated. Many thanks in advance.

Ok, what I know is that those warnings will not be displayed if I
start up matlab with the -nojvm, -nodisplay options.

Subject: Error message on startup (mac)

From: Lennard

Date: 2 Sep, 2009 14:07:03

Message: 5 of 9

"Adam " <king@cs.fairfield.edu> wrote in message <h32fer$fbb$1@fred.mathworks.com>...
> Hi all,
>
> I am getting the following when matlab starts up:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
> at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
> at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>
> Any help would be appreciated!
>
> Adam
I have the exact same problem. A fresh install of 2008B on mac osx 10.5.8 gives me these warnings. It does seem that at least for what I use matlab for there are no further issues. (This comes down to mostly array operations)

kind regards,
lennard

Subject: Error message on startup (mac)

From: Matt Gately

Date: 16 Sep, 2009 20:01:10

Message: 6 of 9

"Lennard " <lpamooij@gmail.com> wrote in message <h7lu67$gb8$1@fred.mathworks.com>...
> "Adam " <king@cs.fairfield.edu> wrote in message <h32fer$fbb$1@fred.mathworks.com>...
> > Hi all,
> >
> > I am getting the following when matlab starts up:
> >
> > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> > at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
> > at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
> > at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
> > at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> >
> > Any help would be appreciated!
> >
> > Adam
> I have the exact same problem. A fresh install of 2008B on mac osx 10.5.8 gives me these warnings. It does seem that at least for what I use matlab for there are no further issues. (This comes down to mostly array operations)
>
> kind regards,
> lennard

I also have the same issue with R2008b on mac osx 10.5.8. I did notice that the program does not behave completely as it should. For example:

>> real(2+j*3)

returned something like "803" instead of "2". Can't repeat the behavior right now.

~ Matt

Subject: Error message on startup (mac)

From: Steven Lord

Date: 16 Sep, 2009 21:16:07

Message: 7 of 9


"Matt Gately" <mattgately@ou.edu> wrote in message
news:h8rg66$ctk$1@fred.mathworks.com...

*snip*

> I also have the same issue with R2008b on mac osx 10.5.8. I did notice
> that the program does not behave completely as it should. For example:
>
>>> real(2+j*3)
>
> returned something like "803" instead of "2". Can't repeat the behavior
> right now.

The issue with j is most likely unrelated to the Java exception. Define j =
267 and then compute real(2+j*3). You've "shadowed" the j function with the
j variable. Instead of creating the complex number that way, use
real(2+3j).

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: Error message on startup (mac)

From: Bryan Thurnau

Date: 24 Sep, 2009 12:26:03

Message: 8 of 9

hresquiveloa <hresquiveloa@gmail.com> wrote in message <592be5d7-8a1e-461b-b5f5-ac1e49868a4c@d15g2000prc.googlegroups.com>...
> On Jul 27, 11:50?am, hresquiveloa <hresquive...@gmail.com> wrote:
> > On Jul 8, 10:54?am, "Adam " <k...@cs.fairfield.edu> wrote:
> >
> >
> >
> >
> >
> > > Hi all,
> >
> > > I am getting the following when matlab starts up:
> >
> > > Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> > > ? ? ? ? at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
> > > ? ? ? ? at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
> > > ? ? ? ? at apple.awt.CToolkit$4.run(CToolkit.java:1310)
> > > ? ? ? ? at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
> > > ? ? ? ? at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
> > > ? ? ? ? at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j ava:269)
> > > ? ? ? ? at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav a:190)
> > > ? ? ? ? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
> > > ? ? ? ? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
> > > ? ? ? ? at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> >
> > > Any help would be appreciated!
> >
> > > ? ?Adam
> >
> > The same. I'm running Matlab r2008a on an unix machine (Leopard,
> > 10.5.7). Any explanation will be appreciated. Many thanks in advance.
>
> Ok, what I know is that those warnings will not be displayed if I
> start up matlab with the -nojvm, --nodisplay options.

I'm getting the same error on Mac OS X 10.6, Matlab R2009b. Won't allow me to continue on. Any suggestions?

Subject: Error message on startup (mac)

From: Brian Arnold

Date: 25 Sep, 2009 14:41:37

Message: 9 of 9

Hi Bryan,

When you say "Won't allow me to continue on" what do you mean? Is MATLAB
crashing or exiting prematurely?

This Java exception is a known issue with Apple Java for Mac OS X 10.5
Update 1, Update 4 and Update 5 (slightly different exceptions for each)
as well as with Java on Snow Leopard OS X 10.6. The most significant
negative impact we have seen is with certain customers, for whom the
exception message continuously repeats while running certain code. We
have an External Bug Report on the MathWorks web site if you want to
follow its status:

< http://www.mathworks.com/support/bugreports/559790 >

The issue does not occur with Java for Updates 2 and 3, and we are
working with Apple to ensure that it is resolved in the next Java
updates for Leopard and Snow Leopard.

If MATLAB is failing to run, it may not be due to the exception you are
mentioning, but something else entirely. Can you check the Console
application for error messages, indicate how MATLAB doesn't continue on,
or run MATLAB from the command line
(/Applications/MATLAB_R2009b.app/bin/matlab) to try to find out more?

Thanks,

- Brian


Bryan Thurnau wrote:
> hresquiveloa <hresquiveloa@gmail.com> wrote in message <592be5d7-8a1e-461b-b5f5-ac1e49868a4c@d15g2000prc.googlegroups.com>...
>> On Jul 27, 11:50?am, hresquiveloa <hresquive...@gmail.com> wrote:
>>> On Jul 8, 10:54?am, "Adam " <k...@cs.fairfield.edu> wrote:
>>>
>>>
>>>
>>>
>>>
>>>> Hi all,
>>>> I am getting the following when matlab starts up:
>>>> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
>>>> ? ? ? ? at apple.awt.CGraphicsEnvironment.resetDisplays(CGraphicsEnvironment.java:99)
>>>> ? ? ? ? at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:49)
>>>> ? ? ? ? at apple.awt.CToolkit$4.run(CToolkit.java:1310)
>>>> ? ? ? ? at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>>>> ? ? ? ? at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
>>>> ? ? ? ? at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.j ava:269)
>>>> ? ? ? ? at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav a:190)
>>>> ? ? ? ? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
>>>> ? ? ? ? at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
>>>> ? ? ? ? at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>>>> Any help would be appreciated!
>>>> ? ?Adam
>>> The same. I'm running Matlab r2008a on an unix machine (Leopard,
>>> 10.5.7). Any explanation will be appreciated. Many thanks in advance.
>> Ok, what I know is that those warnings will not be displayed if I
>> start up matlab with the -nojvm, --nodisplay options.
>
> I'm getting the same error on Mac OS X 10.6, Matlab R2009b. Won't allow me to continue on. Any suggestions?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com