Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What are the exact dependencies for developing a JiraRestJavaClient version4.0 ?

Sharmistha Sanyal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 8, 2018

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)

 


Jar_Part_1.PNGJar_Part_2.PNG

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events