AsynchronousHttpClientFactory throwing Maven exception

17:36:51.989 [main] DEBUG com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory$MavenUtils - Could not find version for maven artifact com.atlassian.jira:jira-rest-java-com.atlassian.jira.rest.client
17:36:51.995 [main] DEBUG com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory$MavenUtils - Got the following exception
java.lang.NullPointerException: null
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory$MavenUtils.getVersion(AsynchronousHttpClientFactory.java:185)

 

Code:

public JiraRestClient loadClient(String hst)

{

try

{

jiraServerUri = new URI(hst);

restClient = restClientFactory.createWithBasicHttpAuthentication(jiraServerUri, jiraUsername, jiraPassword);

}

catch (Exception e)

{

// TODO Auto-generated catch block

e.printStackTrace();

}

return restClient;

}

 

pom:

 

<dependency>

<groupId>com.atlassian.jira</groupId>

<artifactId>jira-rest-java-client-api</artifactId>

<version>4.0.0</version>

</dependency>

 


<dependency>

<groupId>com.atlassian.jira</groupId>

<artifactId>jira-rest-java-client-core</artifactId>

<version>4.0.0</version>

</dependency>

<dependency>

<groupId>com.atlassian.fugue</groupId>

<artifactId>fugue</artifactId>

<version>3.0.0-m007</version>

</dependency>

 

1 answer

This widget could not be displayed.
Sam Hall Community Champion Apr 03, 2017

Hi Feizal - since this is a development question, you might want to try asking over at https://community.developer.atlassian.com

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 9 hours ago in Featured Groups

Hi! I'm Cameron Deatsch, Head of Server at Atlassian and I'm hosting an AMA next week.

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. I'll be hosting an AMA over in our Questions section of the Community next Monday, so shoot me your questions, upvote others' question...

31 views 0 3
View post

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