Community
Participate
Working Groups
What steps will reproduce the problem? 1. Perhaps import existing SRPM 2. Edit the spec file 3. Get asked if you really want to edit the derived spec file 4. Answer yes 5. Do Export => RPM => Binary/Source RPM 6. Select either one 7. Click "Next" 8. The error below occurs and does not let one building the RPM :( Actual result: Sad user :( Expected result: Built binary RPM and happy user :) -- Error Details -- Date: Thu Jun 09 13:37:47 EDT 2011 Message: Unhandled event loop exception Severity: Error Product: Eclipse Platform 3.6.2.r362_v20110120 (org.eclipse.platform.ide) Plugin: org.eclipse.ui Session Data: eclipse.buildId=M20110210-1200 java.version=1.6.0_22 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Framework arguments: -product org.eclipse.platform.ide Command-line arguments: -product org.eclipse.platform.ide -data /notnfs/workspaces/efp-koji-kerberos/../runtime-remove_me_configuration -dev file:/notnfs/workspaces/efp-koji-kerberos/.metadata/.plugins/org.eclipse.pde.core/Clean workspace Eclipse/dev.properties -os linux -ws gtk -arch x86_64 -consoleLog Exception Stack Trace: java.lang.NullPointerException at org.eclipse.linuxtools.rpm.core.RPMConfiguration.initialize(RPMConfiguration.java:48) at org.eclipse.linuxtools.rpm.core.RPMConfiguration.<init>(RPMConfiguration.java:30) at org.eclipse.linuxtools.rpm.core.RPMProject.<init>(RPMProject.java:37) at org.eclipse.linuxtools.rpm.ui.RPMExportPage.<init>(RPMExportPage.java:52) at org.eclipse.linuxtools.rpm.ui.RPMExportWizard.addPages(RPMExportWizard.java:108) at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:113) at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:100) at org.eclipse.ui.internal.dialogs.ImportExportPage.getNextPage(ImportExportPage.java:431) at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:887) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) 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:3540) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.handlers.WizardHandler$Export.executeHandler(WizardHandler.java:98) at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157) 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:3540) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) 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:369) 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:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
$ rpm -q eclipse-rpm-editor eclipse-rpm-editor-0.6.0-2.fc15.x86_64
Severin, can you reproduce with master?
(In reply to comment #2) > Severin, can you reproduce with master? No, I can't reproduce. However, if I import an SRPM then it seems to assume a flat layout (it isn't). When I try to export an SRPM .spec file editor complains that there is no /path/to/workspace/srpm-name/source-file.tar.xz where it should be looking at /path/to/workspace/srpm-name/SOURCES/source-file.tar.xz Thanks!
Fixed in b1d6069..6ea4489