Community
Participate
Working Groups
I got NullPointerException error when setting up build env in CDT 8.0.2 for Eclipse Indigo, which is downloaded from http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2, after un-compressing the file, also installed GEF and clearcase Team Explorer. To reproduce 1. create a clearcase view and load the source files 2. in C/C++ perspective, click File - New -- Makefile project with existing code 3. choose the source folder from the view created, click ok, project created 4. right click project name in project explorer, select properties 5. click C/C++ build, get java.lang.NullPointerException
Can you provide a stack trace for the NPE? Normally it can be found in file .metadata/.log in your workspace.
No response from submitter, closing bug.
Here is the .log. I noticed this happens when Clearcase Team explorer is installed. No this error with the same local files if I uninstalled clearcase Team Explorer. !ENTRY org.eclipse.jface 4 2 2013-02-26 12:08:46.807 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab.updateButtons(BuilderSettingsTab.java:140) at org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab.updateData(BuilderSettingsTab.java:310) at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.setVisible(AbstractCPropertyTab.java:243) at org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab.setVisible(BuilderSettingsTab.java:339) at org.eclipse.cdt.ui.newui.AbstractCPropertyTab.handleTabEvent(AbstractCPropertyTab.java:551) at org.eclipse.cdt.ui.newui.AbstractPage.setVisible(AbstractPage.java:810) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1323) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:674) at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:708) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:704) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:886) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1226) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1251) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:262) at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:256) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:433) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 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:344) 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:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Is there any update? I cannot use the new clearcase team explorer server which only supports Eclipse Indigo and newer version because of this. The current server is going to be dispelled. Thanks.
As far as I know nobody volunteered to work on this yet.
The line is bldr = icfg.getEditableBuilder(); Not sure how icfg could be null but it would help to have a reproducible case... Any chance that there is a free trial of some sort for that version of ClearCase? Or do I just need to install the Eclipse plugin (link?).
Thanks for looking into the issue. The easier way to reproduce this is using Eclipse CDT + clearcase plugin, which can be downloaded from http://eclipse-ccase.sourceforge.net/update/ There is some speciality with the vob I am using, /vobs/ifmx_qa/rqg under it bin is an empty dir src is dir with a lot of source code etc is a dir with some config files GNUmakefile $ cat GNUmakefile all: src src: ALWAYS (cd src ; make) ALWAYS: cleanup:clean clean: (cd src ; make clean) No this issue if I create project with /vobs/ifmx_qa/rqg/src, I doubt if the error is from bin directory
I didn't have the issue with Eclipse CDT helio, found it during upgrading to Indigo.
I got this NPE with Eclipse 2019-06 and CDT 9.8.0.201906071757.
I got this bug because I added the project nature "CDT Builder Project" manually to my CDT project. The CDT project is created with an older CDT version and has a different configuration than new CDT projects. Is there a release info where I could see what is the difference of the file .cproject from an older version to a newer version of CDT?