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

Lukáš Valach (JIRA) issues at jboss.org
Wed Dec 13 08:42:00 EST 2017


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

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

It seems that there are incompatible versions of OpenJDK and NSS (See bug \[1\]).

\[1\] https://bugzilla.redhat.com/show_bug.cgi?id=1332456

NSS RPM packages installed on Ubuntu 17.10:
{code}
hudson at ubuntu17:/tmp$ apt list --installed | grep nss
libjansson4/artful,now 2.10-1 amd64 [installed,automatic]
libnss-mdns/artful,now 0.10-8ubuntu1 amd64 [installed]
libnss-myhostname/artful-updates,artful-security,now 234-2ubuntu12.1 amd64 [installed,auto-removable]
libnss3/artful,now 2:3.32-1ubuntu3 amd64 [installed,automatic]
libxmlsec1-nss/artful,now 1.2.24-4 amd64 [installed,automatic]
libxmlsec1-openssl/artful,now 1.2.24-4 amd64 [installed]
openssh-client/artful,now 1:7.5p1-10 amd64 [installed]
openssh-server/artful,now 1:7.5p1-10 amd64 [installed]
openssh-sftp-server/artful,now 1:7.5p1-10 amd64 [installed]
openssl/artful-updates,artful-security,now 1.0.2g-1ubuntu13.3 amd64 [installed]
perl-openssl-defaults/artful,now 3 amd64 [installed,automatic]
{code}

OpenJDK on shared drive (which doesn't work):
{code}
hudson at ubuntu17:/tmp$ /qa/tools/opt/x86_64/openjdk-1.8.0/bin/java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
{code}

Local installation of OpenJDK RPM which works fine:
{code}
hudson at ubuntu17:/tmp$ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.17.10.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
{code}

So we probably need either to update OpenJDK or to downgrade NSS.

> 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