RSelenium Error in envRefInferField - r

I am struggling all day with RSelenium. I have read everything I could find on net about the issue. And after all I am getting some earnings and errors I didn't get in the first place. When I execute checkForServer(), I get the watning:
Warning message:
checkForServer is deprecated.
Users in future can find the function in file.path(find.package("RSelenium"), "example/serverUtils").
The sourcing/starting of a Selenium Server is a users responsiblity.
Options include manually starting a server see vignette("RSelenium-basics", package = "RSelenium")
and running a docker container see vignette("RSelenium-docker", package = "RSelenium")
When I execute startServer(), I get the same warning as above.
In the end, when I run the code remDr <-remoteDriver() and remDr$open(), I get error:
Selenium message: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
class: java.lang.IllegalStateException
Further Details: run errorDetails method
I have also tried with chrome, but without succes.

Related

Robot Framwork error: WebDriverException: Message: unknown error: Failed to create Chrome process

Getting this error when I try and run a test. I had to uninstall and reinstall chrome some time back and this then started happening. My chromedriver version is correct for my browser also
[ ERROR ] Calling method 'end_suite' of listener
'C:\Users\JRyan64\Projects\esp-case-management\tests\robot\Execution\ResultsListener.py'
failed: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in
position 2640: character maps to
Tests.Robot.Tests.Cumulus.ESP.GS Portal.ADUX-11813.Test :: As a Po...
| FAIL | Parent suite setup failed: WebDriverException: Message:
unknown error: Failed to create Chrome process.
In this case there might be multiple reasons why you are getting this error:
running as root or administrator
chromedriver is not accessible, check $Path variable in "Environment Variables" or simply run chromedriver from command line to check if it's accessible.

Corda throws error trying to generate the basic nodes

Am trying to generate the basic nodes- PartyA, PartyB and Notary on Ubuntu 14 by running ./gradlew deployNodes or even ./gradlew clean deployNodes. The error reads:
... still waiting. If this is taking longer than usual, check the node logs.
Error while generating node info file /cordapp-template-java/build/nodes/Notary/logs
Error while generating node info file /cordapp-template-java/build/nodes/PartyB/logs
Error while generating node info file /cordapp-template-java/build/nodes/PartyA/logs
Task :deployNodes FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':deployNodes'.
Error while generating node info file. Please check the logs in /cordapp-template-java/build/nodes/Notary/logs.
Error while generating node info file. Please check the logs in /cordapp-template-java/build/nodes/Notary/logs.
The error logs do not provide any indication of error.
I have personally run into the above question myself. From what I saw, it seems it was a random incident on the Unix based machine.
The issue was resolved after I moved the project to the different location. It is absurd. But I have never ran into this issue ever again.

Flyway migration throwing Validation error

While running migration through flyway command line in Jenkins I am getting below error:
ERROR: Unexpected error org.flywaydb.core.api.FlywayException:
Validate failed: Detected applied migration not resolved locally:
12.0.4
Currently I am trying to run 20.0.1 which is lagtest version and earlier versions are not present in the files location.
I observed by the info that there are applied higher versions than 12.0.4(which is base version) on DB which are in missing state.
Can anyone help me why this error is occurring and how to resolve this?

RSelenim Cannot define class using reflection

I came accross this error a few days ago, trying many ways with no solution. I have already install Selenium, but in R something wrong:
remDr $ open ()
[1] "Connecting to remote server"
Selenium message:Cannot define class using reflection
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
Further Details: run errorDetails method
> remDr $ navigate ( "https://www.google.com.tw/" )
Error in checkError(res) :
Undefined error in httr call. httr output: length(url) == 1 is not TRUE
It really puzzled me, I thought of the version disorder, but changing version of selenium or chromedriver didn't work. How to solve it?

Error: Unhandled Exception: 'NoneType' object has no attribute '__getitem__'

I am loading one of the example apps from Shiny R into ShiniApps.io`
library(shinyapps)
shinyapps::setAccountInfo(name='xxx', token='xxx', secret='xxx')
deployApp("01_hello")
and then I get this error:
Error: Unhandled Exception: 'NoneType' object has no attribute 'getitem'
The app appeared in the web-page of Shinyapps.io as "undeployed".
Any clue what may be causing this error? the error is the same whether I run R 64 or 32 bit.
I had the same problem today. I wasn't able to successfully deploy a new app (getting the same error), but I was able to redeploy a previous app.
I have tried removing all packages and code from my new app (left only empty shinyServer and shinyUI functions uncommented) and still couldn't deploy.
Restarted R several times. Updated all packages. Nothing helped.
A few hours later I tried to deploy again and it passed without errors.
I know this is not exactly an answer but I suspect it was a server-side error because it failed during the "Starting instances" step of deployment.
So try to deploy it again, hope it works this time.

Resources