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/05/25 07:28:03 UTC

[GitHub] [skywalking] Simbafa opened a new issue #7008: ClassCastException after #6966

Simbafa opened a new issue #7008:
URL: https://github.com/apache/skywalking/issues/7008


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
       - Bug
   
   ### Bug
   - Which version of SkyWalking, OS, and JRE?
       - SkyWalking master version
   
   - What happened?
   
   After #6966, following error occurs:
   ```
   ERROR 2021-05-25 15:16:55:543 http-nio-8080-exec-3 InstMethodsInter : class[class manager.controller.ServiceManagerController] after method[listAuthorizeMenu] intercept failure 
   java.lang.ClassCastException: org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.StackDepth cannot be cast to org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.StackDepth
           at org.apache.skywalking.apm.plugin.spring.mvc.commons.interceptor.AbstractMethodInterceptor.afterMethod(AbstractMethodInterceptor.java:201)
           at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:97)
           at manager.controller.ServiceManagerController.listAuthorizeMenu(ServiceManagerController.java)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           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:205)
           at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest$original$2oODx7a6(InvocableHandlerMethod.java:133)
           at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest$original$2oODx7a6$accessor$JTkKFCAu(InvocableHandlerMethod.java)
           at org.springframework.web.method.support.InvocableHandlerMethod$auxiliary$FTod0ROe.call(Unknown Source)
           at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:86)
           at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java)
           at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
           at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
           at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
           at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
   ```
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   


-- 
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] lujiajing1126 commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
lujiajing1126 commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847666952


   > JarsLink module has its own class loader. I guess this is the issue
   
   Sure. Similar to devtools.
   
   How about your experiment with Spring5?


-- 
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] Simbafa commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
Simbafa commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847642900


   > It must not be related to Tomcat, but only Spring. Which spring version are you using? 4 or lower I guess?
   I will try higher spring version.
   
   > Can you provide a simplest demo to reproduce this issue? I am not familiar with JarsLink.
   If higher spring version still fails, I will try to provide a demo. 
   


-- 
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] Simbafa commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
Simbafa commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847650260


   JarsLink module has its own class loader. I guess this is the issue


-- 
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] Simbafa commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
Simbafa commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847813471


   The test is failed with Spring 5.3.6. But it is not caused by Skywalking. Our system has some conflicts with new Spring version. I will try again later


-- 
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 #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #7008:
URL: https://github.com/apache/skywalking/issues/7008


   


-- 
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] Simbafa commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
Simbafa commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847630198


   devtools is not used.
   Our modules are jarslink modules


-- 
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 #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847629203


   > I used java-agent in Tomcat 8
   
   We tested Tomcat8, this is not a common case. Please provide demo 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 #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847620990


   cc @lujiajing1126
   
   @Simbafa We need a demo code to reproduce the error.


-- 
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 #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-860202390


   No update for 20 days


-- 
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] lujiajing1126 commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
lujiajing1126 commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847627834


   Pls assign me for this issue.


-- 
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] lujiajing1126 commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
lujiajing1126 commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847631430


   > devtools is not used.
   > Our modules are jarslink modules
   
   Can you provide a simplest demo to reproduce this issue? I am not familiar with JarsLink.


-- 
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] lujiajing1126 commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
lujiajing1126 commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847629849


   > I used java-agent in Tomcat 8
   
   It must not be related to Tomcat, but only Spring. Which spring version are you using? 4 or lower I guess?
   
   Are you using with `devtools`?


-- 
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] Simbafa commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
Simbafa commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847631052


   Spring 4.3.7 


-- 
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] Simbafa commented on issue #7008: ClassCastException after #6966

Posted by GitBox <gi...@apache.org>.
Simbafa commented on issue #7008:
URL: https://github.com/apache/skywalking/issues/7008#issuecomment-847627637


   I used java-agent in Tomcat 8


-- 
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