Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 387623

Summary: IllegalArgumentException when opening a gmon.out file with Windows XP version of Juno Eclipse build
Product: [Tools] Linux Tools Reporter: David Wootton <drwootton>
Component: GProfAssignee: Xavier Raynaud <xraynaud>
Status: RESOLVED FIXED QA Contact: Xavier Raynaud <xraynaud>
Severity: normal    
Priority: P3 CC: akurtakov, lilia.ghachem
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Wootton CLA 2012-08-20 11:44:43 EDT
I installed the Eclipse Juno build and the Linuxtools plugins from the Juno download site on a 32 bit Windows XP system. I attempted to open a gmon.out file created on a Linux x86_64 system. After I clicked OK on the prompt for the executable I got the following exception. The gmon.out file did not have any special characters in the filename.

java.lang.IllegalArgumentException: Illegal secondary id (cannot be empty or contain a colon)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3752)
	at org.eclipse.linuxtools.internal.gprof.view.GmonView.displayGprofView(GmonView.java:242)
	at org.eclipse.linuxtools.internal.gprof.view.GmonView.displayGprofView(GmonView.java:225)
	at org.eclipse.linuxtools.internal.gprof.action.OpenGmonAction.open(OpenGmonAction.java:57)
	at org.eclipse.ui.internal.WorkbenchPage$24.run(WorkbenchPage.java:4569)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openExternalEditor(WorkbenchPage.java:4561)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3064)
	at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:2996)
	at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:2978)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2974)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2933)
	at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:338)
	at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:180)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Comment 1 Xavier Raynaud CLA 2013-03-22 09:43:17 EDT
fixed by commit b628b57ccdf3ac050afa9feac535ab1b6597387c
(see https://git.eclipse.org/r/#/c/9236/)