Not able to create a JiraRestClient

I am trying to create a JiraRestClient using Basic authentication.

JiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();

URI jiraServerUri = getJiraUri();
JiraRestClient restClient = factory
.createWithBasicHttpAuthentication(jiraServerUri, USERNAME, PASSWORD);

 However, I am getting the below exception:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See for further details.
Exception in thread "main" java.lang.NoSuchMethodError: com.atlassian.fugue.Option.fold(Lcom/google/common/base/Supplier;Lcom/google/common/base/Function;)Ljava/lang/Object;
at com.atlassian.httpclient.apache.httpcomponents.proxy.ProxyConfigFactory.getProxyHost(
at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(
at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.<init>(
at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(
at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(
at com.jira.JiraClient.getJiraRestClient(
at com.jira.JiraClient.getIssue(
at com.jira.JiraClient.main(

Below is my Pom.xml:



3 answers

1 accepted

The version of fugue compatible with JRJC 4.0.0is 2.6.1

0 vote
Timothy Chin Community Champion Sep 24, 2017

The dependencies seem correct. Have you tried making sure that you do a maven clean and then repackage the code?

Yeah, I did that just now, no luck.

0 vote
Tarun Sapra Community Champion Sep 25, 2017

Try adding the binding jar file



Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

12,709 views 15 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you