Uploaded image for project: 'Cocoon 3 (Retired)'
  1. Cocoon 3 (Retired)
  2. COCOON3-34

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-2
    • cocoon-sitemap
    • 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.

      Attachments

        1. cocoon.log
          8 kB
          Andreas Pinter

        Activity

          People

            reinhard@apache.org Reinhard Poetz
            apinter Andreas Pinter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: