首页 > 解决方案 > 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/时,它可以完美运行。

我的问题:

  1. 为什么在所描述的情况下为 .dest 属性文件使用代理服务名称(“导出”)?
  2. 为什么它在路径上搜索 .dest 属性文件$WSO2_HOME/conf/sap/abc/services/sapBapi/services/而不是$WSO2_HOME/repository/conf/sap/

WSO2 版本:6.5.0

标签: wso2sapwso2esbjcosapjco3

解决方案


我不知道 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的属性文件

我希望这些信息能帮助您调整代码/配置以符合您的期望。


推荐阅读