Title: New CocoonServlet throws NullPointerException...
Vadim, your last changes to the cocoon servlet are throwing me a NPE...

java.lang.NullPointerException
        at org.apache.cocoon.components.notification.DefaultNotifyingBuilder.build(DefaultNotifyingBuilder.java:152)
        at org.apache.cocoon.components.notification.DefaultNotifyingBuilder.build(DefaultNotifyingBuilder.java:176)
        at org.apache.cocoon.servlet.CocoonServlet.manageException(CocoonServlet.java:1189)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1092)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
        at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:280)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:553)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1717)
        at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:549)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1667)
        at org.mortbay.http.HttpServer.service(HttpServer.java:862)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:759)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:923)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:776)
        at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:202)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

This is my sitemap, and of course, I don't have "index.xml" on the disk...

  <map:pipelines>
    <map:pipeline>
      <map:match pattern="">
        <map:redirect-to uri="index.xml"/>
      </map:match>

      <map:match pattern="*">
        <map:generate name="file" src="">         <map:serialize type="xml"/>
      </map:match>

    <map:handle-errors type="*">
      <map:serialize type="xml"/>
    </map:handle-errors>
      
    </map:pipeline>
  </map:pipelines>

Well, anyhow, this fixes it...

Index: org/apache/cocoon/servlet/CocoonServlet.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v
retrieving revision 1.47
diff -u -3 -r1.47 CocoonServlet.java
--- org/apache/cocoon/servlet/CocoonServlet.java        2 Feb 2003 23:35:36 -0000       1.47
+++ org/apache/cocoon/servlet/CocoonServlet.java        6 Feb 2003 20:10:17 -0000
@@ -1175,7 +1175,6 @@
                 if (e != null) {
                     extraDescriptions.put(Notifying.EXTRA_CAUSE,
                                           DefaultNotifyingBuilder.getRootCause(e).getMessage());
-                    e = null;
                 }
             }
 
@@ -1183,7 +1182,6 @@
             if (!log.isInfoEnabled()) {
                 extraDescriptions.put(Notifying.EXTRA_CAUSE,
                                       DefaultNotifyingBuilder.getRootCause(e).getMessage());
-                e = null;
             }
 
             Notifying n = new DefaultNotifyingBuilder().build(this,


    Pier

Reply via email to