The most basic function getIssue suddenly started failing with the error message
RestClientException{statusCode=Optional.absent(), errorCollections=[]}
at around 9.30 this morning. I can curl the REST API directly no problem. I am using the basic auth with email and token as recommended, this has been working for ages.
Has something changed ? Anyone else experiencing this ?
It's a Jira cloud instance
I had the same problem - since the PR is still waiting to be merged (and we can't wait for that to happen) - I did:
- cloned the repo: 'git clone https://bitbucket.org/atlassian/jira-rest-java-client.git'
- had to clean some pom dependencies which were not available for some reason - and only kept api and core modules
- changed the file JsonParseUtil, line 192 to:
final String username = json.optString("name");
- build the jars (core and api)
- copied them to our project into src/main/resources (I had to reuse the .pom file from release 5.1.6 as they were not generated by maven for 5.1.7 for some reason)
- then followed: https://www.baeldung.com/install-local-jar-with-maven/
- finally built our project
Above at least worked for me ;o) But would be nice to get the official library release...
note - it's the core package which contains the breaking code - so might be sufficient to update the maven dependency for that package (after applying above file change)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you know which dependencies to delete?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Essentially the ones giving problems ;o)
1) I removed all the reporting plugins from all pom's
2) Then added:
<properties>
<java.version>1.8</java.version>
</properties>
to child pom's of api and core (we are on Java 8).
3) Finally added to the main pom:
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
Note:
api/src/main/java/com/atlassian/jira/rest/client/api/domain/EntityHelper.java
gave me some compilation problems - I did however just let Intellij resolve it - it was some unimplemented predicate methods.
Above might not be the right of doing it - but got me past the issues ;o)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I got it working , this thread was useful.
Specifically changing JsonParseUtil.java
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.