AsynchronousHttpClientFactory throwing Maven exception

Feizal Mirza April 3, 2017

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

1 vote
Sam Hall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 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
TAGS
AUG Leaders

Atlassian Community Events