on 04-25-2005 10:56 AM
Hello,
I try to setup my first Connection from a Java Programm to a Sap App. I have a firewall between me an the the Sap Server so I go over a gateway. My problem is that I do not know what the error message really means. Could someone give me a hint what is my mistake?
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=9.156.111.70, GWSERV=3218, ASHOST=sersap18.f.sercon.de, SYSNR=18
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 9.156.111.70, service 3218)
TIME Mon Apr 25 11:12:46 2005
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8605
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUNTER
The error is saying that server with ip address 9.156.111.70 doesn't have a port 3218. Can you post the code for your connection and also your connection parameter in your SAP logon pad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
here is my logon string: "/H/9.156.111.70/H/193.103.135.131/S/3299/H/"
The application server is: "sersap18.f.sercon.de"
The System Id is: S18
The System number is: 18
The application server can only be accessed throught the gateway 9.156.111.70.
I am trying to get a sample program of SAPJco to run. Here is the Connect Code:
try {
cdb = new ConnectDataBean();
mConnection = JCO.createClient("100",
"userid",
"password",
null, //no lang set
"sersap18.f.sercon.de",
"18",
"9.156.111.70", //GW address
"3218"); //GW service
mConnection.connect();
mRepository = new JCO.Repository("ARAsoft", mConnection);
}
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
Where can I find the right GW service number?
Greetings
Sven
Hello,
I have to add something. I have tried the program with a gateway service number of 3299. It shows a different error message:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=9.156.111.70, GWSERV=3299, ASHOST=sersap18.f.sercon.de, SYSNR=18
LOCATION CPIC (TCP/IP) on local host
ERROR connection to partner broken
TIME Tue Apr 26 09:38:32 2005
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -6
MODULE ninti.c
LINE 764
DETAIL NiPRead (9.156.111.70/3299, hdl 1)
SYSTEM CALL recv
COUNTER 3
I hope this is a good sign?
Greetings
Sven
Hello,
I have to add something again. I have found a site on the net where someone had a similar problem. He had to put the connect string + the ashost name "/H/9.156.111.70/H/193.103.135.131/S/3299/H/sersap18.f.sercon.de"
in the ashost parameter. I have done that and have come a step forward now the code looks like this:
try {
cdb = new ConnectDataBean();
mConnection = JCO.createClient("100",
"userid",
"password",
null, //no lang set
/H/9.156.111.70/H/193.103.135.131/S/3299/H/sersap18.f.sercon.de",
"18",
"9.156.111.70", //GW address
"3218"); //GW service
mConnection.connect();
mRepository = new JCO.Repository("ARAsoft", mConnection);
}
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}
But my problem is not solved. I still get an error message:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
Connect_PM GWHOST=9.156.111.70, GWSERV=3299, ASHOST=/H/9.156.111.70/H/193.103.135.131/S/3299/H/sersap18.f.sercon.de, SYSNR=18
LOCATION SapRouter on zyklop
ERROR service 'sapgw18' unknown
TIME Tue Apr 26 11:08:11 2005
RELEASE 620
COMPONENT NI (network interface)
VERSION 36
RC -91
MODULE niuxi.c
LINE 583
DETAIL NiPServToNo
SYSTEM CALL getservbyname
COUNTER 4540
Hi Sven,
i faced similar problems and played a little bit with the parameters. Try this syntax:
mConnection = JCO.createClient("100","userid","pw","DE",
"/H/SAPROUTER2.HCC.UNI-MAGDEBURG.DE/S/3299/H/A22Z","A22");
I also get an error message, but I think this is because the server is down in this moment.
LOCATION SapRouter on f00
ERROR partner not reached (host A22Z, service 3300)
TIME Fri Jun 17 20:59:43 2005
RELEASE 620
COMPONENT NI (network interface)
VERSION 36
RC -92
MODULE niuxi.c
LINE 1099
DETAIL NiPConnect2
SYSTEM CALL SO_ERROR
ERRNO 239
ERRNO TEXT Connection r
HTH
Markus
install a sap client , use the parameters in you codes to connect to the SAP server with the client, if it works , i think your programme will work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.