我在Eclipse中使用JCo连接器访问多个JCo,但我的java代码无法访问有错误"(102) JCO_ERROR_COMMUNICATION:连接到SAP网关失败“的SAP,但我通过添加您想要访问的服务器的ip来解决这个问题,mac x的文件主机。问题是当您访问这个web服务时,返回错误的(102)JCO_ERROR_COMMUNICATION,而我无法访问SAP。
JCo异常:
com.sap.conn.jco.JCoException:
(102) JCO_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connection parameters: TYPE=A DEST=ABAP_AS ASHOST=192.168.90.5 SYSNR=04 SAPROUTER=/H/192.220.35.89/S/3299 PCS=1
LOCATION CPIC (TCP/IP) on local host
ERROR hostname 'servermac.private' unknown
TIME Mon Jul 4 13:18:36 2011
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -2
MODULE nixxhl.cpp
LINE 183
DETAIL NiHLGetNodeAddr: hostname cached as unknown
COUNTER 4 hereWeb服务错误:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.reflect.InvocationTargetException</faultstring>
<detail>
<ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">servermac.private</ns1:hostname>
</detail>
</soapenv:Fault>发布于 2011-07-08 16:19:38
当我编辑带有服务器ip连接的主机文件时,可以有效地与JCo连接,但是错误在于WSDL上的错误不是具体的,而是我的Web服务已经导出到WAR中,并在另一个服务器上使用它,因为库找不到的libstijco3.jnilib,因此给了我主机无法连接的错误。
然后,在这个项目的Properties->DeploymentAssembly部分中,在lib部分中添加了stijco3.jar并从外部添加到项目中,库libstijco3.jnilib运行良好。
https://stackoverflow.com/questions/6576661
复制相似问题