We have the following error while trying to generate a Deployment Plan via CA Release Automation a.k.a. CARA jenkins plugin: "Error occured while generating the request for Running Deployment Plan Invalid JSON String net.sf.json.JSONException: Invalid JSON String"
The post build definition include
1: Generation of Manifest XML
2: Connecting CARA on SSL
3: Updating Deployment properties
CARA Version: 6.5, 6.6 or higher
CA Release Automation Deployment Plugin (for Jenkins): 6.5.0, 6.5.1
Jenkins Version: 2.1**.*
We during troubleshooting identified that this error occurs only on SSL. In detail investigation we identified that the connection between CARA Jenkins plugin and CARA is tunneled via load balancer (LB). As the generating of manifest will be resulting in XML generation we suspect some network policy at LB causing malformed JSON reaching to CARA.
In investigation we identified a network policy applied on SSL traffic which was rejecting all xml data/flows.
Workaround: To create deployment over HTTP
Resolution: The policy has been modified to allow XML data and now it works fine.