2305614 - HIERARCHY_REQUEST_ERR error in Receiver REST Adapter | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2305614 - HIERARCHY_REQUEST_ERR error in Receiver REST Adapter


You use the REST Adapter as Receiver and you're converting XML to JSON. When you try to send messages you receive the following error:

Exception caught by adapter framework: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

In the debug traces about the REST Adapter you find similar errors:

Catching org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. 

at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:392)
at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:235)
at com.sap.aii.adapter.rest.ejb.receiver.RESTReceiverChannel.readXML(RESTReceiverChannel.java:1060)
at com.sap.aii.adapter.rest.ejb.receiver.RESTReceiverChannel.setMessageContent(RESTReceiverChannel.java:641)
at com.sap.aii.adapter.rest.ejb.receiver.RESTReceiverChannel.executeCall(RESTReceiverChannel.java:382)
at com.sap.aii.adapter.rest.ejb.receiver.RESTReceiverChannel.channel_receiveAsync(RESTReceiverChannel.java:303)
at com.sap.aii.adapter.rest.ejb.common.channel.AbstractReceiverChannel.receive(AbstractReceiverChannel.java:40)
at com.sap.aii.adapter.rest.ejb.common.channel.AbstractReceiverChannel.process(AbstractReceiverChannel.java:70)
at com.sap.aii.adapter.rest.ejb.common.ChannelManager.process(ChannelManager.java:146)
at com.sap.aii.adapter.rest.ejb.common.AbstractPIAdapter.process(AbstractPIAdapter.java:311)
at com.sap.aii.adapter.rest.ejb.common.AbstractPIAdapterBean.process(AbstractPIAdapterBean.java:57)
at sun.reflect.GeneratedMethodAccessor1287.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) 



  • SAP NetWeaver 7.3
  • SAP enhancement package 1 for SAP NetWeaver 7.3
  • SAP NetWeaver 7.4
  • SAP NetWeaver 7.5


SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP enhancement package 1 for SAP NetWeaver 7.3


REST adapter, Adapter Metadata, ESR, JSON, XML, XML element, Node, Insert, Insert node, Strip Operation from Message, Remove Outermost XML Element, Syntax, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, XI, AEX
, KBA , BC-XI-CON-RST , Rest Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.