Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 192984 - Provide error message on adding attachment when not logged into repository
Summary: Provide error message on adding attachment when not logged into repository
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 208839
Blocks:
  Show dependency tree
 
Reported: 2007-06-15 15:49 EDT by Gail Murphy CLA
Modified: 2012-03-08 10:14 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gail Murphy CLA 2007-06-15 15:49:41 EDT
This exception occurred when trying to add an attachment to a report. The error was not being logged into the repository.

-- Error Log --
Date: Fri Jun 15 12:40:28 PDT 2007
Message: Attachment failure

Severity: Error
Plugin ID: org.eclipse.mylar
Stack Trace:
java.lang.reflect.InvocationTargetException
	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:350)
	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
	at org.eclipse.mylar.internal.tasks.ui.wizards.NewAttachmentWizard.performFinish(NewAttachmentWizard.java:199)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
	at org.eclipse.jface.window.Window.open(Window.java:796)
	at org.eclipse.mylar.internal.tasks.ui.actions.AttachFileAction.run(AttachFileAction.java:49)
	at org.eclipse.mylar.tasks.ui.editors.AbstractRepositoryTaskEditor$18.widgetSelected(AbstractRepositoryTaskEditor.java:1420)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	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:504)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: java.lang.IllegalArgumentException: Value may not be null
	at org.apache.commons.httpclient.methods.multipart.StringPart.<init>(StringPart.java:86)
	at org.eclipse.mylar.internal.bugzilla.core.BugzillaClient.postAttachment(BugzillaClient.java:580)
	at org.eclipse.mylar.internal.bugzilla.core.BugzillaAttachmentHandler.uploadAttachment(BugzillaAttachmentHandler.java:91)
	at org.eclipse.mylar.internal.tasks.ui.wizards.NewAttachmentWizard$1.run(NewAttachmentWizard.java:170)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Comment 1 Steffen Pingel CLA 2008-05-02 03:25:57 EDT
Rob, this should be fixed when implementing password prompting support for Bugzilla.
Comment 2 Robert Elves CLA 2008-06-14 00:01:35 EDT
Need to defer: http://wiki.eclipse.org/index.php/Mylyn/3.0_Plan#Deferred_Items
Comment 3 Steffen Pingel CLA 2011-09-27 17:44:36 EDT
Need to verify if this is stale or still applies.
Comment 4 Steffen Pingel CLA 2012-03-08 10:14:16 EST
This is stale. Please reopen with an updated stack trace in case you are still experiencing the problem with the latest version.