2010 Apr 04 11:38 PM
Hi.
I use eclipse create the java project to test connect sap r3 4.71 ides.
the connect info is below.
Properties logonProperties = new Properties();
logonProperties.put("jco.client.ashost","*.*.*.**");
logonProperties.put("jco.client.client","000");
logonProperties.put("jco.client.sysnr","00");
logonProperties.put("jco.client.user","TEST3");
logonProperties.put("jco.client.passwd","welcome1");
JCO.Client myConnection = JCO.createClient( logonProperties );
myConnection.connect();
But I got the below error message.
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect. Please re-enter
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 jcousage.TestJCo.main(TestJCo.java:37)
which is the problem? how can I solve it?
In SAP GUI the information is work well with same information.
Thanks and Best regards.
Hi.
I use eclipse create the java project to test connect sap r3 4.71 ides.
the connect info is below.
Properties logonProperties = new Properties();
logonProperties.put("jco.client.ashost","*.*.*.**");
logonProperties.put("jco.client.client","000");
logonProperties.put("jco.client.sysnr","00");
logonProperties.put("jco.client.user","TEST3");
logonProperties.put("jco.client.passwd","welcome1");
JCO.Client myConnection = JCO.createClient( logonProperties );
myConnection.connect();
But I got the below error message.
Exception in thread "main" com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect. Please re-enter
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 jcousage.TestJCo.main(TestJCo.java:37)
which is the problem? how can I solve it?
In SAP GUI the information is work well with same information.
Thanks and Best regards.
2010 Apr 05 1:14 AM
Most likely your client is wrong. If you're using the IDES system, you're probably logging on to client 800, i.e. use:
logonProperties.put("jco.client.client","800");
When logging on via SAPgui simply check which client you're using...
Cheers, harald
p.s.: One other thought, should you really have logged on to client 000; try using uppercase on your password, i.e. use "WELCOME1" instead of "welcome1".
2010 Apr 05 3:30 AM
Thanks.
your suggestion very helpful.
I tested my env with client 000 is working well.
and the most important is librfc.dll file.
I download nearly 5kinds of librfc file. but only one works well.
even though thanks very much.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |