Hello,
I have installed AS ABAP 7.52 SP04 Developer Edition and was trying to establish a connection to it from a standalone Java program using JCO.
The program I was running is the sample example (Connect.java) shipped with JCO 3.1:
java com.sap.conn.jco.examples.client.beginner.Connect
When I run this program, I get the error message:
**** Log file opened at 20221130 154906 Central Standard Time Rel. 3.1.6 (2022-05-18) [753.1018]
Error: [1] >Wed Nov 30 15:49:06,413< RfcException raised by system [NPL|vhcalnplci|00] for user [JCOTESTER]:
message: Name or password is incorrect (repeat logon)
return code: RFC_SYS_EXCEPTION (3)
error group: 103
key: RFC_ERROR_LOGON_FAILURE
My understanding is that the ABAP_AS1.jcoDestination file needs to be updated to point to the AS ABAP Dev Edition server. Here are the contents of the file:
#Sample destination configuration when using an application server over CPIC
#Replace the dummy values and put this file in the working directory.
#In eclipse environment it is the project root directory.
jco.client.ashost=vhcalnplci
jco.client.sysnr=00
jco.client.client=000
jco.client.user=JCOTESTER
jco.client.passwd=dT9B]^#LkwBFd]6tk)+BCc`H)eG%,5MZ6X*#I,*_(h@`=Egm
jco.client.lang=en
#
#further useful standard properties (see documentation in DestinationDataProvider)
#those are independent from the connection type
jco.destination.repository_roundtrip_optimization=1
jco.client.serialization_format=columnBased
jco.client.network=lan
jco.destination.pool_capacity=10
jco.destination.expiration_time=600000
jco.destination.expiration_check_period=120000
What I have done so far is:
The questions is for the fields:
jco.client.client
jco.client.user
For jco.client.user, I tried different values (npladm, root, my user name) etc but no luck. Any idea what should be used here? Is there were something I can check in my AS ABAP setup to match it here? I have no problems starting/stopping AS ABAP instance when I su to user npladm and issue startsap -t all
Also for the field jco.client.client - should that be changed to something else?
Thanks in advance for any help!