cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@dresdnerbank.de>
Subject [C2] SitemapManager.class change or bug ?
Date Thu, 05 Oct 2000 16:29:26 GMT
Hi All,

	I've did an update to the latest CVS version of C2 yesterday,
	unfortunately the code seems to be currently broken (at least in my
	environment).

	The problem lies in the Handler class of the sitemap code, resulting
	in an NPE stacktrace (below).

	I've attached a diff to Handler.java which makes the error stick out
	more in the 'internal-server-error' page.

	The problem comes from the call to smap.setConfiguration(...);
	(Handler.java line 149), which tries to use the class SitemapManager.
	This class (SitemapManager.java) no longer exists as of 6 days ago.

	The last ViewCVS log for this file says:
	
		renaming classes in the sitemap package

	so I presume this problem must be a temporary thing.

	My question is - is the renaming process still in progress, or has this
	been looked over ? :-)

	If it's still in progress - what needs to be done ?

	Cheers,

	Marcus

	PS. What is totally not clear to me is that there is no reference to
	SitemapManager in any of the C2 source (only in the proposals
	directory) - what code is trying to use this SiteManager class ??

-----------------------------------------------------------------------------

NPE stacktrace from CVS source:

java.lang.NullPointerException
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:133)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:167)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
        at org.apache.tomcat.core.Handler.service(Handler.java:263)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)


-----------------------------------------------------------------------------

CVS source stacktrace with attached patch:

java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/cocoon/sitemap/SitemapManager
        at org.apache.cocoon.sitemap.Handler.throwEventualException(Handler.java:161)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:126)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:167)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
        at org.apache.tomcat.core.Handler.service(Handler.java:263)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)
	
-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750

Mime
View raw message