-
Notifications
You must be signed in to change notification settings - Fork 56
java.lang.NoClassDefFoundError: com/google/gson/JsonElement after updating to version 2.3.4. #105
Comments
Hi @brettcooper We removed Gson from the default jar as a result of #103 . It should be pulled in as a dependency, as it is listed with a |
Hi @pkaeding Thanks for the quick reply! Here is the LaunchDarkly dependency from our project:
Here are the references to gson from our parent pom:
Please let me know if this is enough info, or I can email [email protected] with our full pom's. Thanks for your help! |
Ok, I fixed this now by removing the test scope for gson in our parent pom.
Thanks for your help with this issue! |
log stream errors as WARN, not ERROR
We are using the LaunchDarkly Java client and when upgrading from version 2.3.3 to 2.3.4, the com.google.code.gson dependency is now missing at runtime. We receive the following error when trying to initialize the LDClient:
Also, we tried including the
<classifer>all</classifer>
within the LaunchDarkly maven dependency config and that broke other dependencies with log4j or slf4j. In the meantime we have rolled back to version 2.3.3 of the LaunchDarkly client.The text was updated successfully, but these errors were encountered: