Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira 9.11.0 overrides plugins org.json version

John Fritz Piala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 5, 2023

Good day Atlassian community,

We are doing compatibility testing of our plug in 9.11.0 version. Then we encounter problems related to org.json version  20070829 as one of our plug in dependency. Upon further checking we have found out that 9.11.0 atlassian-bundled-plugins has new version of org.json version 20230227.
image.png

 This is the error we are getting in logs.

    | org.json.JSONException: JSONObject["fieldData"] is not a string (class org.json.JSONObject).
    Message: JSONObject["fieldData"] is not a string (class org.json.JSONObject).
     org.json.JSONObject.wrongValueFormatException(JSONObject.java:2698)
Error shown above is from newer version of org.json which we are not using in our pom.

This is our pom set up:
added compile to scope
image.png
Specified version in Import-Package
image.png

Also run mvn dependency:tree but sees no duplicate org.json in my pom configuration.
Using these changes above still has no success as during runtime my plug in still uses new org.json version.

Im not sure if this problem is related to this since we are using 8.22 version in our development:
https://jira.atlassian.com/browse/JRASERVER-70445

Any help and suggestions are appreciated.  Thanks a lot.

Note: Last resort solution for us is to update all codes related to org.json if version can't be overridden which is not the best case for us since we have a huge code base already.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.11.0
TAGS
AUG Leaders

Atlassian Community Events