erlang / erlide_eclipse

Eclipse IDE for Erlang
http://erlide.org
202 stars 70 forks source link

Creation Problems - Internal error : null #178

Open drapostolos opened 10 years ago

drapostolos commented 10 years ago

I get the following error pop-up when clicking on the Finish button in below picture. Can't seem to reproduce it...

image

vladdu commented 10 years ago

Hmm, is there any exception in the logs? check /.metadata/.log

If it happens again, there is the "show error log" link that will display the log, too.

drapostolos commented 10 years ago

!SESSION 2014-05-06 15:48:52.690 ----------------------------------------------- eclipse.buildId=M20140221-1700.EECS-140 java.version=1.7.0_45 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86_64 !ENTRY org.eclipse.ui 2 0 2014-05-06 15:50:05.665 !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points. [...] !ENTRY org.erlide.core 1 0 2014-05-06 15:51:53.796 !MESSAGE * starting Erlide v0.28.0.201404091819 (core=0.24.5.201404091819) (model api=0.24.5.201404091819) * (ISO-8859-1) !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.584 !MESSAGE NLS unused message: Always in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.588 !MESSAGE NLS unused message: Never in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.591 !MESSAGE NLS unused message: Prompt in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.595 !MESSAGE NLS unused message: WizardTransferPage_selectTypes in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.599 !MESSAGE NLS unused message: WizardTransferPage_selectAll in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.602 !MESSAGE NLS unused message: WizardTransferPage_deselectAll in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.605 !MESSAGE NLS unused message: WizardImportPage_browseLabel in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.608 !MESSAGE NLS unused message: WizardImportPage_browse2 in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.612 !MESSAGE NLS unused message: WizardImportPage_selectFolderLabel in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.615 !MESSAGE NLS unused message: WizardImportPage_selectFolderTitle in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.618 !MESSAGE NLS unused message: WizardImportPage_destinationLabel in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.622 !MESSAGE NLS unused message: WizardImportPage_options in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.625 !MESSAGE NLS unused message: WizardImportPage_projectNotExist in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.628 !MESSAGE NLS unused message: WizardImportPage_noOpenProjects in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.631 !MESSAGE NLS unused message: WizardImportPage_undefinedPathVariable in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.635 !MESSAGE NLS unused message: WizardImportPage_containerNotExist in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.639 !MESSAGE NLS unused message: WizardExportPage_errorDialogTitle in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.643 !MESSAGE NLS unused message: WizardExportPage_mustExistMessage in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.647 !MESSAGE NLS unused message: WizardExportPage_mustBeAccessibleMessage in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.650 !MESSAGE NLS unused message: WizardExportPage_detailsMessage in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.653 !MESSAGE NLS unused message: WizardExportPage_whatLabel in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.656 !MESSAGE NLS unused message: WizardExportPage_whereLabel in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.659 !MESSAGE NLS unused message: WizardExportPage_selectionDialogMessage in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.662 !MESSAGE NLS unused message: WizardExportPage_resourceTypeDialog in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.665 !MESSAGE NLS unused message: WizardExportPage_folder in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.668 !MESSAGE NLS unused message: WizardExportPage_browse in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.671 !MESSAGE NLS unused message: WizardExportPage_allTypes in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.674 !MESSAGE NLS unused message: WizardExportPage_specificTypes in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.677 !MESSAGE NLS unused message: WizardExportPage_edit in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.680 !MESSAGE NLS unused message: WizardExportPage_details in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.684 !MESSAGE NLS unused message: WizardExportPage_selectResourcesTitle in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.687 !MESSAGE NLS unused message: WizardExportPage_oneResourceSelected in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.690 !MESSAGE NLS unused message: WizardExportPage_selectResourcesToExport in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.694 !MESSAGE NLS unused message: WizardExportPage_resourceCountMessage in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.697 !MESSAGE NLS missing message: DataTransfer_scanningChildren in: org.erlide.ui.wizards.messages !ENTRY org.eclipse.osgi 2 1 2014-05-06 17:03:10.701 !MESSAGE NLS missing message: ZipExport_description in: org.erlide.ui.wizards.messages !ENTRY org.erlide.ui 2 0 2014-05-06 17:08:17.597 !MESSAGE Internal error: null !STACK 0 java.lang.NullPointerException at org.erlide.engine.internal.model.root.ErlProject.setProperties(ErlProject.java:589) at org.erlide.ui.wizards.ProjectCreator$1.run(ProjectCreator.java:118) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028) at org.erlide.ui.wizards.ProjectCreator.newProject(ProjectCreator.java:128) at org.erlide.ui.wizards.NewErlangProjectWizard.createNewProject(NewErlangProjectWizard.java:156) at org.erlide.ui.wizards.NewErlangProjectWizard.performFinish(NewErlangProjectWizard.java:130) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363) at org.eclipse.jface.window.Window.runEventLoop(Window.java:826) at org.eclipse.jface.window.Window.open(Window.java:802) at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:135) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) 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:1392) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) 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:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

15:51:53,791 I: (ErlangCore.java:66) : Starting CORE Thread[main,6,main] 15:51:53,794 I: (ErlangCore.java:75) : * starting Erlide v0.28.0.201404091819 (core=0.24.5.201404091819) (model api=0.24.5.201404091819) * (ISO-8859-1) 15:51:53,802 I: (ErlangCore.java:82) : Started CORE 15:51:56,464 F: (ErlangHostnameRetriever.java:40) : Test long hostname: ** 15:51:57,117 F: (ErlangHostnameRetriever.java:40) : Test short hostname: ** 15:51:57,139 F: (HostnameUtils.java:73) : Detected:: * && *** 15:51:57,191 F: (BackendPlugin.java:42) : Backend plugin started org.erlide.backend.internal.BackendManager@3b4ec812 15:51:57,194 I: (ErlideUIPlugin.java:156) : Starting UI Thread[main,6,main] 15:51:57,330 I: (ErlideUIPlugin.java:191) : Started UI 15:51:58,205 F: (ModelActivator.java:19) : Starting Erlang model api 15:51:58,209 F: (ModelPlugin.java:35) : Starting Erlang model 15:51:58,209 F: (ModelPlugin.java:38) : Started model 15:51:58,223 F: (BackendFactory.java:44) : Create ide backend R16B03-1 15:51:58,223 F: (BackendFactory.java:76) : Create backend f0861_* 15:51:58,253 F: (ManagedErlRuntime.java:56) : START node :> [**/otp/r16b03-03/i686-pc-linux-gnu/lib/erlang/bin/erl, -name, ****_, -setcookie, erlide] _\ /eclipse-workspaces/demo 15:51:58,253 F: (ErlRuntime.java:411) : Runtime ****\ starting 15:51:58,465 F: (ErlRuntime.java:273) : using cookie 'erlide...'6 (info: 'erlide') 15:51:58,477 F: (ErlRuntime.java:278) : : waiting connection to peer... 15:51:58,831 F: (ErlRuntime.java:416) : Runtime ***\ running 15:51:59,317 F: (LogEventHandler.java:27) : info: {"Monitoring java node",''} 15:51:59,319 F: (LogEventHandler.java:27) : info: {"Start monitor process: ",10000000,50000000} 15:51:59,848 F: (ModelActivator.java:31) : Started model api 16:49:13,140 W: (PreferencesProjectConfigurator.java:32) : Could not load project preferences from 'null', returning default values. 16:50:00,436 W: (PreferencesProjectConfigurator.java:32) : Could not load project preferences from 'null', returning default values. 16:50:48,806 W: (PreferencesProjectConfigurator.java:32) : Could not load project preferences from 'null', returning default values. 16:50:52,845 W: (PreferencesProjectConfigurator.java:32) : Could not load project preferences from 'null', returning default values. 17:03:11,834 I: (InternalBuilder.java:81) : USAGE: build: Start gte-lib-sut: full 17:03:11,853 F: (InternalBuilder.java:202) : Will compile 3 resource(s) 17:03:11,855 F: (BackendFactory.java:68) : Create build backend R16 17:03:11,855 F: (BackendFactory.java:76) : Create backend R16_ 17:03:11,857 F: (ManagedErlRuntime.java:56) : START node :> [**/r16b03-03/i686-pc-linux-gnu/lib/erlang/bin/erl, -name, ***, -setcookie, erlide] * /*/eclipse-workspaces/demo 17:03:11,858 F: (ErlRuntime.java:411) : Runtime R16*_* starting 17:03:12,079 F: (ErlRuntime.java:273) : using cookie 'erlide...'6 (info: 'erlide') 17:03:12,079 F: (ErlRuntime.java:278) : R16_*_: waiting connection to peer... 17:03:16,261 F: (ErlRuntime.java:416) : Runtime R16f0861*** running 17:03:16,674 F: (LogEventHandler.java:27) : info: {"Monitoring java node",'jerlide_20f57cd@***'} 17:03:16,675 F: (LogEventHandler.java:27) : info: {"Start monitor process: ",10000000,50000000} 17:03:28,742 I: (InternalBuilder.java:122) : USAGE: build: Done gte-lib-sut took 16908 17:03:29,796 I: (InternalBuilder.java:81) : USAGE: build: Start gte-lib-sut: auto 17:03:29,863 F: (InternalBuilder.java:328) : .app: ignore sut_SUITE.erl 17:03:30,010 F: (InternalBuilder.java:202) : Will compile 0 resource(s) 17:03:30,011 I: (InternalBuilder.java:122) : USAGE: build: Done gte-lib-sut took 214 17:08:19,755 I: (InternalBuilder.java:81) : USAGE: build: Start gte-lib-sut: full 17:08:19,759 F: (InternalBuilder.java:202) : Will compile 5 resource(s) 17:08:23,335 I: (InternalBuilder.java:122) : USAGE: build: Done gte-lib-sut took 3579 17:09:03,935 I: (InternalBuilder.java:81) : USAGE: build: Start gte-lib-sut: full 17:09:03,938 F: (InternalBuilder.java:202) : Will compile 5 resource(s) 17:09:05,623 I: (InternalBuilder.java:122) : USAGE: build: Done gte-lib-sut took 1688 17:09:06,676 I: (InternalBuilder.java:81) : USAGE: build: Start gte-lib-sut: full 17:09:06,680 F: (InternalBuilder.java:202) : Will compile 5 resource(s) 17:09:08,348 I: (InternalBuilder.java:122) : USAGE: build: Done gte-lib-sut took 1672 17:13:00,840 I: (ReportPreferencePage.java:190) : ++++++++++++++++++++++ System information could not be retrieved (node not monitored)...

vladdu commented 10 years ago

Ok, for some reason the wizard runs before the plugins are started, no wonder that things are not initialized. But Eclipse says that the plugins will get started when any class is loaded, so I don't understand how it can happen.

Thanks for the report, I will investigate.