Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » connecting JIRA using Mylyn
connecting JIRA using Mylyn [message #25629] Thu, 06 September 2007 09:57 Go to next message
Amgad Hanafy is currently offline Amgad HanafyFriend
Messages: 11
Registered: July 2009
Junior Member
I want to use mylyn classes to connect to jira
so i write this code
import java.net.Proxy;
import org.eclipse.mylyn.internal.jira.core.model.Project;
import org.eclipse.mylyn.internal.jira.core.service.JiraClientData;
import org.eclipse.mylyn.internal.jira.core.service.JiraException;
import org.eclipse.mylyn.internal.jira.core.service.soap.JiraRpcClient;


public class Jira {
	public static final String JIRA_URI = "http://123.456.789.3:8080";
	public static final String USER_NAME = "user";
	public static final String PASSWORD = "pass";

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {

			JiraRpcClient jiraRpcClient = new JiraRpcClient(JIRA_URI, false,
					USER_NAME, PASSWORD, Proxy.NO_PROXY, null, null);

			Project[] projects = jiraRpcClient.getProjects();
			for (Project project : projects) {
				System.out.println(project.getDescription());
			}
		} catch (Exception e) {
			e.printStackTrace();

		}
	}

}



but i got nothing

when i debug i got
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.

in variable projects

any one have an idea about that
Note: url & credentials are correct i tested it in mylyn repositories View
Re: connecting JIRA using Mylyn [message #26421 is a reply to message #25629] Thu, 06 September 2007 23:52 Go to previous message
Eclipse UserFriend
Originally posted by: beatmik.acm.org

Please post this question to the mylyn-integrators mailing list:

http://eclipse.org/mylyn/community/

Mik

Amgad Hanafy wrote:
> I want to use mylyn classes to connect to jira
> so i write this code
>
> import java.net.Proxy;
> import org.eclipse.mylyn.internal.jira.core.model.Project;
> import org.eclipse.mylyn.internal.jira.core.service.JiraClientData;
> import org.eclipse.mylyn.internal.jira.core.service.JiraException;
> import org.eclipse.mylyn.internal.jira.core.service.soap.JiraRpcClient;
> 
> 
> public class Jira {
> 	public static final String JIRA_URI = "http://123.456.789.3:8080";
> 	public static final String USER_NAME = "user";
> 	public static final String PASSWORD = "pass";
> 
> 	/**
> 	 * @param args
> 	 */
> 	public static void main(String[] args) {
> 		try {
> 
> 			JiraRpcClient jiraRpcClient = new JiraRpcClient(JIRA_URI, false,
> 					USER_NAME, PASSWORD, Proxy.NO_PROXY, null, null);
> 
> 			Project[] projects = jiraRpcClient.getProjects();
> 			for (Project project : projects) {
> 				System.out.println(project.getDescription());
> 			}
> 		} catch (Exception e) {
> 			e.printStackTrace();
> 
> 		}
> 	}
> 
> }
> 
> 

>
> but i got nothing
>
> when i debug i got
>
> org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.
> 

> in variable projects
>
> any one have an idea about that
> Note: url & credentials are correct i tested it in mylyn repositories View
Re: connecting JIRA using Mylyn [message #580124 is a reply to message #25629] Thu, 06 September 2007 23:52 Go to previous message
Mik Kersten is currently offline Mik KerstenFriend
Messages: 287
Registered: July 2009
Senior Member
Please post this question to the mylyn-integrators mailing list:

http://eclipse.org/mylyn/community/

Mik

Amgad Hanafy wrote:
> I want to use mylyn classes to connect to jira
> so i write this code
>
> import java.net.Proxy;
> import org.eclipse.mylyn.internal.jira.core.model.Project;
> import org.eclipse.mylyn.internal.jira.core.service.JiraClientData;
> import org.eclipse.mylyn.internal.jira.core.service.JiraException;
> import org.eclipse.mylyn.internal.jira.core.service.soap.JiraRpcClient;
> 
> 
> public class Jira {
> 	public static final String JIRA_URI = "http://123.456.789.3:8080";
> 	public static final String USER_NAME = "user";
> 	public static final String PASSWORD = "pass";
> 
> 	/**
> 	 * @param args
> 	 */
> 	public static void main(String[] args) {
> 		try {
> 
> 			JiraRpcClient jiraRpcClient = new JiraRpcClient(JIRA_URI, false,
> 					USER_NAME, PASSWORD, Proxy.NO_PROXY, null, null);
> 
> 			Project[] projects = jiraRpcClient.getProjects();
> 			for (Project project : projects) {
> 				System.out.println(project.getDescription());
> 			}
> 		} catch (Exception e) {
> 			e.printStackTrace();
> 
> 		}
> 	}
> 
> }
> 
> 

>
> but i got nothing
>
> when i debug i got
>
> org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.
> 

> in variable projects
>
> any one have an idea about that
> Note: url & credentials are correct i tested it in mylyn repositories View
Previous Topic:"make less interesting" replaced by "remove from context"... reason?
Next Topic:Custom Widgets
Goto Forum:
  


Current Time: Fri Apr 19 00:30:04 GMT 2024

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

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

Back to the top