Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340218 - failed to use Share -> Email
Summary: failed to use Share -> Email
Status: RESOLVED FIXED
Alias: None
Product: MPC
Classification: Technology
Component: wizard (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.1   Edit
Assignee: Benjamin Muskalla CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 14:56 EDT by Thomas Ehrnhoefer CLA
Modified: 2011-05-16 06:20 EDT (History)
2 users (show)

See Also:


Attachments
patch v1 (4.18 KB, patch)
2011-03-16 16:31 EDT, Thomas Ehrnhoefer CLA
b.muskalla: iplog+
Details | Diff
mylyn/context/zip (1.18 KB, application/octet-stream)
2011-03-16 16:31 EDT, Thomas Ehrnhoefer CLA
no flags Details
proposed patch (4.79 KB, patch)
2011-04-13 07:53 EDT, Benjamin Muskalla CLA
no flags Details | Diff
mylyn/context/zip (19.85 KB, application/octet-stream)
2011-04-13 07:54 EDT, Benjamin Muskalla CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Ehrnhoefer CLA 2011-03-16 14:56:15 EDT
java.lang.reflect.InvocationTargetException
	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.epp.internal.mpc.ui.wizards.ShareSolutionLink.openMail(ShareSolutionLink.java:125)
	at org.eclipse.epp.internal.mpc.ui.wizards.ShareSolutionLink.openNewMail(ShareSolutionLink.java:104)
	at org.eclipse.epp.internal.mpc.ui.wizards.ShareSolutionLink$2.widgetSelected(ShareSolutionLink.java:92)
	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:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand.execute(MarketplaceWizardCommand.java:158)
	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.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:820)
	at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:806)
	at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:796)
	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:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	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(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:620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
Caused by: java.io.IOException: Failed to open mailto:someone?subject=Eclipse%20solution%20%22Google%20Plugin%20for%20Eclipse%20%22&body=Google%20Plugin%20for%20Eclipse%20%0Ahttp://marketplace.eclipse.org/content/google-plugin-eclipse/promo%0A%0A**Promoted**%20%20Google%20Plugin%20for%20Eclipse%20is%20a%20set%20of%20software%20development%20tools%20that%20enables%20Java%20developers%20to%20quickly%20design,%20build,%20optimize,%20and%20deploy%20cloud-based%20applications.%20GPE%20assists%20developers%20in%20efficiently%20creating%20a%20rich%20user%20experience,%20generating%20high%20quality%20Ajax%20code%20using%20the%20Google%20Web%20Toolkit,%20optimizing%20performance%20with%20Speed%20Tracer,%20and%20effortlessly%20deploying%20applications%20to%20the%20Google%20cloud.%20These%20powerful%20tools%20remove%20tedium%20and%20free%20developers%20to%20focus%20on%20creating%20great%20application%20logic.%20GPE%20is%20the%20first%20suite%20of%20integrated%20development%20tools%20designed%20specifically%20for%20Eclipse%20Java%20developers%20to%20create%20fast,%20reliable%20and%20high%20quality%20applications%20for%20the%20Google%20cloud.. Error message: No application is associated with the specified file for this operation.

	at sun.awt.windows.WDesktopPeer.ShellExecute(Unknown Source)
	at sun.awt.windows.WDesktopPeer.mail(Unknown Source)
	at java.awt.Desktop.mail(Unknown Source)
	... 47 more
Comment 1 Thomas Ehrnhoefer CLA 2011-03-16 16:31:37 EDT
Created attachment 191352 [details]
patch v1

fallback: open a dialog and inform user, copy email body to clipboard
Comment 2 Thomas Ehrnhoefer CLA 2011-03-16 16:31:38 EDT
Created attachment 191353 [details]
mylyn/context/zip
Comment 3 Benjamin Muskalla CLA 2011-04-13 07:53:59 EDT
Created attachment 193152 [details]
proposed patch

I'd try to avoid overriding the users clipboard without asking. Proposed patch tells the user that something didn't work and if he wants to copy this stuff into the clipboard.

Thomas, any objections?
Comment 4 Benjamin Muskalla CLA 2011-04-13 07:54:02 EDT
Created attachment 193153 [details]
mylyn/context/zip
Comment 5 Benjamin Muskalla CLA 2011-04-19 19:48:05 EDT
Pushed patch to master.