cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Commented: (COCOON-2256) Attaching an aspect to "org.apache.cocoon.sitemap.node.Sitemap" leads to a ClassCastException
Date Mon, 27 Apr 2009 17:36:31 GMT

    [ https://issues.apache.org/jira/browse/COCOON-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703229#action_12703229
] 

Jörg Heinicke commented on COCOON-2256:
---------------------------------------

This is a known issue with proxying as explained here: http://insufficientinformation.blogspot.com/2007/12/spring-dynamic-proxies-vs-cglib-proxies.html.
Either Cocoon has to be changed to not rely on class but use interfaces or you can switch
to CGLib proxies.

> Attaching an aspect to "org.apache.cocoon.sitemap.node.Sitemap" leads to a ClassCastException
> ---------------------------------------------------------------------------------------------
>
>                 Key: COCOON-2256
>                 URL: https://issues.apache.org/jira/browse/COCOON-2256
>             Project: Cocoon
>          Issue Type: Bug
>          Components: - Components: Sitemap
>    Affects Versions: 2.1.12-dev (Current SVN)
>            Reporter: Andreas Pinter
>            Priority: Minor
>         Attachments: cocoon.log
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message