org.openqa.grid.common.exception.GridConfigurationException: Error with the JSON of the config : Wrong format for the JSON input : com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 2 path $.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

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

,

Check the Gson javadoc to check the right syntax, or an online json formating tool to debug json errors.

Solutions on the web

via Stack Overflow by Vaibhav
, 2 years ago
Error with the JSON of the config : Wrong format for the JSON input : com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 2 path $.
via appium.io by Unknown author, 1 year ago
Error with the JSON of the config : Wrong format for the JSON input : com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 2 path $.
via google.com by Unknown author, 2 years ago
Error with the JSON of the config : Wrong format for the JSON input : com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 729 path $.configuration.hubHost
via Google Groups by sele...@googlecode.com, 2 years ago
Error with the JSON of the config : defaults/DefaultNode.json is not a valid resource.
com.google.gson.stream.MalformedJsonException: Expected name at line 1 column 2 path $.
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:517)
at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:418)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666)
at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642)
at com.google.gson.internal.Streams.parse(Streams.java:44)
at com.google.gson.JsonParser.parse(JsonParser.java:84)
at com.google.gson.JsonParser.parse(JsonParser.java:59)
at com.google.gson.JsonParser.parse(JsonParser.java:45)
at org.openqa.grid.common.JSONConfigurationUtils.loadJSON(JSONConfigurationUtils.java:79)
at org.openqa.grid.common.RegistrationRequest.loadFromJSON(RegistrationRequest.java:550)
at org.openqa.grid.common.RegistrationRequest.build(RegistrationRequest.java:378)

Users with the same issue

Once, 1 month ago
9 times, 6 months ago
Once, 7 months ago
Once, 1 year ago
6 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.