본문 바로가기
Tool/etc(TOOLs)

sapJCO error

by 하하IT 2020. 4. 24.

1. Env

OS : CentOS 6.3 64bit

 

JDK : java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.13) (rhel-1.65.1.11.13.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

 

 

SAP version : 2.1.6

SAP lib version : Version of the JCO-library: 2.1.10 (2011-05-10)

 

 

 

2. error message

getJCOFunction+Caught an exception:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM  GWHOST=xxx.xxx.xxx, GWSERV=sapgw01, SYSNR=01

LOCATION    CPIC (TCP/IP) on local host
ERROR       hostname 'nForge' unknown
TIME        Thu Oct 17 17:54:03 201
RELEASE     640
COMPONENT   NI (network interface)
VERSION     37
RC          -2
MODULE      niuxi_mt.c
LINE        388
DETAIL      NiPGetHostByName2: hostname 'nForge' not found
SYSTEM CALL gethostbyname_r
COUNTER     1

 

2-1. Sol

[root@nForge Desktop]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


127.0.0.1        nForge
[root@nForge Desktop]#

 

 

 

 

 

 

3. error message

Exception in thread "main" java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [/usr/lib64/libsapjcorfc.so: libstdc++.so.5: cannot open shared object file: No such file or directory]. java.library.path [/root/Desktop/sapJCO:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
    at com.sap.mw.jco.JCO.<clinit>(JCO.java:871)
    at common.SAPService.sap_conn(SAPService.java:96)
    at common.SAPService.<init>(SAPService.java:69)

 

3-1. Sol

RPM install

 

[root@devWAS Desktop]# yum search libstdc
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
              : subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
============================= N/S Matched: libstdc =============================
compat-libstdc++-296.i686 : Compatibility 2.96-RH standard C++ libraries
compat-libstdc++-33.i686 : Compatibility standard C++ libraries
compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries
libstdc++.i686 : GNU Standard C++ Library
libstdc++.x86_64 : GNU Standard C++ Library
libstdc++-devel.i686 : Header files and libraries for C++ development
libstdc++-devel.x86_64 : Header files and libraries for C++ development
libstdc++-docs.x86_64 : Documentation for the GNU standard C++ library

  Name and summary matches only, use "search all" for everything.
[root@devWAS Desktop]# yum install -y search compat-libstdc*

 

[root@devWAS Desktop]# yum install -y search libstdc*

 

'Tool > etc(TOOLs)' 카테고리의 다른 글

Ngin Proxy Manager / SSL Certificates / Renew Now  (0) 2024.03.12
Apache Directory Studio/ldap/export  (0) 2023.10.24
SSL / certbot-auto /  (0) 2021.03.08
opensource mindmap  (0) 2020.04.19
javascript Diagram  (0) 2020.04.19