Hi, Steffen!
Excellent... thanks very much for the patch. Now I'm making some headway!
With the patch applied, and using credentials for my test account on bugzilla landfill, I now get a bit further. Alas, I fall apart with a violated assertion in org.eclipse.core.runtime as seen in the following console output and stack dump:
Aug 12, 2008 2:45:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Required credentials not available for BASIC <any realm>@
landfill.bugzilla.org:443
Aug 12, 2008 2:45:20 PM org.apache.commons.httpclient.HttpMethodDirector authenticateHost
WARNING: Preemptive authentication requested but no default credentials available
sdf
P5
accepting this bug, however turning down the temperature may result in global
cooling...
enhancement
Exception in thread "main" org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)
at org.eclipse.core.runtime.ProgressMonitorWrapper.<init>(ProgressMonitorWrapper.java:34)
at org.eclipse.core.runtime.SubProgressMonitor.<init>(SubProgressMonitor.java:98)
at org.eclipse.core.runtime.SubProgressMonitor.<init>(SubProgressMonitor.java:78)
at org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHandler.postTaskData(BugzillaTaskDataHandler.java:249)
at org.eclipse.mylyn.internal.examples.bugzilla.Main.main(Main.java:62)
It seems that I go off the rails when doing the postTaskData(...) call. Is that a mistake of mine, a privileges problem with the Bugzilla account that I'm using, or some incorrect initialization of some Eclipse core goodies?
I've put (approximately) the contents of this mail in the comments on the bug so they're preserved for posterity and google-a-bility by anybody else who might be trying to do something similar...
Best regards,
Jerry
On Mon, Aug 11, 2008 at 6:52 PM, Steffen Pingel
<steffenp@xxxxxx> wrote:
Sorry about that. It had slipped my mind that this bug was still unresolved
and prevented the example from running.
> Is there an obvious workaround for the problem that I'd know if I was more
> familiar with the mylyn architecture that will get me running with the
> bugzilla connector, or is this a fatal problem for which I have to wait for
> a fix? I'm totally happy to instantiate
>
> BugzillaCorePlugin
>
> or any other reasonable pre-requisite classes to get myself working...
> I'd just need to know what they are and how to do it... :-)
You would also have to invoke start() which might get tricky as it expect a
valid BundleContext. I have posted a patch to bug 242983 that fixes the NPE
in the Bugzilla connector. If you update your workspace and apply that patch
you should be able to run the example.
Please comment on the bug in case you run into other problems when running the
Bugzilla connector as a standalone application.