cancel
Showing results for 
Search instead for 
Did you mean: 

RFx Import failing in CLM if custom node present in it

AnkitB
Participant
0 Kudos
202

Hello Experts,

We are getting an RFQ XML from ECC. For our business requirement we added 2 custom nodes to XML. We did ECC IDOC update, PI mapping updated, Created line item specs in buyer spec group in CLM. But our XML message is failing. If we remove the custom nodes then XML is successful. We wrote script in CLM to do execute some logic but in logs, we don't see script name anywhere hence that is ruled out as root cause. XML message after the import failure from CLM is attached.

ERROR MESSAGE:
An unexpected error occurred. Message: while trying to load from index -1 of an object array with length 4, loaded from field java.util.ArrayList.elementData of an object loaded from local variable 'this'

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member608139
Active Participant
0 Kudos

Sometimes this not work, you will need a java full restart

AnkitB
Participant
0 Kudos

Restart here is for SAP PI system or SAP CLM?

former_member608139
Active Participant
0 Kudos

This is a BUG not fixed by SAP, every changes in a RFC are not updated in object cache. There are 2 ways to solve your problem

1 - you need create a completly new RFC ( include basic structure typed what you are using)
2 - Restart the java instance after a CPA full cash refresh

former_member190293
Active Contributor

Hi Carlos!

Last time I've faced issue with RFC structure refresh it was enough to restart the service: "XPI Adapter: RFC" using NWA.

Regards, Evgeniy.

AnkitB
Participant
0 Kudos

Just to be sure. PI successfully completed the mapping (IDOC to XML) and upload the file in required folder. XML import failed in SAP CLM system (Java stack). It failed before our custom scripts get executed.Still the restart of the service can solve the issue?

former_member608139
Active Participant
0 Kudos

probably yes

AnkitB
Participant
0 Kudos

Service restarted. XML import failed. Below is the trace file:

null 

Import failed.\n

Import failed.\n

An unexpected error occurred.  Message: while trying to load from index -1 of an object array with length 4, loaded from field java.util.ArrayList.elementData of an object loaded from local variable 'this'

null 

com.sap.odp.api.common.exception.ApplicationException: Import failed.\n
	at com.sap.eso.sapintegration.util.SapIntUtil.createException(SapIntUtil.java:111)
	at com.sap.eso.sapintegration.Importer.setError(Importer.java:436)
	at com.sap.eso.sapintegration.Importer.goObjects(Importer.java:241)
	at com.sap.eso.sapintegration.Importer.go(Importer.java:150)
	at com.sap.odp.common.install.dataimport.xmliapi.XmlIapiImporter.go(XmlIapiImporter.java:93)
	at com.sap.odp.install.actions.ProcessXmlIapiImportFile.executeHook(ProcessXmlIapiImportFile.java:103)
	at com.sap.odp.install.actions.InstallAction.execute(InstallAction.java:176)
	at com.sap.odp.install.engine.ScriptedImportEngine.runSingleItem(ScriptedImportEngine.java:298)
	at com.sap.odp.install.engine.XmlIapiImportEngine.execute(XmlIapiImportEngine.java:102)
	at com.sap.odp.install.imports.ImportController$ImportRunner.execute(ImportController.java:302)
	at com.sap.odp.install.imports.ImportController$ImportRunner.run(ImportController.java:212)
	at java.lang.Thread.run(Thread.java:763)
com.sap.eso.sapintegration.util.ImportFailedException: Import failed.\n
	at com.sap.eso.sapintegration.importer.ObjectsXmlHandler.processObject(ObjectsXmlHandler.java:182)
	at com.sap.eso.sapintegration.importer.ObjectsXmlHandler.endElement(ObjectsXmlHandler.java:116)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
	at com.sap.eso.sapintegration.importer.AbsXmlHandler.parse(AbsXmlHandler.java:69)
	at com.sap.eso.sapintegration.Importer.goObjects(Importer.java:226)
	at com.sap.eso.sapintegration.Importer.go(Importer.java:150)
	at com.sap.odp.common.install.dataimport.xmliapi.XmlIapiImporter.go(XmlIapiImporter.java:93)
	at com.sap.odp.install.actions.ProcessXmlIapiImportFile.executeHook(ProcessXmlIapiImportFile.java:103)
	at com.sap.odp.install.actions.InstallAction.execute(InstallAction.java:176)
	at com.sap.odp.install.engine.ScriptedImportEngine.runSingleItem(ScriptedImportEngine.java:298)
	at com.sap.odp.install.engine.XmlIapiImportEngine.execute(XmlIapiImportEngine.java:102)
	at com.sap.odp.install.imports.ImportController$ImportRunner.execute(ImportController.java:302)
	at com.sap.odp.install.imports.ImportController$ImportRunner.run(ImportController.java:212)
	at java.lang.Thread.run(Thread.java:763)
com.sap.odp.api.common.exception.ApplicationException: An unexpected error occurred.  Message: while trying to load from index -1 of an object array with length 4, loaded from field java.util.ArrayList.elementData of an object loaded from local variable 'this'
	at com.sap.odp.api.common.exception.ChainedExceptionFactory.createApplicationException(ChainedExceptionFactory.java:92)
	at com.sap.odp.api.common.exception.ChainedExceptionFactory.createApplicationException(ChainedExceptionFactory.java:138)
	at com.sap.eso.sapintegration.util.SapIntUtil.createException(SapIntUtil.java:106)
	at com.sap.eso.sapintegration.util.SapIntUtil.createException(SapIntUtil.java:116)
	at com.sap.eso.sapintegration.importer.AbsImporter.processAllFields(AbsImporter.java:132)
	at com.sap.eso.rfx.sapintegration.importer.RFxImporter.process(RFxImporter.java:208)
	at com.sap.eso.rfx.sapintegration.importer.RFxImporter.process(RFxImporter.java:76)
	at com.sap.eso.sapintegration.importer.ObjectsXmlHandler.processObject(ObjectsXmlHandler.java:174)
	at com.sap.eso.sapintegration.importer.ObjectsXmlHandler.endElement(ObjectsXmlHandler.java:116)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
	at com.sap.eso.sapintegration.importer.AbsXmlHandler.parse(AbsXmlHandler.java:69)
	at com.sap.eso.sapintegration.Importer.goObjects(Importer.java:226)
	at com.sap.eso.sapintegration.Importer.go(Importer.java:150)
	at com.sap.odp.common.install.dataimport.xmliapi.XmlIapiImporter.go(XmlIapiImporter.java:93)
	at com.sap.odp.install.actions.ProcessXmlIapiImportFile.executeHook(ProcessXmlIapiImportFile.java:103)
	at com.sap.odp.install.actions.InstallAction.execute(InstallAction.java:176)
	at com.sap.odp.install.engine.ScriptedImportEngine.runSingleItem(ScriptedImportEngine.java:298)
	at com.sap.odp.install.engine.XmlIapiImportEngine.execute(XmlIapiImportEngine.java:102)
	at com.sap.odp.install.imports.ImportController$ImportRunner.execute(ImportController.java:302)
	at com.sap.odp.install.imports.ImportController$ImportRunner.run(ImportController.java:212)
	at java.lang.Thread.run(Thread.java:763)

null 
former_member608139
Active Participant
0 Kudos

did you tryed to remove the last definition from this idoc?

AnkitB
Participant
0 Kudos

If you meant the affected field which are having problem? Then yes removed and tested, it works.