Forums

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

JIRA plugin crashes when “org.apache.wink.json4j.JSONObject object” is instantiated

Anurag Kumar_Ext_
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!
October 7, 2020

import com.atlassian.plugins.rest.common.security.AnonymousAllowed;

import org.apache.wink.json4j.JSONObject;

import javax.ws.rs.*;

import javax.ws.rs.core.MediaType;

import javax.ws.rs.core.Response;

@Path("/message")

public class MyRestResource

{

    @get

   @AnonymousAllowed

   @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})

   public Response getMessage() {

        JSONObject response = new JSONObject();

        return Response.ok(new MyRestResourceModel("Hello")).build();

    }

}

 

When we are initiating the "JSONObject" defined in package "org.apache.wink.json4j.JSONObject" in our custom jira server plugin, plugin crashes and gives the below attached error.

 

jiraerror.PNG

Jira details are followings

<jira.version>7.13.0</jira.version>

<amps.version>8.0.2</amps.version>

 

 

0 answers

Suggest an answer

Log in or Sign up to answer