Unleash / Unleash/unleash-java-sdk

java.lang.NoClassDefFoundError: com/google/gson/JsonParseException while using Java SDK 12.2.2

Open
#382 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug stale
Dominant language
Java
Stars
138
Forks
77
Avg merge
16h 15m
Merged PRs (30d)
1

Description

Describe the bug

Getting an issue with gson class not found by using java sdk
detailed exception is here Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/JsonParseException
at io.getunleash.repository.FeatureRepositoryImpl.(FeatureRepositoryImpl.java:28)
at io.getunleash.EngineProxyImpl.(EngineProxyImpl.java:38)
at io.getunleash.DefaultUnleash.defaultToggleRepository(DefaultUnleash.java:42)
at io.getunleash.DefaultUnleash.(DefaultUnleash.java:46)

Steps to reproduce the bug

No response

Expected behavior

No response

Logs, error output, etc.

Screenshots

No response

Additional context

No response

Unleash version

No response

Subscription type

No response

Hosting type

No response

SDK information (language and version)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with FeatureRepositoryImpl.java:28 and EngineProxyImpl.java:38 in the Java SDK, then inspect how dependencies are packaged for version 12.2.2. Reproduce the reported NoClassDefFoundError with a minimal SDK setup; done means the SDK starts without the missing Gson class error and the dependency behavior is covered by an appropriate test or documented reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.