You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/04/30 06:55:54 UTC
[GitHub] [skywalking] pope12389 opened a new issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
pope12389 opened a new issue #6877:
URL: https://github.com/apache/skywalking/issues/6877
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
is aspectj and spring aop annotation supported ? such as @Aspect or @Around
--
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:
users@infra.apache.org
[GitHub] [skywalking] pope12389 commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
pope12389 commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829927843
> I don't think so. Reading document rather than asking randomly.
i found when i use spring aop error happened.
nio-13001-exec-6] ERROR o.hthc.sdk.hf.aop.UpdateTokenAspect - 【org.hthc.sdk.hf.controller.callback.HuafuPlcCallbackController.cmdCallBack】 - [?#?:?]
java.lang.NoSuchMethodException: org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance.cmdCallBack(java.lang.String)
at java.lang.Class.getMethod(Class.java:1786)
at org.hthc.sdk.hf.aop.UpdateTokenAspect.getAnnotation(UpdateTokenAspect.java:81)
at org.hthc.sdk.hf.aop.UpdateTokenAspect.around$original$B00ddrOa(UpdateTokenAspect.java:49)
at org.hthc.sdk.hf.aop.UpdateTokenAspect.around$original$B00ddrOa$accessor$5LNFa5hu(UpdateTokenAspect.java)
at org.hthc.sdk.hf.aop.UpdateTokenAspect$auxiliary$CAfha5ir.call(Unknown Source)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at org.hthc.sdk.hf.aop.UpdateTokenAspect.around(UpdateTokenAspect.java)
at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
at org.hthc.sdk.hf.controller.callback.HuafuPlcCallbackController$$EnhancerBySpringCGLIB$$5577bde6.cmdCallBack(<generated>)
at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke$original$6rKCJHrd(StandardHostValve.java:143)
at org.apache.catalina.core.StandardHostValve.invoke$original$6rKCJHrd$accessor$36PF3NgL(StandardHostValve.java)
at org.apache.catalina.core.StandardHostValve$auxiliary$3Lq2LCs3.call(Unknown Source)
at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
--
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6877:
URL: https://github.com/apache/skywalking/issues/6877
--
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829930853
This seems a conflict with SkyWalking's enhancement with your codes. Read the exception stack. The root cause is from your codes.
--
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829885007
I don't think so. Reading document rather than asking randomly.
--
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:
users@infra.apache.org
[GitHub] [skywalking] pope12389 commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
pope12389 commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829967448
ok. i just notic this can be a problem.
--
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829937879
This is really the wrong way to think about tech. I said this is a conflict.
--
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829947248
> so how can i handle this problem ? update my code ? that's not a good idea.
How to do on your codes is your responsibility. You are asking more than the community should do. This is not a commercial service.
--
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:
users@infra.apache.org
[GitHub] [skywalking] pope12389 commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
pope12389 commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829932408
when i disabled skywalking agent it works .
--
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:
users@infra.apache.org
[GitHub] [skywalking] pope12389 commented on issue #6877: is aspectj and spring aop annotation supported ? such as @aspect or @around
Posted by GitBox <gi...@apache.org>.
pope12389 commented on issue #6877:
URL: https://github.com/apache/skywalking/issues/6877#issuecomment-829945961
so how can i handle this problem ? update my code ? that's not a good idea.
--
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:
users@infra.apache.org