cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Error

Former Member
0 Kudos

I am able to connect to R/3 Enterprise version using my JCO program with JCO version as 2.1.5. But I am facing a problem when I am trying to connect to R/3 4.6c. I get the following error:

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:1098)

at com.sap.mw.jco.JCO$Client.connect

But I am able to login into SAP GUI with the same userid and password.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi all

when using JCO for Suppressing unwanted SAP GUI screens from BAPI/RFC when calling them in background i am getting this message

com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Session 1: Special character for 'empty field' is /

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeExecute(Native Method)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.execute(MiddlewareRFC.java:871)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:2995)

at com.sap.mw.jco.JCO$Client.execute(JCO.java:2669)

at myJCoClient.myJCoClientCall(myJCoClient.java:95)

at myJCoServer$Server.handleRequest(myJCoServer.java:65)

at com.sap.mw.jco.JCO$Server.dispatchRequest(JCO.java:5409)

at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)

at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1010)

at com.sap.mw.jco.JCO$Server.listen(JCO.java:5205)

at com.sap.mw.jco.JCO$Server.run(JCO.java:5139)

at java.lang.Thread.run(Thread.java:595)

can anybody help...

Any sort of help will be appreciated....

Thanks and Regards

Berry

Former Member
0 Kudos

Hi!

I once had the same problem. For some reason it suddenly worked after I have specified user and password in upper case.

Regards, Tanja

Former Member
0 Kudos

Hi Vasundhara,

Welcome to SDN.

There are two main reasons for this,

1. You might not have passed the all parameters correctly.

Use myConnection = JCO.createClient( "client",

"username",

"password",

"language",

"serverIp",

"systemno");

2. Then the client might not be able to resolved the server name. Ensure the ip and host name are correct, for this use RFC_HOST_TO_IP and RFC_IP_TO_HOST to cross check the results.If they are same then the problem is due to network setting. Check them.

Read this thread for more information.

Hope this will solve your problem.

Please check this link to reward points to those helpful answers the way to thank at SDN https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm.

Thanks & Regards,

Kathirvel

former_member182372
Active Contributor
0 Kudos

Hello Vasundhara,

Check once more:

server name,

system number,

client,

username,

password.

May be the problem is that you are using groups in SAP GUI and phisicaly server is determined on runtime.

Best regards, Makism Rashchynski.