[ 
https://issues.apache.org/jira/browse/CXF-4155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-4155.
-----------------------------------

    Resolution: Not A Problem
      Assignee: Sergey Beryozkin

> Known workaround : add declaration method getDateTime() to RestService

It is not a workaround but a preferred solution; however if it is not possible 
in the production then enabling the cglib mode fixes it, I've verified it 
locally; 
http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-SpringAOP

You will need a spring aop and aspectj deps added to the project to confirm...

                
> 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

        

Reply via email to