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 Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,130 views 6 19
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot