cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31637] New: - MountTableMatcher does not work with generated mount-table
Date Mon, 11 Oct 2004 09:35:34 GMT
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: dev@cocoon.apache.org
        ReportedBy: nverwer@email.com


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.

Mime
View raw message