rd1
6 years agoNew Member
ReadyApi Maven Plugin - ClassNotFound FileRemover
ReadyAPI 2.8.0 TestCaseRunner Summary ----------------------------- Time Taken: 18057ms Total TestSuites: 1 Total TestCases: 2 (0 failed) Total TestSteps: 6 Total Request Assertions: 2 Total Failed Assertions: 0 Total Exported Results: 0 [INFO] ReadyAPI 2.8.0 shutting down [INFO] [1m------------------------------------------------------------------------[m [INFO] [1;32mBUILD SUCCESS[m [INFO] [1m------------------------------------------------------------------------[m [INFO] Total time: 53.598 s [INFO] Finished at: [...] [INFO] Final Memory: 44M/123M [INFO] [1m------------------------------------------------------------------------[m Exception in thread "Thread-20" java.lang.NoClassDefFoundError: com/smartbear/ready/util/FileRemover at com.smartbear.ready.util.FileRemover$ShutdownHook.startFileDeletionProcess(FileRemover.java:155) at com.smartbear.ready.util.FileRemover$ShutdownHook.lambda$0(FileRemover.java:149) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: com.smartbear.ready.util.FileRemover at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) ... 3 more
Getting this ClassNotFoundException after every test
Unfortunately, you faced a known bug in ReadyAPI with the ClassNotFound FileRemover exception.
There is no workaround for this bug. But, please note that this issue doesn't affect test execution - tests are run successfully.