Skip to content

NoSuchMethodError in JsonServlets #4

@kgston

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.

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