1 Reply Latest reply on Sep 28, 2015 3:48 AM by objectiser

    Exception when serialization a Exception class to JSON

    horyna

      Hi,

       

      at rtgov activity logging i need to serializate an Exception object to JSON. But become exception below. Simulation of Exception is very easy: ActivityUtil.objectToJSONString(new Exception());

       

      What to do now?

      [org.overlord.rtgov.activity.processor.SerializeInformationTransformer] Failed to transformer information 'javax.xml.soap.SOAPException: This is an operation implementation generated fault' to JSON: org.codehaus.jackson.map.JsonMappingException: Class java.lang.StackTraceElement has no default constructor; can not instantiate default bean value to support 'properties=JsonSerialize.Inclusion.NON_DEFAULT' annotation (through reference chain: javax.xml.soap.SOAPException["stackTrace"])