cancel
Showing results for 
Search instead for 
Did you mean: 

Error sending IDOC from JCO Client to PI AEX 7.3.1

Stéphane
Explorer
0 Kudos

Hi All

We have a requirement to send an IDOC from a non SAP System to our ECC via PI AEX :

JCO.Client --> PI AEX --> SAP ECC

At this time, we are testing this scenario with a JAVA Client with JCO Library (3.0.10).

Destination to PI is OK

Destination to our SAP ECC (for IDocRepository) is OK

But by sending the IDOC to PI we are getting the following error, Exception is raised on the PI System and sent back to the JCO Client :

***

com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: while trying to invoke the method java.lang.Object.hashCode() of an object loaded from local variable 'key' (raised by system <extern>|PiSystem)

    at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:670)

    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1881)

    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120)

    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953)

    at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1465)

    at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:319)

    at com.sap.conn.idoc.jco.JCoIDoc.send(JCoIDoc.java:323)

    at com.sap.conn.idoc.jco.JCoIDoc.send(JCoIDoc.java:353)

    at sap_connector_examples.IDocClientExampleToJavaPO_pbs.main(IDocClientExampleToJavaPO_pbs.java:97)

Caused by: RfcException: [<extern>|PiSystem]

    message: while trying to invoke the method java.lang.Object.hashCode() of an object loaded from local variable 'key'

    Return code: RFC_SYS_EXCEPTION(3)

    error group: 104

    key: RFC_ERROR_SYSTEM_FAILURE

Exception raised by <extern>|PiSystem

***

PI Destination:

jco.destination.repository_destination=ABAP_AS_WITHOUT_POOL

jco.client.gwhost=PiSystem

jco.client.gwserv=sapgw01

jco.client.tpname=XI_IDOC_DEFAULT_PID

jco.client.type=E

ECC Destination: (ABAP_AS_WITHOUT_POOL)

jco.client.lang=en

jco.client.client=100

jco.client.passwd=****

jco.client.user=User

jco.client.sysnr=00

jco.client.ashost=ECCSystem

  • We have already set the PI VM System parameter  jco.allow_non_abap_partner to 1
  • ECC User has S_RFC Rolle

I will be thankful for any advise.

Thank You

Regards

Stéphane

Accepted Solutions (0)

Answers (1)

Answers (1)

aashish_sinha
Active Contributor
0 Kudos

Hi,

What is the status of InboundRA in NWA? Did you maintained JCO RFC destinations in PI? Is it a new installation?

Regards

Aashish Sinha

Stéphane
Explorer
0 Kudos

Hi

InboundRA (Resource Adapter) is green (Fully available).

What do you mean by maintaining JCO RFC Destination in PI ?

We have set the inboundRA Properties has follow :

ProgramID : XI_IDOC_DEFAULT_PID

DestinationName : XI_IDOC_DEFAULT_DESTINATION

Local: true

mutliRepository : ED1=XI_IDOC_DEFAULT_DESTINATION_ED1;ES4=XI_IDOC_DEFAULT_DESTINATION_ES4;MD1=XI_IDOC_DEFAULT_DESTINATION_MD1;ES1=XI_IDOC_DEFAULT_DESTINATION_ES1;PD1=XI_IDOC_DEFAULT_DESTINATION_PD1;

GatewayServer and Service are pointing to our PI System

BindingKey : PI_AAE_IDOC

And for each Repository we created a destination in NWA pointing to the corresponding ECC System.

(target host pointing to the ECC System and the Gateway host  pointing to the PI System)

Our Installation isn't new but it is the first time we are configuring the System for this scenario:

JCO.client --> PI AEX

Regards

Stéphane