DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27249>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27249

You cannot lookup components on a disposed ComponentLocator exception





------- Additional Comments From [EMAIL PROTECTED]  2004-02-27 10:23 -------
I've had the problem again on an existing cocoon-2.1rc2-dev installation
(compiled  on August 8 2003), scenario:

1. Cocoon is running fine
2. Do a CVS commit, causes sitemap.xmap to change (but only XML comments change,
due to the CVS log being written there)
3. Next request which uses the sitemap in question gives the error
4. After adding a space somewhere in the sitemap to cause it to reload, back to
normal.

Interesting part of the stack trace:
java.lang.IllegalStateException: You cannot lookup components on a disposed
ComponentLocator
        at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:199)
        at
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:315)
        at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:165)
        at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:126)
        at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:388)


Line 165 in SourceUtil is:

              xmlizer = (XMLizer) manager.lookup( XMLizer.ROLE);
   
so apparently the manager is not in the expected state when this happens.

I don't have the CVS version number of this SourceUtil handy but it was obtained
with a "cvs export -d 2004-08-08".

Reply via email to