Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how can I solve sapjco error?

Former Member
0 Likes
547

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.

2 REPLIES 2
Read only

Former Member
0 Likes
492

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".

Read only

0 Likes
492

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.