XRP2:WARN:RestDataSource:isc_TestDS_0:DataSource specifies jsonPrefix, but not present in response returned from server. Processing response anyway. SC_Core.js:1223
Announcement
Collapse
No announcement yet.
X
-
Before explicitly setting setJsonPrefix , setJsonSuffix , I checked the JsonSuffix and JsonPrefix , those are default value
isc_AppStartupDS_0.jsonPrefix
06:52:53.172 "<SCRIPT>//'"]]>>isc_JSONResponseStart>>"
06:53:04.576 isc_AppStartupDS_0.jsonSuffix
06:53:04.577 "//isc_JSONResponseEnd"
I specified the as follows in this method "protected void transformResponse(DSResponse response, DSRequest request, Object jsonData) "
this.setJsonPrefix("ABC"); this.setJsonSuffix("XYZ"); super.transformResponse(response, request, jsonData); Nothing change same error , what type of value do i need to set
Thanks for your support
Comment
-
Thanks for your reply
I change the Struts2 server Prefix and Suffix
<param name="wrapPrefix"><![CDATA[<SCRIPT>//'"]]]]><![CDATA[>>isc_JSONResponseStart>>]]></param>
<param name="wrapSuffix"><![CDATA[//isc_JSONResponseEnd ]]></param>
here is a sample JSON output <SCRIPT>//'"]]>>isc_JSONResponseStart>>{"access":"Y", "firstName":"Car","infoMessage":"Car"}//isc_JSONResponseEnd
Here is the error message
Last edited by samannil; 19 Apr 2018, 02:10.
Comment
-
Looks as if the response is probably malformed in some other way, but you've made basically no attempt to provide any information that would allow others to help you.
Let us know if you find any evidence of a framework issue, by providing a minimal, ready-to-run test case demonstrating the problem.
Comment
Comment