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 2019/05/28 03:20:27 UTC

[GitHub] [skywalking] mattwmj opened a new issue #2768: Failed to deserialize DefaultAopProxyFactory

mattwmj opened a new issue #2768: Failed to deserialize DefaultAopProxyFactory 
URL: https://github.com/apache/skywalking/issues/2768
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ √] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   
   I am using SkyWalking with Spring cloud, Spring Boot, Spring OAuth2 Client and Spring Session with JDBC store. 
   java.io.InvalidClassException: org.springframework.aop.framework.DefaultAopProxyFactory; local class incompatible  happened when more than one oauth client instance in the cloud.
   
   I suspect that:
   
   Spring OAuth2 Client stores DefaultOAuth2ClientContext (which contains DefaultAopProxyFactory) in session during authentication process. When SkyWalking enhance DefaultAopProxyFactory , the serializationUID is different on each service node. If node1 serialize DefaultAopProxyFactory  and store it in store, when node2 try to deserialize DefaultAopProxyFactory from session store, InvalidClassException happens.
   
   I want to know whether this is true and what I can do?
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   6.1.0 Linux/Windows Oracle Java8
   - Which company or project?
   
   - What happen?
   If possible, provide a way for reproducing the error. e.g. demo application, component version.
   
   ___
   ### Requirement or improvement
   - Please describe about 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


With regards,
Apache Git Services