Hi all,
Can anyone please help me figure out what is causing this error.
===========================
Error: import: failed to load the library (line 1 position 1 in /sap/sop/sopfnd/services/admin/patchinfo.xsjs)
[12412]{12412}[-1/-1] 2015-06-03 11:17:14.359021 e xsa:sap.sop SandBox.cpp(01454) : Found the following errors:
===========================
TypeError: $.sap is undefined (line 4 position 1 in /sap/sop/sopfnd/services/admin/patchinfo.xsjs)
[21949]{21949}[-1/-1] 2015-06-03 11:17:24.754510 e xsa:sap.sop SandBox.cpp(01454) : Found the following errors:
===========================
TypeError: $.sap is undefined (line 4 position 1 in /sap/sop/sopfnd/services/admin/patchinfo.xsjs)
[12022]{12022}[-1/-1] 2015-06-03 11:17:50.579720 e xsa:sap.sop SandBox.cpp(01454) : Found the following errors:
===========================
TypeError: $.sap is undefined (line 4 position 1 in /sap/sop/sopfnd/services/admin/patchinfo.xsjs)
[15945]{15945}[-1/-1] 2015-06-03 11:20:35.794198 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00106) : userpreference executing query =select PREF_VALUE as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPUM_USER_PREF" where USER_ID = ? and PREF_NAME = ?
[15945]{15945}[-1/-1] 2015-06-03 11:20:35.795765 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00089) : userpreference executing query =select PARAMVAL as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPDM_GLOBALCONFIG" where PARAM = ?
[15941]{15941}[-1/-1] 2015-06-03 11:21:06.356773 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00106) : userpreference executing query =select PREF_VALUE as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPUM_USER_PREF" where USER_ID = ? and PREF_NAME = ?
[15941]{15941}[-1/-1] 2015-06-03 11:21:06.358240 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00089) : userpreference executing query =select PARAMVAL as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPDM_GLOBALCONFIG" where PARAM = ?
[32964]{32964}[-1/-1] 2015-06-03 11:21:50.073692 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00106) : userpreference executing query =select PREF_VALUE as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPUM_USER_PREF" where USER_ID = ? and PREF_NAME = ?
[32964]{32964}[-1/-1] 2015-06-03 11:21:50.075485 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00089) : userpreference executing query =select PARAMVAL as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPDM_GLOBALCONFIG" where PARAM = ?
[12410]{12410}[-1/-1] 2015-06-03 11:23:24.880521 e xsa:sap.sop sap.sop.sopfnd.services.usermanagement:needsPasswordReset.xsjs(00006) : : Inside needsPasswordReset.xsjs--POST body is {"User":"SOPITADMIN"}
[12410]{12410}[-1/-1] 2015-06-03 11:23:24.880607 e xsa:sap.sop sap.sop.sopfnd.services.usermanagement:needsPasswordReset.xsjs(00015) : : Inside needsPasswordReset.xsjs:
[12410]{12410}[-1/-1] 2015-06-03 11:23:24.881340 e xsa:sap.sop sap.sop.sopfnd.services.usermanagement:needsPasswordReset.xsjs(00019) : user password resetSOPITADMIN
[12410]{12410}[-1/-1] 2015-06-03 11:23:24.891689 e xsa:sap.sop sap.sop.sopfnd.services.usermanagement:needsPasswordReset.xsjs(00027) : passwordResetFlag : false
[12621]{12621}[-1/-1] 2015-06-03 11:23:33.301328 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00106) : userpreference executing query =select PREF_VALUE as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPUM_USER_PREF" where USER_ID = ? and PREF_NAME = ?
[12621]{12621}[-1/-1] 2015-06-03 11:23:33.302889 e xsa:sap.sop sap.sop.services:userpreference.xsjs(00089) : userpreference executing query =select PARAMVAL as PLAN_AREA from SAP_SFND. "sap.sop.sopfnd.catalogue::SOPDM_GLOBALCONFIG" where PARAM = ?
[15941]{15941}[-1/-1] 2015-06-03 11:24:50.767708 e xsa:sap.sop SandBox.cpp(01454) : Found the following errors:
===========================
Error: import: failed to load the library (line 1 position 1 in /sap/sop/sopfnd/services/admin/patchinfo.xsjs)
[12409]{12409}[-1/-1] 2015-06-03 11:25:18.839425 e REPOSITORY packageStoreAccessor.cpp(00215) : Repository: Package not found; "": the package does not exist
[32956]{32956}[-1/-1] 2015-06-03 11:25:18.878836 e REPOSITORY packageStoreAccessor.cpp(00215) : Repository: Package not found; "": the package does not exist
[12408]{12408}[-1/-1] 2015-06-03 11:26:20.657782 e xsa:sap.sop sap.sop.sopfnd.services.analytics:sopa.xsjs(02132) : POST body is {"reportviewid":"550928E1B1ACB4C3E10000000AAD00CA","ACTION":"getReportViewFilters"}
[32969]{32969}[-1/-1] 2015-06-03 11:26:20.730205 e xsa:sap.sop sap.sop.sopfnd.services.analytics:sopa.xsjs(02132) : POST body is {"reportviewid":"55317BD54D2275C5E10000000AAD00CA","ACTION":"getReportViewFilters"}
My piece of code that I am trying to execute is
$.import("sap.hana.xs.ide.editor.server.repo", "utilsLib");
$.import("sap.hana.xs.ide.editor.server.repo", "objectLib");
$.import("sap.hana.xs.ide.editor.server.repo", "packageLib");
var utilsLib = $.sap.hana.xs.ide.editor.server.repo.utilsLib;
var objectLib = $.sap.hana.xs.ide.editor.server.repo.objectLib;
var packageLib = $.sap.hana.xs.ide.editor.server.repo.packageLib;
//Process Inbound HTTP Request
switch ($.request.method) {
//HTTP Get
case $.net.http.GET:
processGETRequest();
break;
case $.net.http.POST:
processPOSTRequest();
break;
default:
$.response.contentType = "text/plain";
$.response.setBody(JSON.stringify([{
status: $.net.http.BAD_REQUEST,
text: "Request Method not Supported!"
}]));
$.response.status = $.net.http.OK;
break;
}
and then I have all the GET/POST method declarations at the bottom.
Any help would be much appreaciated.
Regards
Uday