Skip to main content



      Home
Home » Eclipse Projects » Mylyn » parseHtmlError when I call postTaskData() on Bugzilla Connector
parseHtmlError when I call postTaskData() on Bugzilla Connector [message #65610] Mon, 16 February 2009 17:49 Go to next message
Eclipse UserFriend
Using Bugzilla 3.2.2 and Mylyn 3.0.4.
Bugzilla's 'errorlog' has nothing valid in it.

I get this error upon a postTaskData() call to update an existing bug's
description via the Bugzilla Connector API:

org.eclipse.core.runtime.CoreException: A repository error has occurred.
at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1351)
at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.post TaskData(BugzillaClient.java:868)
at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaTaskDataHan dler.postTaskData(BugzillaTaskDataHandler.java:254)
....
....
....



The code:


TasksUiPlugin.getDefault().getPreferenceStore().setValue(
ITasksUiPreferenceConstants.REPOSITORY_SYNCH_SCHEDULE_ENABLE D, false);

TaskRepositoryManager manager = TasksUiPlugin.getRepositoryManager();


TaskRepository repository = new
TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, URL);

repository.setCredentials(AuthenticationType.REPOSITORY,
new AuthenticationCredentials(USER, PASS), false);

repository.setTimeZoneId("Canada/Eastern");
manager.addRepository(repository);
TaskList taskList = TasksUiPlugin.getTaskList();
AbstractRepositoryConnector abstractRepositoryClient =
manager.getRepositoryConnector(BugzillaCorePlugin.CONNECTOR_ KIND);

BugzillaRepositoryConnector connector = (BugzillaRepositoryConnector)
abstractRepositoryClient;

TaskData taskData = null;
try {
taskData = connector.getTaskData(repository, "1", new
NullProgressMonitor());
} catch (CoreException e1) {
e1.printStackTrace();
}


TaskAttribute desc = taskData.getRoot().getMappedAttribute(
TaskAttribute.DESCRIPTION);

System.out.println("Current desc value is "+desc.getValue()); /* THIS
WORKS!*/

String newDescriptionText = "New description!!!!!";
desc.setValue(newDescriptionText);
Set<TaskAttribute> changed = new HashSet<TaskAttribute>();
changed.add(desc);

try {
connector.getTaskDataHandler().postTaskData(repository, taskData,
changed, new NullProgressMonitor()); /* THIS THROWS THE EXCEPTION */

} catch (CoreException e) {
e.printStackTrace();
return;
}



Any ideas would be appreciated!


Thanks,

V
Re: parseHtmlError when I call postTaskData() on Bugzilla Connector [message #65631 is a reply to message #65610] Mon, 16 February 2009 21:34 Go to previous message
Eclipse UserFriend
99% sure this is related to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=264972

I'm able to repeat it using the Mylyn GUI.


Any idea when that fix will be in? Where can we get the patches as the
developers fix the issues?



Thanks,

Vinny
Re: parseHtmlError when I call postTaskData() on Bugzilla Connector [message #596344 is a reply to message #65610] Mon, 16 February 2009 21:34 Go to previous message
Eclipse UserFriend
99% sure this is related to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=264972

I'm able to repeat it using the Mylyn GUI.


Any idea when that fix will be in? Where can we get the patches as the
developers fix the issues?



Thanks,

Vinny
Previous Topic:CoreException from BugzillaClient#parseHtmlError
Next Topic:Mylyn without CVS support
Goto Forum:
  


Current Time: Fri May 02 09:56:02 EDT 2025

Powered by FUDForum. Page generated in 0.04729 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top