Pier Fumagalli wrote:
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)
...
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="{1}"/>
<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...
It does not fix the reason of NPE though, this is just a workaround. Intention was not to log stacktrace in under certain conditions.
I committed the fix, could you please try it out?
Vadim
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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]