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 › Cannot lauch Java application (mac)
Page Index Toggle Pages: 1
Cannot lauch Java application (mac) (Read 3315 times)
Cannot lauch Java application (mac)
Oct 5th, 2006, 4:16pm
 
Sorry guys, but anyone can tell me what seems to be the problem Im having? After installing properly Processing, theres a message saying:

Uncaught exception in main method:
Java.lang.NullPointerException

My console info says:

2006-10-05 16:24:35.932 JavaApplicationStub[252] 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:202)
at processing.app.Base.<init>(Base.java:126)
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)
apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.NullPointerException
java.lang.NullPointerException
at processing.app.Editor.doClose(Editor.java:1311)
at processing.app.Editor.handleQuit(Editor.java:1788)
at com.apple.mrj.MRJPriv$MRJQuitApplicationAdapter.handleQuit(MRJPriv.java:416)
at com.apple.eawt.Application$6.run(Application.java:396)
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)

Any ideas whats the problem?
Thanx in advance for the help!
Re: Cannot lauch Java application (mac)
Reply #1 - Oct 5th, 2006, 8:15pm
 
is it possible that the "monaco" font on your machine has either 1) become corrupt 2) gone missing or 3) have an additional version installed that's causing a conflict?
Re: Cannot lauch Java application (mac)
Reply #2 - Nov 4th, 2006, 5:22am
 
the other problem here could be that the preferences file has gone corrupt. is it possible you had two different versions of processing open at the same time? or edited some of the file by hand to cause the error?
Re: Cannot lauch Java application (mac)
Reply #3 - Nov 30th, 2006, 9:12pm
 
closing thread, no replies. if anyone runs into this, please post to the bugs db.
Re: Cannot lauch Java application (mac)
Reply #4 - Sep 5th, 2007, 4:03pm
 
later confirmed this as what happens when you disable monaco:
http://dev.processing.org/bugs/show_bug.cgi?id=562
should anyone else run into the same error.

in a future release, i'll see about adding a warning message to this effect. (check the bug report for progress on such a msg or workaround)
Page Index Toggle Pages: 1