com.google.gson.stream.MalformedJsonException: Unterminated string at line 39 column 10


Samebug tips2

This means you had a syntax problem in your serialization/deserialization, check the Gson javadoc to check the right syntax: https://goo.gl/g7LnZb


6 months ago
Expert tip

Solutions on the web3

Solution icon of github
via GitHub by gmcnaught
, 9 months ago
Unterminated string at line 39 column 10

Solution icon of github
via GitHub by alshabib
, 9 months ago
Unterminated string at line 39 column 10

Solution icon of googlegroups
via Google Groups by Royal Gaming, 4 months ago
Unterminated string at line 1492 column 11

Stack trace

com.google.gson.stream.MalformedJsonException: Unterminated string at line
39 column 10
	at com.google.gson.Gson.fromJson(Gson.java:734)
	at com.google.gson.Gson.fromJson(Gson.java:686)
	at com.google.gson.Gson.fromJson(Gson.java:636)
	at org.flowvisor.config.FVConfig.readFromFile(FVConfig.java:99)
	at org.flowvisor.config.LoadConfig.main(LoadConfig.java:139)
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated
string at line 39 column 10
	at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1158)
	at com.google.gson.stream.JsonReader.nextString(JsonReader.java:1014)
	at com.google.gson.stream.JsonReader.nextInObject(JsonReader.java:755)
	at com.google.gson.stream.JsonReader.quickPeek(JsonReader.java:387)
	at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:340)
	at com.google.gson.internal.bind.ObjectTypeAdapter.read(ObjectTypeAdapter.java:65)
	at com.google.gson.internal.bind.ObjectTypeAdapter.read(ObjectTypeAdapter.java:57)
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:38)
	at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:183)
	at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:141)
	at com.google.gson.Gson.fromJson(Gson.java:720)
	... 4 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
9 times, 3 months ago
Once, 4 months ago
30 more bugmates