Announcement Announcement Module
Collapse
No announcement yet.
Once again a HIERARCHY_REQUEST_ERR Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Once again a HIERARCHY_REQUEST_ERR

    Hi,

    It seems that very few people have had this problem and I can not seem to understand how they got rid of it. I currently get the following exception stacktrace:
    ---cut---
    org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
    at org.apache.axiom.om.impl.dom.NodeImpl.insertBefore (NodeImpl.java:261)
    at org.apache.axiom.om.impl.dom.NodeImpl.appendChild( NodeImpl.java:240)
    at org.apache.xml.utils.DOMBuilder.append(DOMBuilder. java:179)
    at org.apache.xml.utils.DOMBuilder.startElement(DOMBu ilder.java:326)
    at org.apache.xalan.transformer.TransformerIdentityIm pl.startElement(TransformerIdentityImpl.java:1072)
    at org.jdom.output.SAXOutputter.startElement(SAXOutpu tter.java:1027)
    at org.jdom.output.SAXOutputter.element(SAXOutputter. java:894)
    at org.jdom.output.SAXOutputter.elementContent(SAXOut putter.java:1097)
    at org.jdom.output.SAXOutputter.elementContent(SAXOut putter.java:1069)
    at org.jdom.output.SAXOutputter.output(SAXOutputter.j ava:666)
    at org.jdom.transform.JDOMSource$DocumentReader.parse (JDOMSource.java:521)
    at org.apache.xalan.transformer.TransformerIdentityIm pl.transform(TransformerIdentityImpl.java:484)
    at org.springframework.xml.transform.TransformerObjec tSupport.transform(TransformerObjectSupport.java:7 1)
    at org.springframework.ws.server.endpoint.adapter.Pay loadEndpointAdapter.invoke(PayloadEndpointAdapter. java:51)
    at org.springframework.ws.server.MessageDispatcher.di spatch(MessageDispatcher.java:221)
    at org.springframework.ws.server.MessageDispatcher.re ceive(MessageDispatcher.java:168)
    at org.springframework.ws.transport.support.WebServic eMessageReceiverObjectSupport.handleConnection(Web ServiceMessageReceiverObjectSupport.java:88)
    at org.springframework.ws.transport.http.WebServiceMe ssageReceiverHandlerAdapter.handle(WebServiceMessa geReceiverHandlerAdapter.java:57)
    at org.springframework.ws.transport.http.MessageDispa tcherServlet.doService(MessageDispatcherServlet.ja va:230)
    at org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:476)
    at org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:441)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:874)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11 ConnectionHandler.processConnection(Http11BaseProt ocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:619)
    ---cut---

    I have a JDOM payload endpoint (i have also tried the DOM payload endpoint) but both produce this very same error so I guess I am missing something basic. What could be the cause for this exception?

    My invokeInternal method seems pretty trivial:
    ---cut---
    protected Element invokeInternal(Element requestElement) throws Exception {
    Element result = new Element("SendMessageResponse", "http://www.bla.com/bla/1.0");
    return result;
    }

    ---cut---
    Any ideas?

    Dimo

  • #2
    Same problem

    Hi Dimo - I am experiencing the same problem as you and was wondering if you ever found a solution?

    Cheers,

    Adam

    Comment


    • #3
      Same issue

      Hi, was anyone able to fix this issue?

      HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

      Comment

      Working...
      X