Hello, I'm trying to convert and application with JCO 1.0 to JCO 3.0. Now, I got an error when trying to connect with RFC.
Anyone can help me?
Exception in thread "pool-1-thread-1" java.lang.RuntimeException: Unable to create the server SERVER, because of Unable to get repository
at br.com.fitsistemas.monitor.v3.ProdutorEnvioSAPv3.run(ProdutorEnvioSAPv3.java:107)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Unable to get repository
at com.sap.conn.jco.rt.DefaultServer.update(DefaultServer.java:136)
at com.sap.conn.jco.rt.DefaultServer.<init>(DefaultServer.java:105)
at com.sap.conn.jco.rt.DefaultServerManager$DefaultServerFactory.createServer(DefaultServerManager.java:327)
at com.sap.conn.jco.rt.DefaultServerManager.getServer(DefaultServerManager.java:108)
at com.sap.conn.jco.rt.StandaloneServerFactory.getServerInstance(StandaloneServerFactory.java:170)
at com.sap.conn.jco.server.JCoServerFactory.getServer(JCoServerFactory.java:56)
at br.com.fitsistemas.monitor.v3.ProdutorEnvioSAPv3.run(ProdutorEnvioSAPv3.java:90)
... 3 more
Caused by: com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connection parameters: TYPE=A DEST=ENF_BR_2006 ASHOST=192.168.0.58 SYSNR=00 PCS=1
LOCATION CPIC (TCP/IP) on local host
ERROR hostname 'MacBook-Pro.local' unknown
TIME Thu May 14 09:34:59 2015
RELEASE 721
COMPONENT NI (network interface)
VERSION 40
RC -2
MODULE niuxi.c
LINE 1759
DETAIL NiPGetHostByName: 'MacBook-Pro.local' not found
SYSTEM CALL getaddrinfo
COUNTER 1