Author |
Message
|
prk |
Posted: Wed Aug 09, 2006 10:17 am Post subject: ArrayIndexOutOfBoundsException while processing Stylesheet |
|
|
Centurion
Joined: 17 Feb 2004 Posts: 102
|
Hi,
I am using Message Broker 6.0 on HP-UX and an XSLT node within the msg flow. I am sure that all the mapping is done correctly within the Stylesheet but I am getting this error.
Any ideas anyone ?
2006-08-09 13:48:49.994332 43 UserTrace BIP4445I: XMLT information message ''Applying Stylesheet at /ZMATMAS246CFromSAP.xsl'' reported by XMLT Node ''XMLTransformation''.
The XMLT node ''XMLTransformation'' has reported the following information message ''Applying Stylesheet at /ZMATMAS246CFromSAP.xsl''.
No user action required.
2006-08-09 13:48:49.997732 43 UserTrace BIP4442E: XMLT error ''XHNDLR_INTRNL_XSL_EXC'' reported by XMLT node ''XMLTransformation''.
The XMLT node ''XMLTransformation'' has reported the following error ''XHNDLR_INTRNL_XSL_EXC''.
Inspect the error text to determine appropriate action
2006-08-09 13:48:49.999736 43 UserTrace BIP4442E: XMLT error '''' reported by XMLT node ''Thread-13''.
The XMLT node ''Thread-13'' has reported the following error ''''.
Inspect the error text to determine appropriate action
2006-08-09 13:48:50.002068 43 UserTrace BIP4442E: XMLT error ''Error - Propagate to Failure Terminal'' reported by XMLT node ''XMLTransformation''.
The XMLT node ''XMLTransformation'' has reported the following error ''Error - Propagate to Failure Terminal''.
Inspect the error text to determine appropriate action
2006-08-09 13:48:50.004796 43 UserTrace BIP2231E: Error detected whilst processing a message 'MYSAP_MATMAS03.XMLTransformation'.
The message broker detected an error whilst processing a message in node 'MYSAP_MATMAS03.XMLTransformation'. The message has been augmented with an exception list and has been propagated to the node's failure terminal for further processing.
See the following messages for details of the error.
2006-08-09 13:48:50.004864 43 RecoverableException BIP4447E: XMLT node ''XMLTransformation'' encountered a problem during the transformation. The error message is ''Transformation failure when processing Stylesheet /ZMATMAS246CFromSAP.xsl
java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:345)
at org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:374)
at org.apache.xalan.xsltc.trax.TemplatesImplProxy.newTransformer(TemplatesImplProxy.java:106)
at com.ibm.xsl.exmlt.StylesheetCache.getPreprocessedStylesheet(StylesheetCache.java:659)
at com.ibm.xsl.exmlt.ParseFacilitator.parseXmlStylesheet(ParseFacilitator.java:552)
at com.ibm.xsl.exmlt.ParseFacilitator.parse(ParseFacilitator.java:253)
at com.ibm.xsl.exmlt.EnhancedXMLTransform.transformWithStylesheet(EnhancedXMLTransform.java:801)
at com.ibm.xsl.exmlt.EnhancedXMLTransform.transformDocument(EnhancedXMLTransform.java:734)
at com.ibm.xsl.mqsi.XMLTransformData.transformData(XMLTransformData.java:734)
at com.ibm.xsl.mqsi.XMLTransformNode.evaluate(XMLTransformNode.java:940)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1222)
''.
The transformation could not be completed.
Check the error message to identify the cause and correct the error. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 09, 2006 1:14 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks like a classical array manipulations error.
Possible causes
- You are trying to read beyond the source array
- you are trying to write beyond the target array
- you have not defined the array with the adequate depth and thus end up writing beyond the target's array boundaries.
- pick which ever fits best. Remember in java arrays start at 0 and the read/write index should always be LT the array depth
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
prk |
Posted: Thu Aug 10, 2006 10:52 am Post subject: |
|
|
Centurion
Joined: 17 Feb 2004 Posts: 102
|
I have an IDOC coming from SAP which has repeating segments, how can I address that Cardinality within a Stylesheet because I can just do a mapping but I couldn't find anything where the Cardinality could be set. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 10, 2006 10:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The mapping node lets you build a for loop. And call the CARDINALITY function. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
prk |
Posted: Mon Aug 14, 2006 10:28 am Post subject: |
|
|
Centurion
Joined: 17 Feb 2004 Posts: 102
|
Thanks Jefflowery. I am able to use the Mapping node and generate the output XML but I have one more question. After the mapping node I have an ESQL and am trying to put some logic to some of the fields but am having an issue accessing it using the Content Assit. Also can I just change only the couple of fileds I want and still keep the whole XML message intact without re-assigning all the fields in the message using ESQL. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Aug 14, 2006 10:30 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
content assist only works if it knows the structure of the message.
Yes, you can change individual fields. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
prk |
Posted: Tue Aug 15, 2006 9:19 am Post subject: |
|
|
Centurion
Joined: 17 Feb 2004 Posts: 102
|
Hi Jefflowery,
I am using a Mapping node for mapping SAP BO Msg Set and an XML Msg Set followed by a compute node where I re-map the whole message into an XML.
Can you tell me how I can just change a couple of fields and still keep the message in-tact without re-mapping everything ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Aug 15, 2006 9:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
In ESQL, to change a field you use the SET command. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|