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

org.openqa.selenium.remote.ProtocolHandshake createSession Error #707

Closed
welnanick opened this issue Aug 28, 2017 · 14 comments
Closed

org.openqa.selenium.remote.ProtocolHandshake createSession Error #707

welnanick opened this issue Aug 28, 2017 · 14 comments

Comments

@welnanick
Copy link

Description

I updated to java-client v5.0.0 today and suddenly my tests would show an org.openqa.selenium.remote.ProtocolHandshake createSession error when starting the test suite, but the tests still all passed without issue.

Environment

  • java client build version or git revision if you use some shapshot: v5.0.0
  • Appium server version or git revision if you use some shapshot: 1.6.6-beta4
  • Desktop OS/version used to run Appium if necessary: macOS Sierra 10.12.6
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: nodejs v8.4.0
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: Real Device

Exception stacktraces

This is all I get from gradle, even with exceptionFormat set to full:

Gradle suite > Gradle test STANDARD_ERROR
    Aug 28, 2017 2:11:03 PM org.openqa.selenium.remote.ProtocolHandshake createSession
    INFO: Detected dialect: OSS

Since the tests don't actually fail, I don't get any stacktrace anywhere

@SrinivasanTarget
Copy link
Member

Can you share your build.gradle config here @welnanick

@welnanick
Copy link
Author

build.gradle

I removed a few sensitive things, but they were all just names of tests and files, not anything config wise.

I should note this also is happening on v5.0.1 and happens with iOS as well, tests still all run fine.

@TikhomirovSergey
Copy link
Contributor

@welnanick
So. It can't be reproduced now, is it true?

@welnanick
Copy link
Author

It happens every time I run my test suite, but does not affect the actual execution. Gradle is outputting an "error" from selenium (it prints to STANDARD_ERROR), but nothing actually fails.

@welnanick
Copy link
Author

I get the stacktrace from my original post, and then everything continues on as if nothing was wrong.

@welnanick
Copy link
Author

According to this: SeleniumHQ/selenium#3087, it might be intentional that it is printing out. This doesn't explain why it wasn't printing out before, but may be why it is printing out now?

@SantiCF
Copy link

SantiCF commented Aug 30, 2017

I'm getting the same error here with 5.0.0 and 5.0.1:

The error is because the version of com.google.common.collect.ImmutableSet does not have the "toImmutableSet" method. (ProtocolHandshake class, streamW3CProtocolParameters method)

Maybe the Guava version is the culprit?

@SantiCF
Copy link

SantiCF commented Aug 30, 2017

It also can't find the method 'throwIfUnchecked' in the AppiumCommandExecutor class

@TikhomirovSergey
Copy link
Contributor

@welnanick @SantiCF is there similar problem with 5.0.2?

@welnanick
Copy link
Author

I still get the output to STANDARD_ERROR, but no change in behavior. Everything still runs fine.

Like before, this "error" is happening but not affecting anything in my tests. Can't speak for other people however.

@SantiCF
Copy link

SantiCF commented Sep 5, 2017

@TikhomirovSergey it fixed it for me. As well as excluding selenium and adding the latest manually. So 5.0.2 is good on my end even without the mentioned workaround. 👍🏻

@raghav9626
Copy link

org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS - getting this below error while exeuting suite

@testingy12345
Copy link

Please help me to resolve this issue ?
IMG20191121233225

@omkarnathsingh
Copy link

@testingy12345 This is not an issue

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

No branches or pull requests

7 participants