cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4155) Fault "object is not an instance of declaring class" is related to AOP/CGLIB
Date Tue, 06 Mar 2012 09:58:58 GMT

    [ https://issues.apache.org/jira/browse/CXF-4155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223130#comment-13223130
] 

Sergey Beryozkin commented on CXF-4155:
---------------------------------------

Hi, you can also spread the methods across multiple interfaces if needed, but generally, the
service methods are visible after the spring proxification when they are either coming from
the interfaces or CGLIB-enhanced; 
                
> Fault "object is not an instance of declaring class" is related to AOP/CGLIB
> ----------------------------------------------------------------------------
>
>                 Key: CXF-4155
>                 URL: https://issues.apache.org/jira/browse/CXF-4155
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.4, 2.5.2
>            Reporter: Sergiusz Kierat
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4.7
>
>         Attachments: cxf_bug.tar.gz
>
>
> The attached app works when the annotation Secured is turned off, otherwise fails.
> In my opinion, there is the issue during proxying mechanism in Spring Security.
> Try it out :
> * run : _mvn clean install jetty:run_
> * after running see :
> ** http://localhost:8080/cxf/rest/?_wadl&_type=xml
> ** http://localhost:8080/cxf/rest/name - PASS
> ** http://localhost:8080/cxf/rest/dateTime - FAIL
> Known workaround : add declaration method *getDateTime()* to _RestService_

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message