guestAT

Untitled

Sep 25th, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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");
  2. importClass(com.sc.cpgu.controller.LookupItemsList);
  3. importClass(org.json.JSONObject);
  4.  
  5. var items = new LookupItemsList();
  6.  
  7. var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
  8. if (error) {
  9.     var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
  10.     var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
  11.     println("Response end's with error cause: [" + code + "]:" + msg);
  12. } else {
  13.     var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
  14.     if (Array.isArray(source)) {
  15.         for (var index in source) {
  16.             var it = source[index];
  17.             items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
  18.                 {
  19.                     kladr: it['Kladr'],
  20.                     okato: it['Okato']
  21.                 }
  22.             )));
  23.         }
  24.     } else {
  25.         items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
  26.             {
  27.                 kladr: source['Kladr'],
  28.                 okato: source['Okato']
  29.             }
  30.         )));
  31.     }
  32. }
  33. items;
  34. #6)
  35. org.mozilla.javascript.EcmaError: TypeError: Cannot read property "s:Body" from undefined (importJS("baseUtils.js");
  36. importClass(com.sc.cpgu.controller.LookupItemsList);
  37. importClass(org.json.JSONObject);
  38.  
  39. var items = new LookupItemsList();
  40.  
  41. var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
  42. if (error) {
  43.     var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
  44.     var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
  45.     println("Response end's with error cause: [" + code + "]:" + msg);
  46. } else {
  47.     var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
  48.     if (Array.isArray(source)) {
  49.         for (var index in source) {
  50.             var it = source[index];
  51.             items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
  52.                 {
  53.                     kladr: it['Kladr'],
  54.                     okato: it['Okato']
  55.                 }
  56.             )));
  57.         }
  58.     } else {
  59.         items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
  60.             {
  61.                 kladr: source['Kladr'],
  62.                 okato: source['Okato']
  63.             }
  64.         )));
  65.     }
  66. }
  67. items;
  68. #6)
  69.         at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3951) ~[rhino-1.7.7.jar:1.7.7]
  70.         at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3929) ~[rhino-1.7.7.jar:1.7.7]
  71.         at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3962) ~[rhino-1.7.7.jar:1.7.7]
  72.         at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3981) ~[rhino-1.7.7.jar:1.7.7]
  73.         at org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3993) ~[rhino-1.7.7.jar:1.7.7]
  74.         at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1453) ~[rhino-1.7.7.jar:1.7.7]
  75.         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");
  76. importClass(com.sc.cpgu.controller.LookupItemsList);
  77. importClass(org.json.JSONObject);
  78.  
  79. var items = new LookupItemsList();
  80.  
  81. var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
  82. if (error) {
  83.     var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
  84.     var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
  85.     println("Response end's with error cause: [" + code + "]:" + msg);
  86. } else {
  87.     var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
  88.     if (Array.isArray(source)) {
  89.         for (var index in source) {
  90.             var it = source[index];
  91.             items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
  92.                 {
  93.                     kladr: it['Kladr'],
  94.                     okato: it['Okato']
  95.                 }
  96.             )));
  97.         }
  98.     } else {
  99.         items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
  100.             {
  101.                 kladr: source['Kladr'],
  102.                 okato: source['Okato']
  103.             }
  104.         )));
  105.     }
  106. }
  107. items;
  108. :6) ~[na:na]
  109.         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");
  110. importClass(com.sc.cpgu.controller.LookupItemsList);
  111. importClass(org.json.JSONObject);
  112.  
  113. var items = new LookupItemsList();
  114.  
  115. var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
  116. if (error) {
  117.     var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
  118.     var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
  119.     println("Response end's with error cause: [" + code + "]:" + msg);
  120. } else {
  121.     var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
  122.     if (Array.isArray(source)) {
  123.         for (var index in source) {
  124.             var it = source[index];
  125.             items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
  126.                 {
  127.                     kladr: it['Kladr'],
  128.                     okato: it['Okato']
  129.                 }
  130.             )));
  131.         }
  132.     } else {
  133.         items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
  134.             {
  135.                 kladr: source['Kladr'],
  136.                 okato: source['Okato']
  137.             }
  138.         )));
  139.     }
  140. }
  141. items;
  142. ) ~[na:na]
  143.         at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) ~[rhino-1.7.7.jar:1.7.7]
  144.         at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3282) ~[rhino-1.7.7.jar:1.7.7]
  145.         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");
  146. importClass(com.sc.cpgu.controller.LookupItemsList);
  147. importClass(org.json.JSONObject);
  148.  
  149. var items = new LookupItemsList();
  150.  
  151. var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
  152. if (error) {
  153.     var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
  154.     var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
  155.     println("Response end's with error cause: [" + code + "]:" + msg);
  156. } else {
  157.     var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
  158.     if (Array.isArray(source)) {
  159.         for (var index in source) {
  160.             var it = source[index];
  161.             items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
  162.                 {
  163.                     kladr: it['Kladr'],
  164.                     okato: it['Okato']
  165.                 }
  166.             )));
  167.         }
  168.     } else {
  169.         items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
  170.             {
  171.                 kladr: source['Kladr'],
  172.                 okato: source['Okato']
  173.             }
  174.         )));
  175.     }
  176. }
  177. items;
  178. ) ~[na:na]
  179.         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");
  180. importClass(com.sc.cpgu.controller.LookupItemsList);
  181. importClass(org.json.JSONObject);
  182.  
  183. var items = new LookupItemsList();
  184.  
  185. var error = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error'];
  186. if (error) {
  187.     var code = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorCode'];
  188.     var msg = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['Error']['ErrorMessage'];
  189.     println("Response end's with error cause: [" + code + "]:" + msg);
  190. } else {
  191.     var source = params[0]['s:Envelope']['s:Body']['GetMunicipalityResponse']['MessageData']['AppData']['MunicipalityList']['Municipality'];
  192.     if (Array.isArray(source)) {
  193.         for (var index in source) {
  194.             var it = source[index];
  195.             items.add(new LookupItemsList.LookupItem(it['Id'], it['Name'], new JSONObject(
  196.                 {
  197.                     kladr: it['Kladr'],
  198.                     okato: it['Okato']
  199.                 }
  200.             )));
  201.         }
  202.     } else {
  203.         items.add(new LookupItemsList.LookupItem(source['Id'], source['Name'], new JSONObject(
  204.             {
  205.                 kladr: source['Kladr'],
  206.                 okato: source['Okato'
Advertisement
Add Comment
Please, Sign In to add comment