WSO2 ESB - 将IDOC发送到SAP

时间:2017-07-08 23:43:51

标签: wso2 wso2esb

将IDOC发送到SAP时遇到以下错误。 传输配置很好(甚至向SAP的BAPI消息也是成功的)

  

ERROR {org.wso2.carbon.transports.sap.SAPTransportSender} - 错误   在向EPR发送IDoc时:idoc:/ sapdelts   {} org.wso2.carbon.transports.sap.SAPTransportSender   java.lang.NullPointerException at   org.wso2.carbon.transports.sap.idoc.DefaultIDocXMLMapper.closeStream(DefaultIDocXMLMapper.java:68)   在   org.wso2.carbon.transports.sap.idoc.DefaultIDocXMLMapper.getDocumentList(DefaultIDocXMLMapper.java:59)   在   org.wso2.carbon.transports.sap.SAPTransportSender.getIDocs(SAPTransportSender.java:163)   在   org.wso2.carbon.transports.sap.SAPTransportSender.sendMessage(SAPTransportSender.java:103)   在   org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)   在org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)at   org.apache.synapse.core.axis2.DynamicAxisOperation $ DynamicOperationClient.send(DynamicAxisOperation.java:185)   在   org.apache.synapse.core.axis2.DynamicAxisOperation $ DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)   在   org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)

启用以下错误处理程序时,接收以下错误消息以及先前的错误堆栈跟踪(上图)

<parameter name="transport.sap.enableTIDHandler">enabled</parameter>
<parameter name="transport.sap.enableErrorListener">enabled</parameter>

{org.apache.synapse.FaultHandler} - ERROR_CODE:8001 {org.apache.synapse.FaultHandler}

WARN {org.apache.synapse.FaultHandler} - ERROR_MESSAGE:null {org.apache.synapse.FaultHandler}

WARN {org.apache.synapse.FaultHandler} - ERROR_DETAIL:null {org.apache.synapse.FaultHandler}

WARN {org.apache.synapse.FaultHandler} - ERROR_EXCEPTION:null {org.apache.synapse.FaultHandler}

WARN {org.apache.synapse.FaultHandler} - FaultHandler:端点[sapidocendpoint] {org.apache.synapse.FaultHandler}

1 个答案:

答案 0 :(得分:0)

发送IDOC时,我遇到了SAP传输的几个问题。您使用的是哪个版本的ESB?您能否发布您的配置或发送到SAP传输的IDOC。