系统环境 VistaJDK1.5ECC6+sapjco3
调用sapjco3 官方实例 StepByStepServer.java 文件中的step2SimpleServer()出错 ,但是同样的代码在有些人的机器上却运行正常
Server state changed from STOPPED to STARTED on server with program id NETBANK
com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 09 10:25:15 CST 2009.
This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems.
Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=NETBANK GWHOST=192.168.100.12 GWSERV=sapgw00
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR service '?' unknown
TIME Thu Apr 09 10:25:15 2009
RELEASE 711
COMPONENT NI (network interface)
VERSION 39
RC -3
DETAIL NiErrSet
COUNTER 4
>>> Error occured on NETBANK connection null
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1025)
at com.sap.conn.jco.rt.DefaultServer.adjustConnectionCount(DefaultServer.java:909)
at com.sap.conn.jco.rt.DefaultServer.addListener(DefaultServer.java:257)
at com.sap.conn.jco.rt.DefaultServer.start(DefaultServer.java:609)
at com.sap.conn.jco.rt.DefaultServer.start(DefaultServer.java:596)
at org.utmost.jco.inter.impl.StepByStepServer.step2SimpleServer(StepByStepServer.java:181)
at org.utmost.jco.inter.impl.StepByStepServer.main(StepByStepServer.java:292)
Caused by: com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=NETBANK GWHOST=192.168.100.12 GWSERV=sapgw00
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR service '?' unknown
TIME Thu Apr 09 10:25:15 2009
RELEASE 711
COMPONENT NI (network interface)
VERSION 39
RC -3
DETAIL NiErrSet
COUNTER 4
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2023)
at com.sap.conn.jco.rt.ServerConnection.accept(ServerConnection.java:378)
at com.sap.conn.jco.rt.DefaultServer.openConnection(DefaultServer.java:1006)
... 6 more
Caused by:
RfcException: [null]
message: Connect to SAP gateway failed
Connect parameters: TPNAME=NETBANK GWHOST=192.168.100.12 GWSERV=sapgw00
LOCATION CPIC (TCP/IP) on local host with Unicode
ERROR service '?' unknown
TIME Thu Apr 09 10:25:15 2009
RELEASE 711
COMPONENT NI (network interface)
VERSION 39
RC -3
DETAIL NiErrSet
COUNTER 4
Return code: RFC_FAILURE(1)
error group: 102
key: RFC_ERROR_COMMUNICATIONServer state changed from STARTED to DEAD on server with program id NETBANK
at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcaccept(RfcIoControl.java:43)
at com.sap.conn.rfc.api.RfcApi.RfcAccept(RfcApi.java:38)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.accept(MiddlewareJavaRfc.java:2009)
... 8 more
The program can be stoped using <ctrl>+<c>
com.sap.conn.jco.JCoException: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Thu Apr 09 10:25:17 CST 2009.
This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 1 seconds.
Could not start server: Connect to SAP gateway failed
Connect parameters: TPNAME=NETBANK GWHOST=192.168.100.12 GWSERV=sapgw00
ERROR service 'sapgw00' unknown