We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › java.lang.NullPointerException
Page Index Toggle Pages: 1
java.lang.NullPointerException (Read 3982 times)
java.lang.NullPointerException
Sep 5th, 2007, 12:08am
 
I'm sorry, because some people have the same problem but i don't understand what can i do.
When i start processing on macbook, error message appear : "java.lang.NullPointerException"

on my console :

===== mercredi 5 septembre 2007 00 h 06 Europe/Paris =====
apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.NullPointerException
java.lang.NullPointerException
at processing.app.Editor.doClose(Editor.java:1362)
at processing.app.Editor.handleQuitInternal(Editor.java:1927)
at processing.app.Editor$44.run(Editor.java:1943)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
34)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
2007-09-05 00:07:01.242 JavaApplicationStub[587] Apple AWT - CGFontGetHMetrics returned NULL.
[LaunchRunner Error] processing.app.Base.main(String[]) threw an exception:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:176)
at javax.swing.text.StyleConstants.setFontFamily(StyleConstants.java:334)
at processing.app.EditorConsole.<init>(EditorConsole.java:93)
at processing.app.Editor.<init>(Editor.java:214)
at processing.app.Base.<init>(Base.java:146)
at processing.app.Base.main(Base.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)


Please, help me.
Re: java.lang.NullPointerException
Reply #1 - Sep 5th, 2007, 4:02pm
 
that sounds like you've disabled the "monaco" system font:
http://dev.processing.org/bugs/show_bug.cgi?id=562
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1160057791
which is likely to cause more problems than just not being able to run processing.
Re: java.lang.NullPointerException
Reply #2 - Sep 6th, 2007, 1:08am
 
thank you (merci),

problem is resolved.
I don't understand why it provide by the font,
I desactived user fonts with font book and i activated computer  fonts.

Nock
Page Index Toggle Pages: 1