cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milkwayboat" <>
Subject [HELP]Failed to execute pipeline.
Date Wed, 25 Feb 2004 20:23:02 GMT
The error stack I got:       
Failed to execute pipeline. 

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException

Original Exception: java.lang.NullPointerException         at org.apache.xml.serializer.ToStream.ensurePrefixIsDeclared(
         at org.apache.xml.serializer.ToStream.startElement(          at
         at org.apache.cocoon.xml.AbstractXMLPipe.startElement( 
        at org.apache.cocoon.xml.AbstractXMLPipe.startElement(  
       at org.apache.cocoon.transformation.AbstractSAXTransformer.startTransformingElement(
         at org.apache.cocoon.transformation.SQLTransformer.start(
         at org.apache.cocoon.transformation.SQLTransformer.executeQuery(
         at org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(
         at org.apache.cocoon.transformation.SQLTransformer.endTransformingElement(
         at org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(
What I did:
1. I copied the "mysql-connector-java-3.0.11-stable-bin.jar" to $COCOON_HOME/WEB-INF/lib 
2. add the following to the web.xml
   <!-- For MySQL Driver: -->
3. add the following to the cocoon.xconf
  <jdbc name="YourPoolName">
    <pool-controller min="5" max="10"/>

  in fact I am not quite sure the port number, database name, user name and password above.
   A>  the database server doesn't require an user name or password to use the database,
but it dos require an account to login in to the OS, I don't know  how to set the user and
password to the OS ?
   B> also, I don't know if the port number is right? Is it just a random un-used one,
or there is a specific port number for mysql in unix?
   C> I am not sure the database name too. After I login on to the server by ssh, I can
              use tbdb
and then, I can inquery the table I want, 
so is "tbdb"  the one I should set after the port number?

4: here is what I add to the sitemap.xmap
   <map:match pattern="allUsers">
      <map:generate src="allUsers.xml" /> 
      <map:transform type="sql">
        <map:parameter name="use-connection" value="YourPoolName" /> 
        <map:parameter name="show-nr-of-rows" value="true" /> 
        <map:parameter name="clob-encoding" value="UTF-8" /> 
    <map:serialize type="xml" /> 
5, here is the allUsers.xml
  <?xml version="1.0" ?> 
   <execute-query xmlns="">
 <query name="allUsers">
  select uid from users; 

So I started the server and input the Url, the response is very very slow(about 5 minutes)
and what I got the above error stack.
Now I totally have no idea why

Thanks for your help and time!

View raw message