ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Propagating error messages from XSLT to Message Broker trace

Post new topic  Reply to topic
 Propagating error messages from XSLT to Message Broker trace « View previous topic :: View next topic » 
Author Message
gisly
PostPosted: Fri Jan 17, 2014 5:33 am    Post subject: Propagating error messages from XSLT to Message Broker trace Reply with quote

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
View user's profile Send private message
hcinko5
PostPosted: Fri Jan 17, 2014 10:28 am    Post subject: Reply with quote

Novice

Joined: 12 Apr 2010
Posts: 21

http://www.mqseries.net/phpBB2/viewtopic.php?t=57904&sid=28211133739a54f3325ab8b9eef4e651
Back to top
View user's profile Send private message
gisly
PostPosted: Fri Jan 17, 2014 10:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Propagating error messages from XSLT to Message Broker trace
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.