cc-chen opened a new issue #2681: framework.CglibAopProxy Final method [final object class.method$original$CbmCW8iL$accessor$xb4ioB8n(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. URL: https://github.com/apache/skywalking/issues/2681 In the agent project log info, I found an occasional log ``` 2019-05-15 17:00:30,648 INFO framework.CglibAopProxy Final method [final com.*.*.response.BaseResponse com.*.*.controller.AdvertController.detailProjectTag$original$CbmCW8iL$accessor$xb4ioB8n(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2019-05-15 17:00:30,648 INFO framework.CglibAopProxy Final method [final com.*.*.response.BaseResponse com.*.*.controller.AdvertController.listAdvert$original$CbmCW8iL$accessor$xb4ioB8n(int,int)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2019-05-15 17:00:30,648 INFO framework.CglibAopProxy Final method [final com.*.*.response.BaseResponse com.*.*.controller.AdvertController.deleteBanner$original$CbmCW8iL$accessor$xb4ioB8n(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2019-05-15 17:00:30,648 INFO framework.CglibAopProxy Final method [final com.*.*.response.BaseResponse com.*.*.controller.AdvertController.listTwoBanner$original$CbmCW8iL$accessor$xb4ioB8n(int,int,java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. ``` My project is use spring mvc, and proxy also is cglib. This is just a general project,like most other project. Because it is an occasional situation, i cannot provide the necessary code. just the spring.xml proxy config is: ``` <aop:aspectj-autoproxy proxy-target-class="true" /> ``` So I guess probably because of the cglib proxy class order. When agent project use cglib and the skywalking agent is use cglib too, but the cglib proxy will add a final attribute in front of the method, when both of them are proxy at the same time,this problem occurs. The skywalking version is 6.1.0
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
