Forum Discussion

bzhechkov's avatar
bzhechkov
New Contributor
6 years ago

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

 

2 Replies

  • Hi bzhechkov,

     

    Please provide us with the following additional info:

    1. The default java version, which is used on your Jenkins node (run "java -version" in the terminal).

    2. The full Maven output (save it to a text file and attach).

     

    Thanks!

    • bzhechkov's avatar
      bzhechkov
      New Contributor

      Hello,

      I've update the Java version and now I am able to run the tests. However now I am getting ERRORS with TestSuiteRunListener:

      [ERROR] Error in TestSuiteRunListener
      java.lang.NullPointerException
          at com.eviware.soapui.report.JUnitReportCollector.afterRun (JUnitReportCollector.java:270)
          at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner$1.notifyListener (WsdlTestSuiteRunner.java:230)
          at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.notifyListeners (WsdlTestSuiteRunner.java:286)
          at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.notifyAfterRun (WsdlTestSuiteRunner.java:227)
          at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalFinally (WsdlTestSuiteRunner.java:214)
          at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalFinally (WsdlTestSuiteRunner.java:1)
          at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run (AbstractTestRunner.java:153)
          at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:511)
          at java.util.concurrent.FutureTask.run (FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
          at java.lang.Thread.run (Thread.java:748)
      13:20:38,041 INFO  [log] com.eviware.soapui.ready.virt.rest.RESTMockServicePro@337680e0
      13:20:38,049 INFO  [log] +++++++++ Active environment is setup to Dev or Testing. IDS-MockService is not needed and it wont't start!
      13:20:38,133 INFO  [log] Check MockService is running: null
      13:20:38,133 INFO  [log] Attempting to stop IDS-MockService...
      13:20:38,134 INFO  [log] +++++++++ Failed to stop IDS-MockService service!
      [ERROR] Error in TestSuiteRunListener

      Any ideas what can cause this?