It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JRJC exception: java.lang.NoSuchMethodError: org.apache.http.util.Asserts.check(ZLjava/lang/String;L


Over the last few days, I have been trying to write a program to retrieve issue data from Jira using the Jira REST Java Client. One thing that has proved unexpectedly difficult is even getting to base one, a program that can connect to a Jira instance, as all the recommendations, that I have found, regarding which versions of the JRJC and fugue to use lead to assorted exceptions being thrown when trying to establish the connection.

The only JRJC version that worked for me was 2.0.0-m25 (for which there is no need to declare a dependency on fugue in my pom.xml).

This post suggested that fugue 4.7.2 was the appropriate version to use with JRJC 5.1.x and using this version fixed an earlier exception that I had run into (java.lang.NoClassDefFoundError: io/atlassian/fugue/Suppliers). However, now I am getting a new exception:

Exception in thread "httpclient-io:thread-1" java.lang.NoSuchMethodError: org.apache.http.util.Asserts.check(ZLjava/lang/String;Ljava/lang/Object;)V
        at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(
        at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(
        at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$
        at Source)
ERROR: java.lang.NoSuchMethodError: org.apache.http.util.Asserts.check(ZLjava/lang/String;Ljava/lang/Object;)V

Can anyone offer any suggestions?

Is there a compatibility matrix somewhere for JRJC and fugue?



1 answer

1 accepted

0 votes
Answer accepted

As is often the case, immediately after posting the above query, it occurred to me that some other dependency in my pom.xml might be bringing in an incompatible version of the Apache  libraries. It turns out that this was the case. Sorry for the noise.


Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you