Skip to content

NoSuchMethodError in JsonServlets #4

Description

@kgston

When using with selenium-server-standalone-2.53.0.jar

ProxyStatusJsonServlet: line 65
eachProxy.getOriginalRegistrationRequest().getAssociatedJSON() returns a com.google.gson.JsonObject while busyProxies.put() of type JSONArray expects a org.json.JSONObject causing the code to fail with a NoSuchMethodError as the expected return type is causing a mismatched signature.

A quick fix would be to use eachProxy.getOriginalRegistrationRequest().toJSON() to serialize it and then deserialize it again, or change the JSON library to GSON.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions