christian-schlichtherle / truelicense

An open source engine for license management on the Java Virtual Machine.
https://truelicense.namespace.global
Apache License 2.0
319 stars 66 forks source link

global.namespace.truelicense.api.LicenseManagementException: java.lang.NoSuchMethodException #10

Closed nikolakurtic closed 4 years ago

nikolakurtic commented 4 years ago

Hi, upgrading some project to latest TrueLicense lib and I got this while installing license: global.namespace.truelicense.api.LicenseManagementException: java.lang.NoSuchMethodException: <unbound>=Class.valueOf("MULTI")

There's a Enum class with this value. Installing is done the same way as in other projects except this license has this custom field.

christian-schlichtherle commented 4 years ago

Are you using code obfuscation? Overly aggressive ProGuard settings can break enum code. You can use the TrueLicense Maven Archetype to generate a sample project and then copy its ProGuard configuration to your project.

nikolakurtic commented 4 years ago

I didn' use obfuscation.

christian-schlichtherle commented 4 years ago

With the little information given, I cannot reproduce the issue. Also, as you said there is no MULTI enum in TrueLicense. Please provide more information to reproduce the issue.

christian-schlichtherle commented 4 years ago

Will you be providing more information or can I close this issue?

nikolakurtic commented 4 years ago

It was my fault, issue can be closed, thanks!

christian-schlichtherle commented 4 years ago

No worries.