cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leona Slepetis" <>
Subject null pointer passed as base exception
Date Thu, 27 Jun 2002 20:35:41 GMT
Hi All,

I have part of  a pipeline that looks like this:

    <map:match pattern="matrix">
      <map:generate src="gs.xml"/>
      <map:transform src="gs.xsl">
        <map:parameter name="pagename" value="matrix"/>
        <map:parameter name="dealID" value="{1}"/>
        <map:parameter name="playerID" value="123"/>
        <map:parameter name="matrixfile" value="{3}"/>
        <map:parameter name="projectname" value="{4}"/>
      <map:transform src="default-html.xsl"/>
      <map:serialize type="html"/>

In gs.xml I have:

  <page name="matrix"/>
<!-- some other stuff that doesn't matter in this example -->

In gs.xsl I have:

  <xsl:template match="application">
    <xsl:if test="not($pagename)">
      <xsl:apply-templates select="page[@name='default']"/>
    <xsl:if test="$pagename">
      <xsl:apply-templates select="page[@name=$pagename]"/>

And default-html.xsl has:

  <xsl:template match="page">

I get to it by calling

When I run it, the following error occurs:
Could not read resource file:/D:/tomcat/webapps/GS/gs.xml

org.apache.cocoon.ProcessingException: Could not read resource
file:/D:/tomcat/webapps/GorillaStation/gs.xml: java.lang.RuntimeException:
java.lang.IllegalArgumentException: Null pointer passed as base

One thing I notice is that playerID is not set to the value '123'. Why is
The other thing is that if I take out    <map:parameter name="pagename"
value="matrix"/>  from the pipeline it works
according to the default logic in <xsl:application>.

There doesn't appear to be anything wrong with gs.xml; it was working under
Other pipeline segments using the parameter "pagename" work just fine, such

    <map:match pattern="summary">
      <map:generate src="gs.xml"/>
      <map:transform src="gs.xsl">
        <map:parameter name="pagename" value="summary"/>
      <map:transform src="default-html.xsl"/>
      <map:serialize type="html"/>

Can anyone give me a clue as to what is wrong?

Thanks very much,

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message