Hi Krishna,
I faced the same problem as you. In my case I was using soapUI to run a mocked version of the Web Service that the CXF provider invoked. This error had me very puzzled until I discovered that CXF (or the Binding Component) doesnt handle indented XML or whitespaces very well. What I did was turn on the "Strip whitespaces" option the properties page for my mock service in soapUI and it started working. Are you using soapUI as well? Hope this helps. Freeman Fang wrote: > > Hi Krishna, > You shouldn't change the code in cxf bc provider, the root cause as I > mentioned is not loading the configuration file problem IMHO. > > Regards > Freeman > > krishnafddfs wrote: >> Hi Freeman, >> >> It is the same scenario as the previous https one. As i mentioned in the >> other >> thread, i added the workaround in cxfbc to programatically set >> the tlsclientparameters and once i did that the message went to the >> server >> and the server processed it fine and this error occurs when the cxfbc >> provider is trying to process the response. >> >> ---Thanks >> Krishna. >> >> >> Freeman Fang wrote: >> >>> Hi Krishna, >>> Is this issue also related the the previous https one? >>> If it's a new issue, would you please provide more details about your >>> scenario? >>> >>> Freeman >>> >>> krishnafddfs wrote: >>> >>>> Hi, >>>> >>>> I get the following error when the cxfbc provider is handling the >>>> response >>>> from the server. Is it any library mismatch or am i missing anything. >>>> please >>>> help >>>> >>>> --Krishna. >>>> >>>> Interceptor has thrown exception, unwinding now >>>> org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to >>>> insert a node where it is not permitted. >>>> at >>>> org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown >>>> Source) >>>> at org.apache.xerces.dom.ParentNode.insertBefore(Unknown >>>> Source) >>>> at org.apache.xerces.dom.CoreDocumentImpl.insertBefore(Unknown >>>> Source) >>>> at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source) >>>> at >>>> org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:708) >>>> at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:594) >>>> at >>>> org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:295) >>>> at >>>> org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:145) >>>> at >>>> org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:61) >>>> at >>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221) >>>> >>>> And i have turned on the javax.net.debug=ALL and this is the response >>>> from >>>> the server >>>> >>>> <?xml version="1 .0" encoding="ut f-8"?>.<SOAP-ENV :Envelope xmlns: >>>> SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema -instance" >>>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">.<SOAP >>>> -ENV:Body>.<ns:createuserResponse >>>> xmlns:ns='http://www.openuri.org/'><ns:createuserResult><ns:PersonId>1</ns:PersonId></ns:createuserResult></ns:createuserResponse> >>>> >>>> </SOAP-ENV:Body>. >>>> </SOAP-ENV:Envelope> >>>> >>>> >>> >>> >> >> > > > -- View this message in context: http://www.nabble.com/cxfbc-provider-%3AHIERARCHY_REQUEST_ERR%3A-An-attempt-was-made-to-insert-a-node-where-it-is-not-permitted.-tp19656853p19667244.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
