Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-integrators] connecting JIRA using Mylyn

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

anyone have an idea about that
Note: url & credentials are correct I tested it in mylyn repositories View
 
Best Regards,
Amgad Hanafy,
Software Engineer,
Nounsware Limited Software Development.


Building a website is a piece of cake.
Yahoo! Small Business gives you all the tools to get online.

Back to the top