I'm using the Crystal Reports 12.1 Java SDK. I receive this exception when a report initially loads and each time I page through the report:
com.businessobjects.report.web.json.JSONException: JSONObject["ancestors"] is not a JSONArray.
at com.businessobjects.report.web.json.JSONObject.getJSONArray(JSONObject.java:456)
at com.businessobjects.report.web.shared.JSONParameter.getDiscreteValueFromJSON(JSONParameter.java:708)
at com.businessobjects.report.web.shared.JSONParameter.getValueFromJSON(JSONParameter.java:635)
at com.businessobjects.report.web.shared.JSONParameter.jsonToFieldValues(JSONParameter.java:592)
at com.businessobjects.report.web.shared.JSONParameter.getValues(JSONParameter.java:455)
at com.businessobjects.report.web.shared.JSONParameter.toParameterField(JSONParameter.java:919)
I'm wondering if it is because I am handling the report parameter screen myself rather than having the viewer prompt the user to enter parameters. The user fills out a custom parameter screen and the parameters are sent back to the server and injected into the viewer using the setParameterFields() method. The report runs fine, I'm just concerned about these exceptions that are being thrown. I don't see the exceptions when running a report that does not require parameters.
If anybody has seen this before please let me know. Thanks.