bzhechkov
7 years agoNew Contributor
java.lang.RuntimeException: Guice error
Dear team,
I've upgraded from Ready API 1.9.0 to Ready API 2.4.0 and it is working properly with maven locally. However when I successfully installed Ready API 2.4.0 on jenkins node (server without GUI), using "./ReadyAPI-x64-2.4.0.sh -c" command I started getting errors when I try to run the tests via jenkins:
I can confirm that the tests are working in jenkins when I run it with 1.9.0 version, but not with 2.4.0
Here is the error message:
10:25:06 [ERROR] java.lang.RuntimeException: Guice error 10:25:06 [INFO] ------------------------------------------------------------------------ 10:25:06 [INFO] BUILD FAILURE 10:25:06 [INFO] ------------------------------------------------------------------------ 10:25:06 [INFO] Total time: 6.370 s 10:25:06 [INFO] Finished at: 2018-08-24T10:25:03+00:00 10:25:06 [INFO] Final Memory: 31M/342M 10:25:06 [INFO] ------------------------------------------------------------------------ 10:25:06 [ERROR] Failed to execute goal com.smartbear:ready-api-maven-plugin:2.4.0:test (default) on project uo-api-ready-api-tests: ReadyAPI Test(s) failed: ReadyAPI Test(s) failed: 10:25:06 [ERROR] Guice error 10:25:06 [ERROR] -> [Help 1] 10:25:06 [ERROR] 10:25:06 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 10:25:06 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 10:25:06 [ERROR] 10:25:06 [ERROR] For more information about the errors and possible solutions, please read the following articles: 10:25:06 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 10:25:06 Exception in thread "Thread-16" java.lang.NoClassDefFoundError: com/smartbear/ready/util/FileRemover 10:25:06 at com.smartbear.ready.util.FileRemover$ShutdownHook.startFileDeletionProcess(FileRemover.java:155) 10:25:06 at com.smartbear.ready.util.FileRemover$ShutdownHook.lambda$0(FileRemover.java:149) 10:25:06 at com.smartbear.ready.util.FileRemover$ShutdownHook$$Lambda$9/1516344760.run(Unknown Source) 10:25:06 at java.lang.Thread.run(Thread.java:745) 10:25:06 Caused by: java.lang.ClassNotFoundException: com.smartbear.ready.util.FileRemover 10:25:06 at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) 10:25:06 at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) 10:25:06 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) 10:25:06 at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) 10:25:06 ... 4 more 10:25:06 Build step 'Invoke top-level Maven targets' marked build as failure