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

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
Published yesterday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

24 views 0 2
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