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

SpringBoot application error #132

Open
andreyrogov-dev opened this issue Feb 6, 2022 · 2 comments
Open

SpringBoot application error #132

andreyrogov-dev opened this issue Feb 6, 2022 · 2 comments

Comments

@andreyrogov-dev
Copy link

Bug Report

Expected Behaviour

My goal is to obfuscate the springBoot application.
I set the main class in the config.
The process went without errors.
After starting I got the following message.

Actual Behaviour

Exception in thread "main" java.lang.IncompatibleClassChangeError: Method org.springframework.boot.loader.jar.JarFileEntries$Offsets.llIllIlIIIlI(I)Z must be InterfaceMethodref constant

How to reproduce the behaviour

Config in attach

Possible fix

obf.txt

@ramonaEs
Copy link

Got the same error here. Happens if spring boot version is upgraded to version 2.5.5 and higher. (Offsets in JarFileEntires was introduced).

My fix was to exclude everything in the org.springframework.boot.loader package from the obfuscation.

@araneta
Copy link

araneta commented Sep 23, 2023

how to exclude the org.springframework.boot.loader package from the obfuscation.?

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

No branches or pull requests

3 participants