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

        Reinhard Poetz made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 3.0.0-alpha-2 [ 12313446 ]
        Resolution Fixed [ 1 ]
        Reinhard Poetz made changes -
        Assignee Reinhard Poetz [ reinhard@apache.org ]
        Reinhard Poetz made changes -
        Project Cocoon [ 12310170 ] Cocoon 3 [ 12310838 ]
        Key COCOON-2256 COCOON3-34
        Affects Version/s 2.1.12-dev (Current SVN) [ 12312903 ]
        Component/s cocoon-sitemap [ 12312490 ]
        Component/s - Components: Sitemap [ 12310447 ]
        Andreas Pinter made changes -
        Field Original Value New Value
        Attachment cocoon.log [ 12406540 ]
        Andreas Pinter created 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