cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schmitz, Jeffrey A" <Jeffrey.A.Schm...@boeing.com>
Subject pipeline error handler
Date Fri, 14 Jan 2011 20:30:22 GMT
Hello,

I'm having a problem with my error handlers in Cocoon 2.1.11.  Specifically, I can't get my
error handlers to work when attached to an individual pipeline.  They work when attached to
a "pipelines" element, so I think my map:selectors is setup ok, but the handlers attached
to a pipeline element never catches any exceptions.  Any ideas?  E.g.

      <map:pipeline type="noncaching">
            <!--
                  Pipeline for importing legacy xml into the Neutral model using
                  semantic XML app models
            -->
            <map:match pattern="*/*/*In/*/*sxmlIn.flow/*/*">
                  <map:generate src="inputs/{4}" />
                  <map:transform src="xsl/{3}FormatNames.xsl">
                        <map:parameter name="instanceName" value="{2}" />
                  </map:transform>
                  <map:transform src="xsl/AppInAdapter.xsl">
                        <map:parameter name="instanceName" value="{2}" />
                        <map:parameter name="appName" value="{3}" />
                        <map:parameter name="xmlRoot" value="{7}" />
                  </map:transform>
                  <map:serialize type="xml" />
            </map:match>
            <map:handle-errors>
                  <map:select type="exception">
                        <map:when test="sax-parser-error">
                              <map:generate src="xml/saxError.xml" />
                              <map:serialize type="xml" />
                        </map:when>
                        <map:otherwise>
                              <map:generate src="xml/saxError.xml" />
                              <map:serialize type="xml" />
                        </map:otherwise>
                  </map:select>
            </map:handle-errors>
      </map:pipeline>


Mime
View raw message