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

com.google.gson.JsonSyntaxException #38

Closed
Volanaro opened this issue Oct 11, 2021 · 1 comment
Closed

com.google.gson.JsonSyntaxException #38

Volanaro opened this issue Oct 11, 2021 · 1 comment

Comments

@Volanaro
Copy link

Crashes on launch, i used to work for maybe 2 days now im getting:

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
at com.google.gson.Gson.fromJson(Gson.java:944)
at com.google.gson.Gson.fromJson(Gson.java:897)
at de.lars.remotelightcore.colors.palette.PaletteLoader.load(PaletteLoader.java:73)
at de.lars.remotelightcore.RemoteLightCore.(RemoteLightCore.java:137)
at de.lars.remotelightclient.Main.(Main.java:119)
at de.lars.remotelightclient.Main.main(Main.java:96)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:351)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:80)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at com.google.gson.Gson.fromJson(Gson.java:932)
... 5 more

Drumber added a commit that referenced this issue Oct 14, 2021
…orruptions [related to #36, #37, #38]

+ added unit test for loading and storing color palettes to json file
+ bumped version to 0.2.5.2
@Drumber
Copy link
Owner

Drumber commented Oct 14, 2021

Hi, thanks for reporting.
The error occured when the color palettes were not saved properly. The corrupted data file then caused a crash with your reported exception when loading the palettes on the next program start.

Please delete the palettes.json file in %userprofile%/.RemoteLight to reset the color palettes. Otherwise RemoteLight might not start.

I've fixed the problem in release v0.2.5.2.

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

2 participants