我按照教程进行操作: https ://open.sap.com/courses/s4h13/items/258qEhXx5kdG8b4SXMSJYp 我能够从模拟服务中获取数据,但是当我在目的地添加本地 sap 系统时得到一个空数组。我正在尝试阅读 ProductMaster 服务(在我的 sap 系统中可用)。任何正确博客的指导或链接将不胜感激。
应用程序日志:-
2019-01-31T09:49:30.98+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:30.980Z","written_ts":3583833066597470,"component_id":" ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":"","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577","organization_name":"- ","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-","correlation_id":"-", "CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6","应用程序":"address-manager","container_id":"10.0.137.101","type":"log","logger":"com.sap.xs2.security.container.UserInfoTomcat","thread":"http-bio-0.0.0.0-8080- exec-1","level":"INFO","categories":[],"msg":"解析 SAP_JWT_TRUST_ACL (value: [{\"clientid\" : \" \", \"identityzone\" : \ "\"}])" } 2019-01-31T09:49:30.98+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:30.980Z","written_ts": 3583833067255806,"component_id":"ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":"","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577" ,"organization_name":"-","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-"," correlation_id":"-","CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6","Application":"address-manager","container_id":"10.0.137.101","type":"log","logger":"com.sap.xs2.security.container.UserInfoTomcat","thread":"http-bio-0.0.0.0-8080 -exec-1","level":"INFO","categories":[],"msg":"服务计划的访问令牌\"application\"收到"} 2019-01-31T09:49:30.98+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:30.980Z","written_ts":3583833067335285,"component_id":"ae30fb63-3ddc-42e4-95c9-c190e7c5950e", "component_name":"address-manager","DCComponent":"","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577","organization_name":"-","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-","correlation_id":"-","CSNComponent":"","space_id": "71c96992-bd88-41e6-ac83-bdcc94e38fc6","应用程序":"address-manager","container_id":"10.0.137.101","type":"log","logger":"com.sap.xs2 .security.commons.SAPVcapServicesParser","thread":"http-bio-0.0.0.0-8080-exec-1","level":"INFO","categories":[],"msg":"VCAP_SERVICES:仅存在一个适用的绑定,服务计划提示“应用程序”未使用”} 2019-01-31T09:49:30.98+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:30.980Z","written_ts":3583833067403879,"component_id":"ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":" ","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577","organization_name":"-","component_type":"application","space_name":"dev","SERVER":"main", "component_instance":"0","organization_id":"-","correlation_id":"-","CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6","应用" :"address-manager","container_id":"10.0.137.101","type":"log","logger":"com.sap.xs2.security.commons.SAPPropertyPlaceholderConfigurer","thread":"http-bio-0.0.0.0-8080-exec-1","level":"INFO","categories":[], "msg":"从 VCAP_SERVICES 获取:clientid=sb-address-manager-p1942271708trial!t9649" }
2019-01-31T09:49:37.03+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:37.030Z","written_ts":3583839116771998,"component_id":" ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":"","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577","organization_name":"- ","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-","correlation_id":"-", "CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6","应用程序":"address-manager","container_id":"10.0.137.101","type":"log","logger":"com.sap.xs2.security.container.UserInfoTomcat","thread":"http-bio-0.0.0.0-8080- exec-3","level":"INFO","categories":[],"msg":"解析 SAP_JWT_TRUST_ACL (value: [{\"clientid\" : \" \", \"identityzone\" : \ "-","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-","correlation_id":"-" ,"CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6","Application":"address-manager","container_id":"10.0.137.101","type":"log ","logger":"com.sap.xs.security.container.XSSecurityAuthenticator","thread":"http-bio-0.0.0.0-8080-exec-10","level":"WARN","categories ":[],"msg":"AuditLog 服务绑定不可用。消息将写入控制台输出。","stacktrace":[" com.sap.xs.audit.api.exception.AuditLogNotAvailableException:无法将审核日志消息发送到后端。缺少审计日志服务凭据参数或绑定到审计日志服务实例。","\tat com.sap.xs.audit.client.impl.ConsoleCommunicator.send(ConsoleCommunicator.java:10)","\tat com.sap。 xs.audit.client.impl.AuditLogMessageImpl.log(AuditLogMessageImpl.java:85)","\tat com.sap.xs.security.container.XSSecurityAuthenticator.logSecurityEventAuditMessage(XSSecurityAuthenticator.java:112)","\tat com. sap.xs.security.container.XSSecurityAuthenticator.logSuccessfulLogonAuditMessage(XSSecurityAuthenticator.java:97)","\tat com.sap.xs.security.container.XSSecurityAuthenticator.authenticate(XSSecurityAuthenticator.java:45)","\tat org. apache.catalina.authenticator.AuthenticatorBase。main","component_instance":"0","organization_id":"-","correlation_id":"-","CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6", "应用程序":"address-manager","container_id":"10.0.137.101","type":"log","logger":"com.sap.cloud.sdk.s4hana.connectivity.ErpConfigContext","thread ":"http-bio-0.0.0.0-8080-exec-10","level":"INFO","categories":[],"msg":"回退到语言环境 \"en_US\"。要指定语言环境,请在目标“ErpQueryEndpoint”上设置属性或提供语言环境作为显式参数。(日志条目结束)”} 2019-01-31T09:49:41。101","type":"log","logger":"com.sap.cloud.sdk.s4hana.connectivity.ErpConfigContext","thread":"hystrix-com.sap.cloud.s4hana.examples.addressmgr. commands.GetAllProductsCommand#t=#u=-6","level":"INFO","categories":[],"msg":"回退到语言环境 \"en_US\"。要指定语言环境,请在目标“ErpQueryEndpoint”上设置属性或提供语言环境作为显式参数。(日志条目结束)"} 2019-01-31T09:49:41.38+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:41.386Z","written_ts" :3583843472964643,"component_id":"ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":""," "msg":"成功连接到目标服务。" } 2019-01-31T09:49:41.64+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:41.639Z","written_ts":3583843726319402,"component_id": "ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":"","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577","organization_name":" -","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-","correlation_id":"-" ,"CSNComponent":"","space_id":"71c96992-bd88-41e6-ac83-bdcc94e38fc6" "level":"ERROR","categories":[],"msg":"成功连接到目标服务。" } 2019-01-31T09:49:41.75+0530 [APP/PROC/WEB/0] OUT { "written_at":"2019-01-31T04:19:41.751Z","written_ts":3583843838110377,"component_id": "ae30fb63-3ddc-42e4-95c9-c190e7c5950e","component_name":"address-manager","DCComponent":"","HOST":"0ca2bbc0-3f71-4dfd-5e4e-8577","organization_name":" -","component_type":"application","space_name":"dev","SERVER":"main","component_instance":"0","organization_id":"-","correlation_id":"-" ,"CSN 组件":"","https://approuter-p1942271708trial.cfapps.eu10.hana.ondemand.com/address-manager/ " "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36""-""10.0.137.101:61002"x_forwarded_for:"-"x_forwarded_proto:"https"vcap_request_id:"4b3e148c-ac4a-444f-5676-00f83c7fda10"response_time:0.963585441 app_id:"ae30fb653-de3d -c190e7c5950e" app_index:"0" x_correlationid:"c3b465c1-cdad-4fe4-7033-9c9b3d8b7971" x_b3_traceid:"ee848c54fc661573" x_b3_spanid:"ee848c54fc661573" x_b3_parentspanid:-"