I am strugling to start using the java api. I am new to maven as well so this is what I have done so far. I have created a new project using this POM file:

However, when I am trying to run the application:

public static void main(String[] args) throws URISyntaxException {

final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();

final URI jiraServerUri = new URI("myserver");

final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, "myuser", "mypasswd");

try {

final Issue issue = restClient.getIssueClient().getIssue("TST-7").claim();



finally {

// cleanup the restClient



I am getting this error messages:

SLF4J: The requested version 1.5.8 by your slf4j binding is not compatible with [1.6]

SLF4J: See for further details.

Exception in thread "Main Thread" java.lang.NoSuchMethodError: com/google/common/collect/ImmutableList.copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

I don't know were exactly to start since the documentation for this API is very limited. Any help I would really appreciate. I am using JIRA on Demand.

1 answer

For sure some dependencies are doing a transitive import of the slf4j dependency, and you get the oldest one, hence the error.

you need to run:

mvn dependency:tree

check who is importing slf4j (and what versions) and exclude the old ones


That would be inside my project right? How can I exclude the old ones?

Also, there is the followinf line

Exception in thread "Main Thread" java.lang.NoSuchMethodError: com/google/common/collect/ImmutableList.copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList

Do you think is because again is using an old library???

Maven doesn't take care of this???

Ahh, I didn't see that one. There should be another incompatibility on google.commons.collections I suppose.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,338 views 14 20
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
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