Cocoon 3
  1. Cocoon 3
  2. COCOON3-34

Attaching an aspect to "org.apache.cocoon.sitemap.node.Sitemap" leads to a ClassCastException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-2
    • Component/s: cocoon-sitemap
    • Labels:
      None

      Description

      I tried to attach an around-aspect for every node:

      @Around("execution(* invoke(..)) && within(org.apache.cocoon.sitemap.node.*)")

      This led to a ClassCastException for the first sitemap. (see attached logfile)
      After excluding sitemap from my aspect, everything works just fine:

      @Around("execution(* invoke(..)) && within(org.apache.cocoon.sitemap.node.* && !org.apache.cocoon.sitemap.node.Sitemap)")

      Tested with cocoon-sample.
      1. cocoon.log
        8 kB
        Andreas Pinter

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Reinhard Poetz
            Reporter:
            Andreas Pinter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development