|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Propagating error messages from XSLT to Message Broker trace |
« View previous topic :: View next topic » |
Author |
Message
|
gisly |
Posted: Fri Jan 17, 2014 5:33 am Post subject: Propagating error messages from XSLT to Message Broker trace |
|
|
Apprentice
Joined: 10 May 2012 Posts: 29
|
Hi,
I have got an xsl-transformation file, which throws an exception in case of bad data:
Code: |
<xsl:message terminate="yes">ER=BAD,TEXT=the number <xsl:value-of select="$srcTagValue"/> is bad/> |
When I run this transformation in Altova XSLT-Processor using Xalan processor (the same as Message Broker uses), I can see the actual message in the output.
However, when I use the file in the XSLT-node, I only get the following exception in the trace
Code: |
(0x03000000:NameValue):Text = 'Transformation failure when processing Stylesheet test_xsl.xsl
avax.xml.transform.TransformerException: java.lang.RuntimeException: Termination forced by an xsl:message instruction
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:675)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:319)
at com.ibm.xsl.exmlt.ParseFacilitator.parseXmlStylesheet(ParseFacilitator.java:274)
at com.ibm.xsl.exmlt.ParseFacilitator.parse(ParseFacilitator.java:216)
at com.ibm.xsl.exmlt.EnhancedXMLTransform.transformWithStylesheet(EnhancedXMLTransform.java:668)
at com.ibm.xsl.exmlt.EnhancedXMLTransform.transformDocument(EnhancedXMLTransform.java:627)
at com.ibm.xsl.mqsi.XMLTransformData.transformData(XMLTransformData.java:547)
at com.ibm.xsl.mqsi.XMLTransformNode.evaluate(XMLTransformNode.java:958)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1469)
aused by: java.lang.RuntimeException: Termination forced by an xsl:message instruction
at test_xsl.tryFormatNumber()
at test_xsl.numeric_element()
at test_xsl.template$dot$17()
at test_xsl.applyTemplates()
at test_xsl.template$dot$15()
at test_xsl.applyTemplates()
at test_xsl.transform()
at org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:603)
at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:662)
... 8 more
|
The trace doesn't contain the actual message my file sends.
Is it somehow possible to obtain the actual message?
The version of Message Broker is 7.0.0.3 |
|
Back to top |
|
 |
hcinko5 |
Posted: Fri Jan 17, 2014 10:28 am Post subject: |
|
|
 Novice
Joined: 12 Apr 2010 Posts: 21
|
|
Back to top |
|
 |
gisly |
Posted: Fri Jan 17, 2014 10:33 am Post subject: |
|
|
Apprentice
Joined: 10 May 2012 Posts: 29
|
Yes, thank you, I've seen that thread but it has no answers to my questions |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|