cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13904] - FilterTransformer: ArrayIndexOutOfBounds exception when count parameter = 1
Date Wed, 23 Oct 2002 19:38:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13904>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13904

FilterTransformer: ArrayIndexOutOfBounds exception when count parameter = 1





------- Additional Comments From michael.mcdonald@db.com  2002-10-23 19:38 -------
Using Filter Transformer, if I select use a count parameter with a value 0f 1, I
get an ArrayIndexOutofBounds exception. Works fine for values > 1.

Sitemap entry:

<map:match pattern="filterTest">
  <map:generate src="test.xml"/>
  <map:transform type="filter">
    <map:parameter name="element-name" value="leaf"/>
    <map:parameter name="count" value="1"/>
    <map:parameter name="blocknr" value="1"/>
  </map:transform>
  <map:serialize type="xml"/>
</map:match>


test.xml to be filtered:

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <leaf>Hi</leaf>
  <leaf>Hello</leaf>
  <leaf>Goodbye</leaf>
  <leaf>So long</leaf>
</root>

Resulting messages and stack trace (truncated):

The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Exception during processing of file:/opt/jakarta/webapps/cocoon/test.xml

More precisely:

org.apache.cocoon.ProcessingException: Exception during processing of
file:/opt/jakarta/webapps/cocoon/test.xml: java.lang.ArrayIndexOutOfBoundsException 

Original exception : java.lang.ArrayIndexOutOfBoundsException
at org.apache.xml.utils.BoolStack.pop(BoolStack.java:134)
at org.apache.xalan.serialize.SerializerToXML.endElement(SerializerToXML.java:1069)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1047)
at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttributes.endElement(AbstractTextSerializer.java:488)
at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at
org.apache.cocoon.transformation.FilterTransformer.endElement(FilterTransformer.java:186)
...

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message