Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 194468 - Error while attaching large context along with a patch
Summary: Error while attaching large context along with a patch
Status: RESOLVED FIXED
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: 2.0   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 14:07 EDT by Helen CLA
Modified: 2007-06-26 20:31 EDT (History)
0 users

See Also:


Attachments
mylyn/context/zip (2.42 KB, application/octet-stream)
2007-06-26 17:19 EDT, Robert Elves CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helen CLA 2007-06-26 14:07:02 EDT
-- Error Log --
Date: Tue Jun 26 11:03:44 PDT 2007
Message: Unexpected error while attaching context
Severity: Error
Plugin ID: org.eclipse.mylyn
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.mylyn.internal.tasks.ui.ContextUiUtil.uploadContext(ContextUiUtil.java:108)
at org.eclipse.mylyn.internal.tasks.ui.wizards.ContextAttachWizard.performFinish(ContextAttachWizard.java:52)
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:3673)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3284)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.mylyn.internal.context.ui.actions.ContextAttachAction.run(ContextAttachAction.java:89)
at org.eclipse.mylyn.internal.context.ui.editors.ContextEditorFormPage$4.mouseUp(ContextEditorFormPage.java:220)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:206)
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:3673)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3284)
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:497)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:436)
at org.eclipse.equinox.launcher.Main.run(Main.java:1162)
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.mylyn.internal.bugzilla.core.BugzillaClient.postAttachment(BugzillaClient.java:613)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttachmentHandler.uploadAttachment(BugzillaAttachmentHandler.java:54)
at org.eclipse.mylyn.tasks.core.AbstractAttachmentHandler.attachContext(AbstractAttachmentHandler.java:156)
at org.eclipse.mylyn.internal.tasks.ui.ContextUiUtil$2.run(ContextUiUtil.java:99)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Root exception:
java.lang.IllegalArgumentException: Value may not be null
at org.apache.commons.httpclient.methods.multipart.StringPart.<init>(StringPart.java:86)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.postAttachment(BugzillaClient.java:613)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttachmentHandler.uploadAttachment(BugzillaAttachmentHandler.java:54)
at org.eclipse.mylyn.tasks.core.AbstractAttachmentHandler.attachContext(AbstractAttachmentHandler.java:156)
at org.eclipse.mylyn.internal.tasks.ui.ContextUiUtil$2.run(ContextUiUtil.java:99)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Comment 1 Robert Elves CLA 2007-06-26 17:19:07 EDT
Fixed. Likely the result of no repository credentials set in Task Repository Settings Page.  Settings dialog now enforces credentials being set if not anonymous. I've also added null check in Bugzilla Client attachment code.
Comment 2 Robert Elves CLA 2007-06-26 17:19:22 EDT
Created attachment 72534 [details]
mylyn/context/zip
Comment 3 Helen CLA 2007-06-26 19:34:52 EDT
Hmmm... I don't think I had to add credentials to get it to work -- it did work after a couple of times, but I cannot figure out what it was that made the attachment and context checkin finally work.  
I have periodically run into the credentials being lost for no reason problem, but I was hoping it was because of updates to eclipse that I was doing -- as I understand, user/password info gets lost on platform updates.
Comment 4 Robert Elves CLA 2007-06-26 20:31:02 EDT
Okay, keep an eye out when using the next build and re-open if you see this again.  You are right about the credentials, they do go missing upon update.