You are not logged in.

#1 2016-05-05 17:29:16

alejandrocq
Member
Registered: 2016-01-13
Posts: 10

[SOLVED] NullPointerException on eclipse new project

Hi guys,

I have just installed Eclipse but when I try to create a new Java Project I get this report:

The following report will be sent to Eclipse:

------
STATUS
------
pluginId            org.eclipse.ui
pluginVersion       3.107.0.v20150507-1945
code                0
severity            4
message             HIDDEN
fingerprint         08ebc6dd960321c38080fa922b7b1331

Exception:java.lang.NullPointerException: null
	 at org.eclipse.swt.widgets.TabFolder.gtk_switch_page(TabFolder.java:570)
	 at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2009)
	 at org.eclipse.swt.widgets.Display.windowProc(Display.java:4723)
	 at org.eclipse.swt.internal.gtk.OS._gtk_widget_show(OS.java:-2)
	 at org.eclipse.swt.internal.gtk.OS.gtk_widget_show(OS.java:14774)
	 at org.eclipse.swt.widgets.TabFolder.createItem(TabFolder.java:311)
	 at org.eclipse.swt.widgets.TabItem.createWidget(TabItem.java:123)
	 at org.eclipse.swt.widgets.TabItem.<init>(TabItem.java:75)
	 at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.createControl(BuildPathsBlock.java:228)
	 at org.eclipse.jdt.ui.wizards.JavaCapabilityConfigurationPage.createControl(JavaCapabilityConfigurationPage.java:162)
	 at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:175)
	 at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:705)
	 at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:597)
	 at org.eclipse.jface.window.Window.create(Window.java:430)
	 at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1096)
	 at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:123)
	 at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
	 at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
	 at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
	 at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
	 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	 at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4481)
	 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1329)
	 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3819)
	 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3430)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
	 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	 at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
	 at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694)
	 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606)
	 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
	 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
	 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
	 at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
	 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	 at java.lang.reflect.Method.invoke(Method.java:606)
	 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
	 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
	 at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
	 at org.eclipse.equinox.launcher.Main.main(Main.java:1488)

------
REPORT
------
anonymousId         7b3d8a3a-8934-4fe0-8d36-901e9ff057f3
name                
email               
comment             
eclipseBuildId      4.5.2.M20160212-1500
eclipseProduct      org.eclipse.epp.package.java.product
javaRuntimeVersion  1.7.0_79-b15
osgiWs              gtk
osgiOs              Linux
osgiOsVersion       4.5.1
osgiArch            x86_64
severity            UNKNOWN

-------
BUNDLES
-------
name                org.eclipse.core.databinding.observable
version             1.5.0.v20150422-0725

name                org.eclipse.core.databinding
version             1.5.0.v20150422-0725

name                org.eclipse.core.runtime
version             3.11.1.v20150903-1804

name                org.eclipse.e4.ui.workbench
version             1.3.1.v20160203-0951

name                org.eclipse.e4.ui.workbench.swt
version             0.13.0.v20150504-0621

name                org.eclipse.equinox.app
version             1.3.300.v20150423-1356

name                org.eclipse.equinox.launcher
version             1.3.100.v20150511-1540

name                org.eclipse.jdt.ui
version             3.11.2.v20151123-1510

name                org.eclipse.jdt
version             3.11.2.v20160212-1500

name                org.eclipse.jface
version             3.11.1.v20160128-1644

name                org.eclipse.swt
version             3.104.2.v20160212-1350

name                org.eclipse.ui
version             3.107.0.v20150507-1945

name                org.eclipse.ui.ide.application
version             1.1.0.v20150422-0725

name                org.eclipse.ui.ide
version             3.11.0.v20150825-2158

I have been trying some things, but nothing seems to work. I always get this exception. Is this a known bug?

Thanks in advance.

Last edited by alejandrocq (2016-05-19 19:49:09)

Offline

#2 2016-05-05 17:55:10

misto
Member
Registered: 2015-02-25
Posts: 3

Re: [SOLVED] NullPointerException on eclipse new project

Doesn't look familiar, but I've had my share of problems with SWT (Eclipse's widget toolkit) and GTK3, you can try forcing SWT back to GTK2 with the environment variable SWT_GTK3=0. Maybe this helps.

Offline

#3 2016-05-05 18:00:29

alejandrocq
Member
Registered: 2016-01-13
Posts: 10

Re: [SOLVED] NullPointerException on eclipse new project

misto wrote:

Doesn't look familiar, but I've had my share of problems with SWT (Eclipse's widget toolkit) and GTK3, you can try forcing SWT back to GTK2 with the environment variable SWT_GTK3=0. Maybe this helps.

That works! Thank you! So what should be the permanent fix for this? Or we should wait for a fix by Eclipse team?

Last edited by alejandrocq (2016-05-05 18:00:57)

Offline

#4 2016-05-06 06:42:59

misto
Member
Registered: 2015-02-25
Posts: 3

Re: [SOLVED] NullPointerException on eclipse new project

I wouldn't count on a fix from Eclipse, certainly not for the current version (Eclipse Mars that you're using). But the next major release Eclipse Neon will be released next month, hopefully it will be fixed by then.

Offline

#5 2016-05-19 19:45:46

pdrocaldeira
Member
From: Brazil - Belo Horizonte
Registered: 2015-10-11
Posts: 30

Re: [SOLVED] NullPointerException on eclipse new project

I think this post can be marked as [SOLVED].

I had a similar problem, mine was opening Build Path GUI.

Thanks!

Offline

#6 2016-05-19 19:47:30

alejandrocq
Member
Registered: 2016-01-13
Posts: 10

Re: [SOLVED] NullPointerException on eclipse new project

pdrocaldeira wrote:

I think this post can be marked as [SOLVED].

I had a similar problem, mine was opening Build Path GUI.

Thanks!

Yes, I forgot to mark it. I'm going to do it right now.

Thanks.

Offline

Board footer

Powered by FluxBB