Hi,
I'm having a simple JiraRestJavaClient with the very latest versions of jars just to establish a connection to Jira server 7.8 and creating issues in Jira.I have followed the link : https://ecosystem.atlassian.net/wiki/spaces/JRJC/pages/50593810/Migrating+from+JRJC+1.x+to+2.x for this development. But unfortunately I'm having an error as follows :
"Exception in thread "main" java.lang.NoSuchMethodError: com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.<init>(Lcom/atlassian/event/api/EventPublisher;Lcom/atlassian/sal/api/ApplicationProperties;Lcom/atlassian/sal/api/executor/ThreadLocalContextManager;)V
at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:48)
at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35)
at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.createWithBasicHttpAuthentication(AsynchronousJiraRestClientFactory.java:42)
at com.mypackage.JRC.main(JRC.java:32)"..
The line 32 of my JRC.Java is as follows: "final JiraRestClient restClient = new AsynchronousJiraRestClientFactory().createWithBasicHttpAuthentication(jiraServerUri, "username@gmail.com", "Password");". My libraries are in the attached snaps.Any help will be highly appreciated as I'm stuck with this connection issue for a prolonged period.
-Thanks and Warm Regards,
Sharmistha(mailto : sharmisthaatcloud9@gmail.com)