[JBoss JIRA] Created: (JBESB-3178) XPath Router couldn't create new DOM document
by Lukáš Petrovický (JIRA)
XPath Router couldn't create new DOM document
---------------------------------------------
Key: JBESB-3178
URL: https://jira.jboss.org/jira/browse/JBESB-3178
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Content Based Routing
Affects Versions: 4.7 CP1
Reporter: Lukáš Petrovický
Attachments: server.log.gz
Regression testing on SOA-P 5.0 CR1 (unsigned) revealed the following problem in fun_cbr QS, see the server log:
2010-02-09 16:30:32,427 DEBUG [org.jboss.soa.esb.listeners.message.ActionProcessingPipeline] (pool-27-thread-1) Unexpected exception caught while processing the action pipeline
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.jboss.internal.soa.esb.util.wstx.ESBDOMWrappingWriter.appendLeaf(ESBDOMWrappingWriter.java:501)
at org.jboss.internal.soa.esb.util.wstx.ESBDOMWrappingWriter.writeCharacters(ESBDOMWrappingWriter.java:244)
at com.ctc.wstx.evt.WstxEventWriter.add(WstxEventWriter.java:168)
at com.ctc.wstx.evt.WstxEventWriter.add(WstxEventWriter.java:230)
at org.jboss.internal.soa.esb.util.XMLHelper.copyXMLEventStream(XMLHelper.java:343)
at org.jboss.internal.soa.esb.util.XMLHelper.copyXMLEventStream(XMLHelper.java:315)
at org.jboss.internal.soa.esb.util.XMLHelper.createDocument(XMLHelper.java:610)
at org.jboss.soa.esb.actions.cbr.XPathRouter$XPathRoutingRule.evaluate(XPathRouter.java:95)
at org.jboss.soa.esb.actions.cbr.AbstractPropertyRulesRouter.route(AbstractPropertyRulesRouter.java:108)
at org.jboss.soa.esb.actions.cbr.XPathRouter.route(XPathRouter.java:44)
at org.jboss.soa.esb.actions.cbr.AbstractPropertyRulesRouter.route(AbstractPropertyRulesRouter.java:92)
at org.jboss.soa.esb.actions.cbr.XPathRouter.route(XPathRouter.java:44)
at org.jboss.soa.esb.actions.ContentBasedWiretap.executeRules(ContentBasedWiretap.java:172)
at org.jboss.soa.esb.actions.ContentBasedWiretap.process(ContentBasedWiretap.java:144)
at org.jboss.soa.esb.actions.ContentBasedRouter.process(ContentBasedRouter.java:58)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:634)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:588)
at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:419)
at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:540)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
The message that is being processed at the moment looks like this:
2010-02-09 16:30:32,354 INFO [STDOUT] (pool-27-thread-1) Message structure:
2010-02-09 16:30:32,354 INFO [STDOUT] (pool-27-thread-1) [<Order xmlns="http://org.jboss.soa.esb/Order" orderId="1" orderDate="Wed Nov 15 13:45:28 EST 2006" statusCode="0"
netAmount="59.97" totalAmount="64.92" tax="4.95">
<Customer userName="user1" firstName="Harry" lastName="Fletcher" state="SD"/>
<OrderLines>
<OrderLine position="1" quantity="1">
<Product productId="364" title="The 40-Year-Old Virgin " price="29.98"/>
</OrderLine>
<OrderLine position="2" quantity="1">
<Product productId="299" title="Pulp Fiction" price="29.99"/>
</OrderLine>
</OrderLines>
</Order>
].
It seems that it is impossible to create the DOM tree from this message. This is a regression since this QS ran fine with SOA-P 5.0 ER8.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira