Error using Jersey with Jira 7.1.6 and Java 1.8.0_131 Edited

We developed an add-on in Jira 7.1.6 which makes calls to an external web service and receives back an xml response. Then we use Jersey to deserialize the response like this:

GetServiceListResponse serviceListResponse = clientResponse.getEntity(GetServiceListResponse.class);

These are Jersey dependencies we have defined in the pom.xml:

<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.8-atlassian-11</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-json</artifactId>
<version>1.8-atlassian-11</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>1.8-atlassian-11</version>
<scope>provided</scope>
</dependency>

This worked fine until the Jira environment was upgraded to use the JDK version 1.8.0_131. I've verified that the add-on works fine in all environments which have a java version older than 1.8.0_131.

Now the add-on receives the response from the web service (I've been able to output the raw text), but when we try to run the code as above serviceListResponse is always null. I've verified that Jersey is not throwing any errors or warnings in the logs.

Does anyone know a solution to get Jersey working with this version of the jdk?

I know this version of the jdk has a lot of security updates. Does anyone know if this version of Jira or the Jersey framework that's bundled in it is compatible with this version of the JDK?

1 answer

1 accepted

This widget could not be displayed.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

88 views 1 0
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