TestProject Forum

Failed to initialize a session with the Agent

I have done Maven+BDD+Cucumber+Java UI automation framework integration with TestProject Java Open SDK. It used to run fine with local agent and when triggered through Jenkins on remote docker agent last month in July 2021.

But, it started failing when ran today locally as well as through Jenkins. It is not able to find active agent even though agent is active in my machine and in remote. Could you please help ?

Here are failure console logs.

2021-09-01 13:26:44.446 [31mWARN [0;39m CucumberReporter No active AgentClient instance, skipped reporting test
2021-09-01 13:26:44.921 [39mTRACE[0;39m AgentClient Project and Job names were explicitly set, skipping inferring.
2021-09-01 13:26:44.921 [34mINFO [0;39m AgentClient Initializing new session…
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/C:/Users/vinit/.m2/repository/com/google/code/gson/gson/2.8.5/gson-2.8.5.jar) to field java.io.File.path
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-09-01 13:26:44.954 [39mTRACE[0;39m AgentClient Initializing new session with capabilities: {“args”:[],“booleanPrefs”:{},“intPrefs”:{},“stringPrefs”:{},“legacy”:false,“caps”:{“acceptInsecureCerts”:true,“browserName”:“firefox”,“tp:guid”:“5df4b996-d94c-4a69-bfe5-fc96b43d88f3”}}
2021-09-01 13:26:49.248 [1;31mERROR[0;39m AgentClient Failed to initialize a session with the Agent
2021-09-01 13:26:49.255 [31mWARN [0;39m CucumberReporter No active AgentClient instance, skipped reporting test step