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 » ArrayIndexOutOfBoundsException while processing Stylesheet

Post new topic  Reply to topic
 ArrayIndexOutOfBoundsException while processing Stylesheet « View previous topic :: View next topic » 
Author Message
prk
PostPosted: Wed Aug 09, 2006 10:17 am    Post subject: ArrayIndexOutOfBoundsException while processing Stylesheet Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 09, 2006 1:14 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Looks like a classical array manipulations error.

Possible causes
  1. You are trying to read beyond the source array
  2. you are trying to write beyond the target array
  3. you have not defined the array with the adequate depth and thus end up writing beyond the target's array boundaries.
  4. 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
View user's profile Send private message Send e-mail
prk
PostPosted: Thu Aug 10, 2006 10:52 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 10, 2006 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
prk
PostPosted: Mon Aug 14, 2006 10:28 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 14, 2006 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
prk
PostPosted: Tue Aug 15, 2006 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Aug 15, 2006 9:35 am    Post subject: Reply with quote

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
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 » ArrayIndexOutOfBoundsException while processing Stylesheet
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.