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

NoSuchMethodError in JsonServlets #4

Open
kgston opened this issue May 27, 2016 · 1 comment
Open

NoSuchMethodError in JsonServlets #4

kgston opened this issue May 27, 2016 · 1 comment

Comments

@kgston
Copy link

kgston commented May 27, 2016

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.

@sandeepjain1987
Copy link

sandeepjain1987 commented May 25, 2017

I am facing this issue in selenium 3.4.0. how do I serialize eachProxy.getOriginalRegistrationRequest().toJSON() and then deserialize it again ? Can you please share the code if possible ? Moreover, I don't see any provision for adding servlets in RegistrationRequest.java.

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