Symptom
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)
Read more...
Environment
- SAP NetWeaver 7.3
- SAP enhancement package 1 for SAP NetWeaver 7.3
- SAP NetWeaver 7.4
- SAP NetWeaver 7.5
Product
Keywords
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.