on 11-03-2008 3:07 PM
Hi, when I run my application using JCO I have this error, can someone help me???THANKS
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server failed
Connect_PM MSHOST=10.150.2.122, R3NAME=10, GROUP=DEV
LOCATION CPIC (TCP/IP) on local host
ERROR service 'sapms10' unknown
TIME Mon Nov 03 16:12:18 2008
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -3
MODULE ninti.c
LINE 505
DETAIL NiPGetServByName2: service 'sapms10' not found
SYSTEM CALL getservbyname_r
COUNTER 1
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at principale.Mymain.main(Mymain.java:36)
I got a similar error, but I have the service defined in services file in my Windows server.
And there is connectivity, no firewall at all. What could be then?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
could you please post your complete connection settings
it looks like you are using the service 'sapms10' to connect, but your system does´t know how to resolve the service sapms10 to a tcp port number (on windows this is usally in the file WINDIR/system32/drivers/)
AFAIK sapms10 has tcp port number 3610, so try to replace sapms10 with 3610
regards franz
close thread if message is answerded
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrea,
This is a common exception when the jrfc.jar library is not present in your application path, it means, you must set phisycally the jrfc.jar library inside your enterprise container.
Other point is the anscence of some dll or so in your CLASSPATH.
sapjcorfc.dll
librfc32.dll
other than the jrfc.jar must be on path.
You can re-check your parameters, there's something wrong to with the SAP Service you're trying to reach in your function call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.