-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
null pointer exception from remote DriverService class when outputstream or logfile are not passed. #2004
Comments
…m properties (#12674) Co-authored-by: Diego Molina <[email protected]>
I got same error |
Does Appium want process output sent to Console or Null by default? |
(I'm assuming stderr?) |
Appium does not pass anything by default. So it is DriverService that used to decide |
So by default it is off, and only turned on if you specify a log location? How would you specify sending to console? I created a PR above, but it would default to sending output to stderr. Should it be discarded by default? Right now you can avoid this error by using any of these methods on an Appium service instance:
|
Ok, I just updated it to get discarded. This can be overridden using either of the methods above. |
yes @titusfortner I had used the same i.e. withLogOutput(System.out); |
I still find this issue, Can you give solution to resolve this? |
Is it still an issue with Selenium 4.12.1? |
Yes, I am still facing the same issue |
@madhura-75 please provide the code, the exception, the new stack trace, and if you can turn on logging and provide the output that would be great: https://www.selenium.dev/documentation/webdriver/troubleshooting/logging/ You can also open a ticket in Selenium with this information, either way. |
@titusfortner Is it fixed in selenium 4.12.1? |
this is the issue I am facing java.lang.NullPointerException
|
Is there any solution as of now? Till it gets merged in selenium? |
We're hoping to get 4.13 out soon. You can try using the snapshot of latest, here - https://www.selenium.dev/downloads/#nightly |
https://github.com/appium/java-client/blob/2fd8c0cadce1a97a8a73e6ede893499f3d80414b/src/main/java/io/appium/java_client/service/local/AppiumDriverLocalService.java#L92C32-L92C32
java.lang.NullPointerException
at java.base/java.io.FileOutputStream.(FileOutputStream.java:228)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:187)
at org.openqa.selenium.remote.service.DriverService$Builder.getLogOutput(DriverService.java:448)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:495)
at io.appium.java_client.service.local.AppiumDriverLocalService.buildService(AppiumDriverLocalService.java:92)
at io.appium.java_client.service.local.AppiumDriverLocalService.buildDefaultService(AppiumDriverLocalService.java:88)
The text was updated successfully, but these errors were encountered: