Forum Discussion

danielfedeles's avatar
danielfedeles
New Contributor
6 years ago

Jenkins and ReadyApi integration after java update

Hello,
I have this setup:
ENV
Windows server2012 R2
ready-api-maven-plugin:1.7.0
JAVA_HOME=D:\java\jre8u202
MAVEN_JAVA_HOME=D:\java\jre8u202
Maven/maven3.2.2
And this is the error:

 

Exception in thread "main" java.lang.StackOverflowError
	at java.security.AccessController.doPrivileged(Native Method)
	at java.util.prefs.AbstractPreferences.isUserNode(AbstractPreferences.java:1024)
	at java.util.prefs.WindowsPreferences.rootNativeHandle(WindowsPreferences.java:1112)
	at java.util.prefs.WindowsPreferences.<init>(WindowsPreferences.java:452)
	at java.util.prefs.WindowsPreferences.getUserRoot(WindowsPreferences.java:93)
	at java.util.prefs.WindowsPreferencesFactory.userRoot(WindowsPreferencesFactory.java:42)
	at java.util.prefs.Preferences.userRoot(Preferences.java:454)
	at java.util.prefs.AbstractPreferences$1.run(AbstractPreferences.java:1027)
	at java.util.prefs.AbstractPreferences$1.run(AbstractPreferences.java:1025)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.util.prefs.AbstractPreferences.isUserNode(AbstractPreferences.java:1024)
	at java.util.prefs.WindowsPreferences.rootNativeHandle(WindowsPreferences.java:1112)
	at java.util.prefs.WindowsPreferences.<init>(WindowsPreferences.java:452)
	at java.util.prefs.WindowsPreferences.getUserRoot(WindowsPreferences.java:93)
	at java.util.prefs.WindowsPreferencesFactory.userRoot(WindowsPreferencesFactory.java:42)
	at java.util.prefs.Preferences.userRoot(Preferences.java:454)
	at java.util.prefs.AbstractPreferences$1.run(AbstractPreferences.java:1027)
	at java.util.prefs.AbstractPreferences$1.run(AbstractPreferences.java:1025)

 

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi danielfedeles,

     

    Could you please clarify your request to help us better understand the issue and assist you accordingly? 

    When do you get this error?

    Did the Jenkins and ReadyAPI integration use to work?

    What has been changed after the last successful test run?

    • danielfedeles's avatar
      danielfedeles
      New Contributor

      Hello,

       

      I am running regression tests on a VM with jenkins and Ready api plugin

      After deploying the application, the tests starts automaticly.

      The test war working untill the java update from 18.131 to 18.202, after that the error started.

      I cannot give you anny other details about the project.

       

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 07:03 min
      [INFO] Finished at: 2019-02-27T21:51:05+01:00
      [INFO] Final Memory: 19M/526M
      [INFO] ------------------------------------------------------------------------
      ---------------------------------------------------
      constituent[0]: file:/D:/Maven/maven3.2.2/lib/aether-api-0.9.0.M2.jar
      constituent[1]: file:/D:/Maven/maven3.2.2/lib/aether-connector-wagon-0.9.0.M2.jar
      constituent[2]: file:/D:/Maven/maven3.2.2/lib/aether-impl-0.9.0.M2.jar
      constituent[3]: file:/D:/Maven/maven3.2.2/lib/aether-spi-0.9.0.M2.jar
      constituent[4]: file:/D:/Maven/maven3.2.2/lib/aether-util-0.9.0.M2.jar
      constituent[5]: file:/D:/Maven/maven3.2.2/lib/aopalliance-1.0.jar
      constituent[6]: file:/D:/Maven/maven3.2.2/lib/cdi-api-1.0.jar
      constituent[7]: file:/D:/Maven/maven3.2.2/lib/commons-cli-1.2.jar
      constituent[8]: file:/D:/Maven/maven3.2.2/lib/commons-io-2.2.jar
      constituent[9]: file:/D:/Maven/maven3.2.2/lib/commons-lang-2.6.jar
      constituent[10]: file:/D:/Maven/maven3.2.2/lib/guava-14.0.1.jar
      constituent[11]: file:/D:/Maven/maven3.2.2/lib/javax.inject-1.jar
      constituent[12]: file:/D:/Maven/maven3.2.2/lib/jsoup-1.7.2.jar
      constituent[13]: file:/D:/Maven/maven3.2.2/lib/jsr250-api-1.0.jar
      constituent[14]: file:/D:/Maven/maven3.2.2/lib/maven-aether-provider-3.2.2.jar
      constituent[15]: file:/D:/Maven/maven3.2.2/lib/maven-artifact-3.2.2.jar
      constituent[16]: file:/D:/Maven/maven3.2.2/lib/maven-compat-3.2.2.jar
      constituent[17]: file:/D:/Maven/maven3.2.2/lib/maven-core-3.2.2.jar
      constituent[18]: file:/D:/Maven/maven3.2.2/lib/maven-embedder-3.2.2.jar
      constituent[19]: file:/D:/Maven/maven3.2.2/lib/maven-model-3.2.2.jar
      constituent[20]: file:/D:/Maven/maven3.2.2/lib/maven-model-builder-3.2.2.jar
      constituent[21]: file:/D:/Maven/maven3.2.2/lib/maven-plugin-api-3.2.2.jar
      constituent[22]: file:/D:/Maven/maven3.2.2/lib/maven-repository-metadata-3.2.2.jar
      constituent[23]: file:/D:/Maven/maven3.2.2/lib/maven-settings-3.2.2.jar
      constituent[24]: file:/D:/Maven/maven3.2.2/lib/maven-settings-builder-3.2.2.jar
      constituent[25]: file:/D:/Maven/maven3.2.2/lib/org.eclipse.sisu.inject-0.0.0.M5.jar
      constituent[26]: file:/D:/Maven/maven3.2.2/lib/org.eclipse.sisu.plexus-0.0.0.M5.jar
      constituent[27]: file:/D:/Maven/maven3.2.2/lib/plexus-cipher-1.7.jar
      constituent[28]: file:/D:/Maven/maven3.2.2/lib/plexus-component-annotations-1.5.5.jar
      constituent[29]: file:/D:/Maven/maven3.2.2/lib/plexus-interpolation-1.19.jar
      constituent[30]: file:/D:/Maven/maven3.2.2/lib/plexus-sec-dispatcher-1.3.jar
      constituent[31]: file:/D:/Maven/maven3.2.2/lib/plexus-utils-3.0.17.jar
      constituent[32]: file:/D:/Maven/maven3.2.2/lib/sisu-guice-3.1.3-no_aop.jar
      constituent[33]: file:/D:/Maven/maven3.2.2/lib/slf4j-api-1.7.5.jar
      constituent[34]: file:/D:/Maven/maven3.2.2/lib/slf4j-simple-1.7.5.jar
      constituent[35]: file:/D:/Maven/maven3.2.2/lib/wagon-file-2.6.jar
      constituent[36]: file:/D:/Maven/maven3.2.2/lib/wagon-http-2.6-shaded.jar
      constituent[37]: file:/D:/Maven/maven3.2.2/lib/wagon-http-shared-2.6.jar
      constituent[38]: file:/D:/Maven/maven3.2.2/lib/wagon-provider-api-2.6.jar
      constituent[39]: file:/D:/Maven/maven3.2.2/conf/logging/
      ---------------------------------------------------
      Exception in thread "main" java.lang.StackOverflowError
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.util.prefs.AbstractPreferences.isUserNode(AbstractPreferences.java:1024)
      	at java.util.prefs.WindowsPreferences.rootNativeHandle(WindowsPreferences.java:1112)
      	at java.util.prefs.WindowsPreferences.<init>(WindowsPreferences.java:452)
      	at java.util.prefs.WindowsPreferences.getUserRoot(WindowsPreferences.java:93)
      	at java.util.prefs.WindowsPreferencesFactory.userRoot(WindowsPreferencesFactory.java:42)
      	at java.util.prefs.Preferences.userRoot(Preferences.java:454)
      	at java.util.prefs.AbstractPreferences$1.run(AbstractPreferences.java:1027)
      	at java.util.prefs.AbstractPreferences$1.run(AbstractPreferences.java:1025)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.util.prefs.AbstractPreferences.isUserNode(AbstractPreferences.java:1024)
      	at java.util.prefs.WindowsPreferences.rootNativeHandle(WindowsPreferences.java:1112)
      	at java.util.prefs.WindowsPreferences.<init>(WindowsPreferences.java:452)
      	at java.util.prefs.WindowsPreferences.getUserRoot(WindowsPrefer+

       

      • Lucian's avatar
        Lucian
        Community Hero

        Hey danielfedeles ,

         

        I am not sure about what is causing your error but I can tell you that I had the same issue after updating Java. It seems that ReadyApi doesn't work with the newest Java version (I work with ReadyApi 2.4.0).

         

        In our project, the workaround was to run the ReadyApi using the old jdk.