Skip to content

Getting an IllegalStateException for non-existing class in Caffeine? #762

Answered by ben-manes
Andre601 asked this question in Q&A
Discussion options

You must be logged in to vote

I suspect that some form of dead code elimination is pruning the class files. I see that you enabled minimizeJar which probably does this, and requires using filters to retain classes it might otherwise prune. I don't know how this feature works, but generally the idea would be to inspect the byte code to compute the class dependency graph. If any class is looked up by reflection then it would be lost and fail at runtime, like you observed. Can you try (1) disabling minimizeJar and if that works, then try (2) enabling with an appropriate filter?

Caffeine code generates the different cache and entry types in order to minimize the memory footprint. There are many configuration options which…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ben-manes
Comment options

@Andre601
Comment options

@Andre601
Comment options

@ben-manes
Comment options

@Andre601
Comment options

Answer selected by ben-manes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants