launchdarkly / java-server-sdk

LaunchDarkly Server-Side SDK for Java
Other
83 stars 56 forks source link

No feature flags loaded after upgrade from 5.6.7 to 5.7.0 #258

Closed yuzawa-san closed 2 years ago

yuzawa-san commented 2 years ago

Is this a support request? No

Describe the bug No feature flags loaded after upgrade from 5.6.7 to 5.7.0. There is an exception in the log (below).

To reproduce Instantiate a client in version 5.6.7 and then instantiate at client in 5.7.0. I am using a custom DataStore implementation, but the exception does not appear to be coming from there.

Expected behavior The client should be filled with the feature flags.

Logs

2022-02-04 17:33:18,751 INFO okhttp-eventsource-stream-[]-0 com.launchdarkly.sdk.server.LDClient.DataSource info - Connected to EventSource stream.
2022-02-04 17:33:18,752 ERROR okhttp-eventsource-events-[]-0 com.launchdarkly.sdk.server.LDClient.DataSource onMessage - LaunchDarkly service request failed or received invalid data: com.launchdarkly.sdk.server.StreamProcessor$StreamInputException: com.launchdarkly.sdk.server.interfaces.SerializationException: java.lang.RuntimeException: Failed to invoke public com.launchdarkly.sdk.LDValue() with no args
2022-02-04 17:33:18,754 INFO okhttp-eventsource-stream-[]-0 com.launchdarkly.sdk.server.LDClient.DataSource info - Waiting 20760 milliseconds before reconnecting...

SDK version 5.7.0

Language version, developer tools Java

OS/platform Amazon Linux 2 x86_64

Additional context 5.6.7 dependencies: image

5.7.0 dependencies: image

is that launchdarkly-java-sdk-common causing issues? it appears there is a duplicate com.launchdarkly.sdk.LDValue in there: image this is not present in 5.6.7.

gwhelanLD commented 2 years ago

Hi @yuzawa-san,

Thanks for reporting this issue. There was an issue with the packaging of the 5.7.0 SDK release we discovered yesterday that causes this error. We have an internal PR to address this issue, which we will release as a 5.7.1 release as soon as it has been reviewed and testing has been completed.

Sorry for the inconvenience, @gwhelanLD

gwhelanLD commented 2 years ago

This should be resolved with https://github.com/launchdarkly/java-server-sdk/releases/tag/5.7.1.

Thanks! @gwhelanLD

yuzawa-san commented 2 years ago

This fix appears to work. Thank you!