Madhan Neethiraj created ATLAS-2292:
---------------------------------------

             Summary: Use of org.codehaus.jettison.json objects causes 
serialization failure REST responses
                 Key: ATLAS-2292
                 URL: https://issues.apache.org/jira/browse/ATLAS-2292
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 1.0.0
            Reporter: Madhan Neethiraj
            Assignee: Madhan Neethiraj
            Priority: Critical


Jackson library used to handle serialization/de-serialization in Atlas REST 
APIs was upgraded from 1.9.13 to 2.9.2 in ATLAS-2265. After this upgrade, use 
of org.codehaus.jettison.json package class objects (JSONObject, JSONArray) 
fail to serialize with the following error:

{noformat}
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer 
found for class org.codehaus.jettison.json.JSONObject and no properties 
discovered to create BeanSerializer (to avoid exception, disable 
SerializationFeature.FAIL_ON_EMPTY_BEANS)
    at 
com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
{noformat}

To avoid such failures, use of JSONObject, JSONArray classes (from 
org.codehaus.jettison.json package) should be replaced with equivalent classes 
JsonNode, ArrayNode (from com.fasterxml.jackson.databind package)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to