Community
Participate
Working Groups
-- 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)
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.
Created attachment 72534 [details] mylyn/context/zip
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.
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.