cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: pipelineComponent scope troubles (was Code freeze?)
Date Thu, 20 Sep 2007 13:03:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Giacomo Pati wrote:

<snip-all>

I've isolated the culprit commit that caused our application to stop working. Our application
works
fine up to and excluding commit r567329 which was
http://article.gmane.org/gmane.text.xml.cocoon.cvs/24998/match=r567329:

cocoon/trunk/core/cocoon-sitemap/cocoon-sitemap-impl/src/main/java/org/apache/cocoon/components/treeprocessor/InvokeContext.java
Sat Aug 18 14:12:45 2007
> @@ -231,6 +231,8 @@
>          final String sitemapObjectModelPathPrefix = "sitemap";
>          final String sitemapObjectModelNamedPathPrefix = sitemapObjectModelPathPrefix
+ "/$named$";
>
> +        newObjectModel.markLocalContext();
> +
>          this.mapStack.add(map);
>
>          if (getLogger().isDebugEnabled()) {
> @@ -292,6 +294,7 @@
>          Object name = this.mapToName.get(map);
>          this.mapToName.remove(map);
>          this.nameToMap.remove(name);
> +        this.newObjectModel.cleanupLocalContext();
>      }


Looking at the commit above and the stack trace we have got

Caused by: java.lang.UnsupportedOperationException
        at org.apache.commons.collections.map.UnmodifiableMap.remove(UnmodifiableMap.java:115)
        at
org.apache.commons.collections.map.AbstractMapDecorator.remove(AbstractMapDecorator.java:114)
        at org.apache.cocoon.objectmodel.ObjectModelImpl.removeAt(ObjectModelImpl.java:167)
        at org.apache.cocoon.objectmodel.ObjectModelImpl.cleanupLocalContext(ObjectModelImpl.java:177)

it seams that the cleanupLocalContext() method will modify a UnmodifiableMap which of cource
will
produce this exception.

Now, before I'll dig into it, I'll ask here whether this is something obvious to someone?

Ciao and thanks

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.6 (GNU/Linux)

iD8DBQFG8m+zLNdJvZjjVZARApWjAKC5u3j4fyqaLjhArbtZVmMBMffOjQCgpgFN
L3apJJhlEh8bxVfZy72v14w=
=FMhy
-----END PGP SIGNATURE-----

Mime
View raw message