Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2019-09-25_12:55:44.832 [http-8080-5] ERROR com.sc.jsapi.RhinoContextImpl [000-000-000 00] - Something error occurred while evaluating reader: TypeError: Cannot read property "s:Body" from undefined (importJS("baseUtils.js");
- importClass(com.sc.cpgu.controller.LookupItemsList);
- importClass(org.json.JSONObject);
- var items = new LookupItemsList();
- var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
- if (error) {
- var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
- var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
- println("Response end's with error cause: [" + code + "]:" + msg);
- } else {
- var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
- if (Array.isArray(source)) {
- for (var index in source) {
- var it = source[index];
- items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
- {
- kladr: it['Kladr'],
- okato: it['Okato']
- }
- )));
- }
- } else {
- items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
- {
- kladr: source['Kladr'],
- okato: source['Okato']
- }
- )));
- }
- }
- items;
- #6)
- org.mozilla.javascript.EcmaError: TypeError: Cannot read property "s:Body" from undefined (importJS("baseUtils.js");
- importClass(com.sc.cpgu.controller.LookupItemsList);
- importClass(org.json.JSONObject);
- var items = new LookupItemsList();
- var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
- if (error) {
- var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
- var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
- println("Response end's with error cause: [" + code + "]:" + msg);
- } else {
- var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
- if (Array.isArray(source)) {
- for (var index in source) {
- var it = source[index];
- items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
- {
- kladr: it['Kladr'],
- okato: it['Okato']
- }
- )));
- }
- } else {
- items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
- {
- kladr: source['Kladr'],
- okato: source['Okato']
- }
- )));
- }
- }
- items;
- #6)
- at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3951) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3929) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3962) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3981) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3993) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1453) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.gen.importJS__baseUtils_js____importClass_com_sc_cpgu_controller_LookupItemsList___importClass_org_json_JSONObject____var_items___new_LookupItemsList_____var_error___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____if__error________var_code___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorCode________var_msg___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorMessage________println__Response_end_s_with_error_cause_______code__________msg_____else_______var_source___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____MunicipalityList____Municipality________if__Array_isArray_source_____________for__var_index_in_source________________var_it___source_index_______________items_add_new_LookupItemsList_LookupItem_it__Id____it__Name____new_JSONObject________________________________________kladr__it__Kladr________________________okato__it__Okato______________________________________________________else___________items_add_new_LookupItemsList_LookupItem_source__Id____source__Name____new_JSONObject________________________________kladr__source__Kladr____________________okato__source__Okato______________________________________items___44._c_script_0(importJS("baseUtils.js");
- importClass(com.sc.cpgu.controller.LookupItemsList);
- importClass(org.json.JSONObject);
- var items = new LookupItemsList();
- var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
- if (error) {
- var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
- var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
- println("Response end's with error cause: [" + code + "]:" + msg);
- } else {
- var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
- if (Array.isArray(source)) {
- for (var index in source) {
- var it = source[index];
- items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
- {
- kladr: it['Kladr'],
- okato: it['Okato']
- }
- )));
- }
- } else {
- items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
- {
- kladr: source['Kladr'],
- okato: source['Okato']
- }
- )));
- }
- }
- items;
- :6) ~[na:na]
- at org.mozilla.javascript.gen.importJS__baseUtils_js____importClass_com_sc_cpgu_controller_LookupItemsList___importClass_org_json_JSONObject____var_items___new_LookupItemsList_____var_error___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____if__error________var_code___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorCode________var_msg___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorMessage________println__Response_end_s_with_error_cause_______code__________msg_____else_______var_source___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____MunicipalityList____Municipality________if__Array_isArray_source_____________for__var_index_in_source________________var_it___source_index_______________items_add_new_LookupItemsList_LookupItem_it__Id____it__Name____new_JSONObject________________________________________kladr__it__Kladr________________________okato__it__Okato______________________________________________________else___________items_add_new_LookupItemsList_LookupItem_source__Id____source__Name____new_JSONObject________________________________kladr__source__Kladr____________________okato__source__Okato______________________________________items___44.call(importJS("baseUtils.js");
- importClass(com.sc.cpgu.controller.LookupItemsList);
- importClass(org.json.JSONObject);
- var items = new LookupItemsList();
- var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
- if (error) {
- var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
- var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
- println("Response end's with error cause: [" + code + "]:" + msg);
- } else {
- var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
- if (Array.isArray(source)) {
- for (var index in source) {
- var it = source[index];
- items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
- {
- kladr: it['Kladr'],
- okato: it['Okato']
- }
- )));
- }
- } else {
- items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
- {
- kladr: source['Kladr'],
- okato: source['Okato']
- }
- )));
- }
- }
- items;
- ) ~[na:na]
- at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282) ~[rhino-1.7.7.jar:1.7.7]
- at org.mozilla.javascript.gen.importJS__baseUtils_js____importClass_com_sc_cpgu_controller_LookupItemsList___importClass_org_json_JSONObject____var_items___new_LookupItemsList_____var_error___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____if__error________var_code___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorCode________var_msg___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorMessage________println__Response_end_s_with_error_cause_______code__________msg_____else_______var_source___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____MunicipalityList____Municipality________if__Array_isArray_source_____________for__var_index_in_source________________var_it___source_index_______________items_add_new_LookupItemsList_LookupItem_it__Id____it__Name____new_JSONObject________________________________________kladr__it__Kladr________________________okato__it__Okato______________________________________________________else___________items_add_new_LookupItemsList_LookupItem_source__Id____source__Name____new_JSONObject________________________________kladr__source__Kladr____________________okato__source__Okato______________________________________items___44.call(importJS("baseUtils.js");
- importClass(com.sc.cpgu.controller.LookupItemsList);
- importClass(org.json.JSONObject);
- var items = new LookupItemsList();
- var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
- if (error) {
- var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
- var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
- println("Response end's with error cause: [" + code + "]:" + msg);
- } else {
- var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
- if (Array.isArray(source)) {
- for (var index in source) {
- var it = source[index];
- items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
- {
- kladr: it['Kladr'],
- okato: it['Okato']
- }
- )));
- }
- } else {
- items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
- {
- kladr: source['Kladr'],
- okato: source['Okato']
- }
- )));
- }
- }
- items;
- ) ~[na:na]
- at org.mozilla.javascript.gen.importJS__baseUtils_js____importClass_com_sc_cpgu_controller_LookupItemsList___importClass_org_json_JSONObject____var_items___new_LookupItemsList_____var_error___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____if__error________var_code___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorCode________var_msg___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____Error____ErrorMessage________println__Response_end_s_with_error_cause_______code__________msg_____else_______var_source___params_0___s_Envelope____s_Body____GetMunicipalityResponse____MessageData____AppData____MunicipalityList____Municipality________if__Array_isArray_source_____________for__var_index_in_source________________var_it___source_index_______________items_add_new_LookupItemsList_LookupItem_it__Id____it__Name____new_JSONObject________________________________________kladr__it__Kladr________________________okato__it__Okato______________________________________________________else___________items_add_new_LookupItemsList_LookupItem_source__Id____source__Name____new_JSONObject________________________________kladr__source__Kladr____________________okato__source__Okato______________________________________items___44.exec(importJS("baseUtils.js");
- importClass(com.sc.cpgu.controller.LookupItemsList);
- importClass(org.json.JSONObject);
- var items = new LookupItemsList();
- var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
- if (error) {
- var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
- var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
- println("Response end's with error cause: [" + code + "]:" + msg);
- } else {
- var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
- if (Array.isArray(source)) {
- for (var index in source) {
- var it = source[index];
- items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
- {
- kladr: it['Kladr'],
- okato: it['Okato']
- }
- )));
- }
- } else {
- items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
- {
- kladr: source['Kladr'],
- okato: source['Okato'
Advertisement
Add Comment
Please, Sign In to add comment