Forum Discussion

HansSteenblok's avatar
HansSteenblok
Occasional Visitor
2 years ago

Uncaught exception polling for ProjectConfig.

We upgraded our readyapi test's in jenkins to out newest ready api version 3.40.2. When we run the test in Jenkins we get the next error:

07:20:36  [INFO] Reflections took 320 ms to scan 1 urls, producing 44 keys and 339 values 
07:20:36  07:21:42,618 INFO  1 out of 1 plugins have been loaded in 2 ms.
07:20:36  [INFO] No license found for ReadyAPI Performance.
07:20:36  [INFO] No license found for ReadyAPI Virtualization.
07:20:37  [INFO] using json parser: GsonConfigParser
07:20:37  [ERROR] Uncaught exception polling for ProjectConfig.07:20:37  java.lang.NullPointerException: Cannot invoke "com.optimizely.ab.config.ProjectConfig.getVersion()" because "projectConfig" is null
07:20:37      at com.optimizely.ab.config.DatafileProjectConfig$Builder.build (DatafileProjectConfig.java:494)
07:20:37      at com.optimizely.ab.config.HttpProjectConfigManager.parseProjectConfig (HttpProjectConfigManager.java:113)
07:20:37      at com.optimizely.ab.config.HttpProjectConfigManager.poll (HttpProjectConfigManager.java:127)
07:20:37      at com.optimizely.ab.config.PollingProjectConfigManager$ProjectConfigFetcher.run (PollingProjectConfigManager.java:196)
07:20:37      at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
07:20:37      at java.util.concurrent.FutureTask.runAndReset (FutureTask.java:305)
07:20:37      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:305)
07:20:37      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
07:20:37      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
07:20:37      at java.lang.Thread.run (Thread.java:833)
07:20:47  [WARNING] Timeout exceeded waiting for ProjectConfig to be set, returning null.07:20:47  [ERROR] Optimizely instance is not valid, failing getOptimizelyConfig call.07:20:47  [INFO] Datafile successfully loaded with revision: 97
07:20:47  [INFO] Loaded project from [file:/c:/Data/AgentMstr1/workspace/***-readyapi-project/]

We start our test with maven:

mvn -Denvironment=acc -Dprojectfile=***-readyapi-project test

We are using 

Java version: 18.0.2.1

The pom file looks like this:

 

The test is successful but we don't want the error in the log. Can anyone tell us why we get the error?