wso2 - WSO2 SAP 端点属性文件 - 搜索错误的文件名和路径
问题描述
我有旨在“获取”序列的“导出”代理服务。该序列指向${server}/services/sapBapi
或“sapBapi”代理服务。“sapBapi”代理服务指向gov:endpoints/sapbapiendpoint.xml
端点,具体地址在哪里:bapi:/abc
$WSO2_HOME/repository/conf/sap
根据此处的官方文档,我在路径上有带有 SAP 端点参数的 abc.dest 和 abc.server 属性文件
当我想使用“导出”代理服务并发送数据时,我会在日志中找到:
DEBUG - Started sending message to uri=bapi:/abc/services/sapBapi/services/export {org.wso2.carbon.transports.sap.SAPTransportSender}
WARN - JCo configuration file for the destination : abc/services/sapBapi/services/export does not exist - Please specify the JCo configuration in $WSO2_HOME/conf/sap/abc/services/sapBapi/services/export.dest or abc/services/sapBapi/services/export.dest {org.wso2.carbon.transports.sap.CarbonDestinationDataProvider}
ERROR - Error while sending request to the EPRbapi:/abc/services/sapBapi/services/export {org.wso2.carbon.transports.sap.SAPTransportSender}
com.sap.conn.jco.JCoException: (106) JCO_ERROR_RESOURCE: Destination abc/services/sapBapi/services/export does not exist
当我将export.dest
文件放入 path$WSO2_HOME/repository/conf/sap/abc/services/sapBapi/services/
时,它可以完美运行。
我的问题:
- 为什么在所描述的情况下为 .dest 属性文件使用代理服务名称(“导出”)?
- 为什么它在路径上搜索 .dest 属性文件
$WSO2_HOME/conf/sap/abc/services/sapBapi/services/
而不是$WSO2_HOME/repository/conf/sap/
?
WSO2 版本:6.5.0
解决方案
我不知道 WSO2 Enterprise Integrator,但显然类的一个实例是在 JCo 运行时org.wso2.carbon.transports.sap.CarbonDestinationDataProvider
注册的。DestinationDataProvider
这是一个实例,JCoDestination
它根据从JCoDestinationManager
.
从您的示例错误消息中,此目标名称字符串似乎是“abc/services/sapBapi/services/export”,在这种情况下,org.wso2.carbon.transports.sap.CarbonDestinationDataProvider
正在搜索名称为abc/services/sapBapi/services/export.dest的属性文件
我希望这些信息能帮助您调整代码/配置以符合您的期望。
推荐阅读
- javascript - JavaScript中的函数,不知道它是如何工作的
- puppeteer - Puppeteer - webScraper
- javascript - 具有淡入效果的jquery toggleClass
- r - 将 data.table 列的子集传递给函数并在 R 中通过引用将结果添加回来
- prestashop - 我可以在 Prestashop 中使用 DigitalOcean Spaces CDN 作为 MediaServer 吗?
- linux - Dnsmasq 配置到单个 IP
- kotlin - 在 Kotlin 中,制作字符串的最佳方法是什么?+ String?` 如果任何输入为 `null`,则返回 `null`?
- flutter - 在您的路径中找不到 git,互联网或外部命令无法识别
- javascript - 单击时复制到剪贴板
- javascript - Firefox 上的 JavaScript 错误:TypeError:无法重新定义不可配置的属性“userAgent”