DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31637>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31637 MountTableMatcher does not work with generated mount-table Summary: MountTableMatcher does not work with generated mount- table Product: Cocoon 2 Version: 2.1.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: sitemap components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The mount table matcher (org.apache.cocoon.matching.MountTableMatcher) does not work correctly when the mount table indicated by the pattern-attribute is generated by a pipeline. For example, using <map:match pattern="cocoon:/my-mount-table" type="mount-table"> in a sitemap, where my-mount-table generates a correct mount-table seems to work sometimes, but leads to one of several errors: 1. It causes a NullPointerException when trying to release an environment (it says on System.err). 2. A org.apache.cocoon.sitemap.PatternException is thrown, caused by a java.lang.NullPointerException at org.apache.cocoon.matching.MountTableMatcher.getMountTable(MountTableMatcher.java:113) The generated mount-table comes from a pipeline such as: <map:match pattern="my-mount-table"> <map:generate src="{realpath:}/../../my-mount-table.xml"/> <map:serialize type="xml"/> </map:match> When the mount-table file is used directly as the pattern-attribute of the mount-table matcher, everything works fine.
