[jbosstools-issues] [JBoss JIRA] (JBIDE-25501) Installer tests doesn't work on Ubuntu with OpenJDK

Lukáš Valach (JIRA) issues at jboss.org
Thu Dec 14 08:37:01 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-25501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505494#comment-13505494 ] 

Lukáš Valach commented on JBIDE-25501:
--------------------------------------

OpenJDK needs to run on system with exact version of NSS against which it has been build. As we support multiple version of Ubuntu (16.10, 17.10) we need to use multiple versions of OpenJDKs and morever, any time we update Ubuntu we also have to update OpenJDK. 

So in this case we can't use single version of JDK stored on shared drive, so I separated Ubuntu-OpenJDK tests to new job \[1\].

\[1\] https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/Devstudio_Installation/job/Devstudio_installation/job/devstudio_installation_standalone_11_Ubuntu.matrix/

This job runs test against preinstalled OpenJDK. JDK has been installed via apt-get which ensures that OpenJDK has all dependencies they need (including NSS in appropriate version).

> Installer tests doesn't work on Ubuntu with OpenJDK
> ---------------------------------------------------
>
>                 Key: JBIDE-25501
>                 URL: https://issues.jboss.org/browse/JBIDE-25501
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: qa
>    Affects Versions: 4.5.2.AM3
>            Reporter: Lukáš Valach
>            Assignee: Lukáš Valach
>             Fix For: 4.5.2.AM3
>
>
> Installer tests doesn't work on Ubuntu with OpenJDK.
> Log snippet:
> {code}
> ...
> [ubuntu1710] $ /qa/tools/opt/groovy-2.4.3/bin/groovy -DuseWhiteSpace /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-installer.test/src/main/groovy/prepareJBDSInstall.groovy https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master/latest/all/devstudio-11.2.0.AM2-v20171212-1017-B1750-installer-standalone.jar /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710
> Installer not found on local machine
> Attempting to download
>       [get] Getting: https://devstudio.redhat.com/11/snapshots/builds/devstudio.product_master/latest/all/devstudio-11.2.0.AM2-v20171212-1017-B1750-installer-standalone.jar
>       [get] To: /mnt/hudson_workspace/workspace/Devstudio_Installation/Devstudio_installation/devstudio_installation_standalone_11.matrix-lvalach/jdk/openjdk-1.8/label/ubuntu1710/devstudio-11.2.0.AM2-v20171212-1017-B1750-installer-standalone.jar
>       [get] Exception in thread "Thread-1" java.lang.InternalError
>       [get] 	at sun.security.ec.SunEC.initialize(Native Method)
>       [get] 	at sun.security.ec.SunEC.access$000(SunEC.java:49)
>       [get] 	at sun.security.ec.SunEC$1.run(SunEC.java:61)
>       [get] 	at sun.security.ec.SunEC$1.run(SunEC.java:58)
>       [get] 	at java.security.AccessController.doPrivileged(Native Method)
>       [get] 	at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
>       [get] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       [get] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>       [get] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>       [get] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>       [get] 	at java.lang.Class.newInstance(Class.java:442)
>       [get] 	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
>       [get] 	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
>       [get] 	at java.security.AccessController.doPrivileged(Native Method)
>       [get] 	at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
>       [get] 	at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
>       [get] 	at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
>       [get] 	at sun.security.jca.ProviderList.getService(ProviderList.java:331)
>       [get] 	at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
>       [get] 	at javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
>       [get] 	at javax.net.ssl.SSLContext.getDefault(SSLContext.java:96)
>       [get] 	at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:122)
>       [get] 	at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:332)
>       [get] 	at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:289)
>       [get] 	at sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:85)
>       [get] 	at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
>       [get] 	at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
>       [get] 	at java.net.URL.openConnection(URL.java:979)
>       [get] 	at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:680)
>       [get] 	at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:626)
>       [get] 	at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:616)
> {code}
> ...then the installer archive isn't downloaded.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbosstools-issues mailing list