Eclipse NullPointerException at getFontList
Posted
by Jan Fabry
on Super User
See other posts from Super User
or by Jan Fabry
Published on 2009-12-08T08:12:29Z
Indexed on
2010/06/18
10:13 UTC
Read the original article
Hit count: 964
Eclipse doesn't start anymore. I get a dialog box that points me to a log file with the following entry:
!SESSION 2009-12-08 08:49:16.263 -----------------------------------------------
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.php.product -keyring /Users/cheezy/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.php.product -keyring /Users/cheezy/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 4 0 2009-12-08 08:49:19.993
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException
at org.eclipse.swt.graphics.Device.getFontList(Device.java:369)
at org.eclipse.jface.resource.FontRegistry.filterData(FontRegistry.java:465)
at org.eclipse.jface.resource.FontRegistry.createFont(FontRegistry.java:499)
at org.eclipse.jface.resource.FontRegistry.defaultFontRecord(FontRegistry.java:563)
at org.eclipse.jface.resource.FontRegistry.getFontRecord(FontRegistry.java:673)
at org.eclipse.jface.resource.FontRegistry.get(FontRegistry.java:613)
at org.eclipse.jface.resource.JFaceResources.getDialogFont(JFaceResources.java:273)
at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits(Dialog.java:925)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:131)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
at org.eclipse.jface.window.Window.open(Window.java:790)
at org.eclipse.ui.internal.ide.ChooseWorkspaceDialog.prompt(ChooseWorkspaceDialog.java:91)
at org.eclipse.ui.internal.ide.application.IDEApplication.promptForWorkspace(IDEApplication.java:275)
at org.eclipse.ui.internal.ide.application.IDEApplication.checkInstanceLocation(IDEApplication.java:223)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:103)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
I did clean up my font list in Font Book by disabling duplicate fonts. I also upgraded to Mac OS X 10.6.2.
© Super User or respective owner