connecting JIRA using Mylyn [message #25629] |
Thu, 06 September 2007 05:57  |
Eclipse User |
|
|
|
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 19:52  |
Eclipse User |
|
|
|
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 19:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03187 seconds