Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cached exceptions may have confusing stack traces #94

Open
GoogleCodeExporter opened this issue Feb 28, 2016 · 0 comments
Open

cached exceptions may have confusing stack traces #94

GoogleCodeExporter opened this issue Feb 28, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Enable an exceptionCacheName="..." in a @Cacheable

2. Have said @Cacheable throw an exception (in some unique call stack)

3. Call the same method again with the same parameters (but from a different 
call stack) 

The exception thrown will contain the stack trace of the invocation that first 
cached it. It might be wildly different in other invocations. 

The only "solution" I can think of is to serialize/deserialize the cached 
exception (to produce a clone of sorts) and then "fix" the stack trace on the 
clone before throwing it. That operation would come at an expense so this 
should perhaps be optional behavior. 




Original issue reported on code.google.com by [email protected] on 23 Mar 2012 at 12:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant