Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Unable to update Bugzilla
Unable to update Bugzilla [message #61983] Thu, 20 November 2008 10:40 Go to next message
chakribobby  is currently offline chakribobby Friend
Messages: 5
Registered: July 2009
Junior Member
Hi
While running the below code I got this error message

org.eclipse.core.runtime.CoreException: Mid-air collision occurred while
submitting to http://bugzilla-link/.
Synchronize task and re-submit changes.
at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1221)
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)
at test.main(test.java:47)


test code is
import org.eclipse.core.runtime.CoreException;
import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
import org.eclipse.mylyn.commons.net.AuthenticationType;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
import
org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryC onnector;
import org.eclipse.mylyn.internal.commons.net.CommonsNetPlugin;
import org.eclipse.mylyn.tasks.core.ITaskMapping;
import org.eclipse.mylyn.tasks.core.TaskRepository;
import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
import org.eclipse.mylyn.tasks.core.data.TaskData;

public class test {
private static final String URL = "http://bugzilla-link/";

private static final String BUG_ID = "4534";
public static void main(String[] args){
System.out.println("flkds");

TaskRepository repository = new
TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, URL);
AuthenticationCredentials credentials = new
AuthenticationCredentials("xyz", "xyz");
repository.setCredentials(AuthenticationType.REPOSITORY, credentials,
false);
BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector();
try {
// get a report from repository
TaskData taskData = connector.getTaskData(repository, BUG_ID, null);

// access task information
ITaskMapping taskMapping = connector.getTaskMapping(taskData);
System.out.println("Summary: " + taskMapping.getSummary());
System.out.println("Priority: " + taskMapping.getPriority());
System.out.println("status " + taskMapping.getStatus());

TaskAttribute descriptionAttribute =
taskData.getRoot().getMappedAttribute(TaskAttribute.COMPONEN T);
System.out.println("Component: " + descriptionAttribute.getValue());

// ...or by Bugzilla keys
TaskAttribute severityAttribute =
taskData.getRoot().getAttribute(BugzillaAttribute.BUG_SEVERI TY.getKey());
System.out.println("Severity: " + severityAttribute.getValue());
// Post modified report to repository
System.out.print("\nPosting a new comment... ");
TaskAttribute newCommentAttribute =
taskData.getRoot().getMappedAttribute(TaskAttribute.COMMENT_ NEW);
newCommentAttribute.setValue("Hello world.");

connector.getTaskDataHandler().postTaskData(repository, taskData, null,
null);
System.out.println("done");
}
catch (Exception e) {
e.printStackTrace();
} finally {
CommonsNetPlugin.getExecutorService().shutdown();
}

}

}


Output of the code is
Summary: test
Priority: P2
status NEW
Component: tasks
Severity: normal

Posting a new comment... org.eclipse.core.runtime.CoreException: Mid-air
collision occurred while submitting to http://bugzilla-link/.
Synchronize task and re-submit changes.
at
org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1221)
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)
at test.main(test.java:47)


can any one help me
thanks in advance
Re: Unable to update Bugzilla [message #62152 is a reply to message #61983] Tue, 25 November 2008 00:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rob.elves.eclipse.org

I just ran your code here without failure. What Bugzilla repository are
you testing against?

-Rob


chakribobby wrote:
> Hi
> While running the below code I got this error message
>
> org.eclipse.core.runtime.CoreException: Mid-air collision occurred while
> submitting to http://bugzilla-link/.
> Synchronize task and re-submit changes.
> at
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1221)
>
> 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)
>
> at test.main(test.java:47)
>
>
> test code is
> import org.eclipse.core.runtime.CoreException;
> import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
> import org.eclipse.mylyn.commons.net.AuthenticationType;
> import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
> import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
> import
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryC onnector;
> import org.eclipse.mylyn.internal.commons.net.CommonsNetPlugin;
> import org.eclipse.mylyn.tasks.core.ITaskMapping;
> import org.eclipse.mylyn.tasks.core.TaskRepository;
> import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
> import org.eclipse.mylyn.tasks.core.data.TaskData;
>
> public class test {
> private static final String URL = "http://bugzilla-link/";
>
> private static final String BUG_ID = "4534";
> public static void main(String[] args){
> System.out.println("flkds");
>
> TaskRepository repository = new
> TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, URL);
> AuthenticationCredentials credentials = new
> AuthenticationCredentials("xyz", "xyz");
> repository.setCredentials(AuthenticationType.REPOSITORY, credentials,
> false);
> BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector();
> try {
> // get a report from repository
> TaskData taskData = connector.getTaskData(repository, BUG_ID, null);
>
> // access task information
> ITaskMapping taskMapping = connector.getTaskMapping(taskData);
> System.out.println("Summary: " + taskMapping.getSummary());
> System.out.println("Priority: " + taskMapping.getPriority());
> System.out.println("status " + taskMapping.getStatus());
>
> TaskAttribute descriptionAttribute =
> taskData.getRoot().getMappedAttribute(TaskAttribute.COMPONEN T);
> System.out.println("Component: " + descriptionAttribute.getValue());
>
> // ...or by Bugzilla keys
> TaskAttribute severityAttribute =
> taskData.getRoot().getAttribute(BugzillaAttribute.BUG_SEVERI TY.getKey());
> System.out.println("Severity: " + severityAttribute.getValue());
> // Post modified report to repository
> System.out.print("\nPosting a new comment... ");
> TaskAttribute newCommentAttribute =
> taskData.getRoot().getMappedAttribute(TaskAttribute.COMMENT_ NEW);
> newCommentAttribute.setValue("Hello world.");
>
> connector.getTaskDataHandler().postTaskData(repository, taskData, null,
> null);
> System.out.println("done");
> }
> catch (Exception e) {
> e.printStackTrace();
> } finally {
> CommonsNetPlugin.getExecutorService().shutdown();
> }
>
> }
>
> }
>
>
> Output of the code is
> Summary: test
> Priority: P2
> status NEW
> Component: tasks
> Severity: normal
>
> Posting a new comment... org.eclipse.core.runtime.CoreException: Mid-air
> collision occurred while submitting to http://bugzilla-link/.
> Synchronize task and re-submit changes.
> at
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1221)
>
> 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)
>
> at test.main(test.java:47)
>
>
> can any one help me
> thanks in advance
Re: Unable to update Bugzilla [message #594972 is a reply to message #61983] Tue, 25 November 2008 00:48 Go to previous messageGo to next message
Robert Elves is currently offline Robert ElvesFriend
Messages: 87
Registered: July 2009
Member
I just ran your code here without failure. What Bugzilla repository are
you testing against?

-Rob


chakribobby wrote:
> Hi
> While running the below code I got this error message
>
> org.eclipse.core.runtime.CoreException: Mid-air collision occurred while
> submitting to http://bugzilla-link/
> Synchronize task and re-submit changes.
> at
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1221)
>
> 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)
>
> at test.main(test.java:47)
>
>
> test code is
> import org.eclipse.core.runtime.CoreException;
> import org.eclipse.mylyn.commons.net.AuthenticationCredentials;
> import org.eclipse.mylyn.commons.net.AuthenticationType;
> import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute;
> import org.eclipse.mylyn.internal.bugzilla.core.BugzillaCorePlugin;
> import
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryC onnector;
> import org.eclipse.mylyn.internal.commons.net.CommonsNetPlugin;
> import org.eclipse.mylyn.tasks.core.ITaskMapping;
> import org.eclipse.mylyn.tasks.core.TaskRepository;
> import org.eclipse.mylyn.tasks.core.data.TaskAttribute;
> import org.eclipse.mylyn.tasks.core.data.TaskData;
>
> public class test {
> private static final String URL = "http://bugzilla-link/";
>
> private static final String BUG_ID = "4534";
> public static void main(String[] args){
> System.out.println("flkds");
>
> TaskRepository repository = new
> TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, URL);
> AuthenticationCredentials credentials = new
> AuthenticationCredentials("xyz", "xyz");
> repository.setCredentials(AuthenticationType.REPOSITORY, credentials,
> false);
> BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector();
> try {
> // get a report from repository
> TaskData taskData = connector.getTaskData(repository, BUG_ID, null);
>
> // access task information
> ITaskMapping taskMapping = connector.getTaskMapping(taskData);
> System.out.println("Summary: " + taskMapping.getSummary());
> System.out.println("Priority: " + taskMapping.getPriority());
> System.out.println("status " + taskMapping.getStatus());
>
> TaskAttribute descriptionAttribute =
> taskData.getRoot().getMappedAttribute(TaskAttribute.COMPONEN T);
> System.out.println("Component: " + descriptionAttribute.getValue());
>
> // ...or by Bugzilla keys
> TaskAttribute severityAttribute =
> taskData.getRoot().getAttribute(BugzillaAttribute.BUG_SEVERI TY.getKey());
> System.out.println("Severity: " + severityAttribute.getValue());
> // Post modified report to repository
> System.out.print("\nPosting a new comment... ");
> TaskAttribute newCommentAttribute =
> taskData.getRoot().getMappedAttribute(TaskAttribute.COMMENT_ NEW);
> newCommentAttribute.setValue("Hello world.");
>
> connector.getTaskDataHandler().postTaskData(repository, taskData, null,
> null);
> System.out.println("done");
> }
> catch (Exception e) {
> e.printStackTrace();
> } finally {
> CommonsNetPlugin.getExecutorService().shutdown();
> }
>
> }
>
> }
>
>
> Output of the code is
> Summary: test
> Priority: P2
> status NEW
> Component: tasks
> Severity: normal
>
> Posting a new comment... org.eclipse.core.runtime.CoreException: Mid-air
> collision occurred while submitting to http://bugzilla-link/
> Synchronize task and re-submit changes.
> at
> org.eclipse.mylyn.internal.bugzilla.core.BugzillaClient.pars eHtmlError(BugzillaClient.java:1221)
>
> 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)
>
> at test.main(test.java:47)
>
>
> can any one help me
> thanks in advance
Re: Unable to update Bugzilla [message #896839 is a reply to message #61983] Fri, 20 July 2012 05:41 Go to previous message
martin mariska is currently offline martin mariskaFriend
Messages: 1
Registered: July 2012
Junior Member
Hello, i have the same problem. I am using bugzilla "Virtual Bugzilla Server 3.4 brought to you by ALM Works | 2009-12-13"

Thx
Previous Topic:Unable to update Bugzilla
Next Topic:Adding content assist to text fields
Goto Forum:
  


Current Time: Thu Mar 28 08:24:08 GMT 2024

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

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

Back to the top