Discussion:
[Bug 1768799] [NEW] Java can't connect to https sites
Peter Hull
2018-05-03 10:28:25 UTC
Permalink
Public bug reported:

My original problem was that leiningen was not able to download a
project's dependencies, instead it gave errors containing
"java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty"

I have verified this with a minimal Java program (attached)

Expected behaviour: reads and prints the first line of the Leiningen
README from github (nothing significant about this file except that it
is accessible via https)

Actual behaviour: error report (attached, first few line reproduced below)
Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.base/sun.security.ssl.Alerts.getSSLException(Alerts.java:214)
at java.base/sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1974)
at java.base/sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1926)

I have checked that I get the expected behaviour on Windows

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: openjdk-11-jdk 10.0.1+10-3ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: LXDE
Date: Thu May 3 11:14:28 2018
InstallationDate: Installed on 2018-04-03 (29 days ago)
InstallationMedia: Lubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
SourcePackage: openjdk-lts
UpgradeStatus: Upgraded to bionic on 2018-04-27 (5 days ago)

** Affects: openjdk-lts (Ubuntu)
Importance: Undecided
Status: New


** Tags: amd64 apport-bug bionic

** Attachment added: "Example Java file"
https://bugs.launchpad.net/bugs/1768799/+attachment/5132892/+files/JavaApplication92.java
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768799

Title:
Java can't connect to https sites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu
Peter Hull
2018-05-03 10:29:10 UTC
Permalink
** Attachment added: "Error messages"
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+attachment/5132896/+files/ssltest.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768799

Title:
Java can't connect to https sites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listin
Cd-MaN via ubuntu-bugs
2018-05-13 11:09:45 UTC
Permalink
** Attachment added: "Main.java"
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+attachment/5138706/+files/Main.java
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768799

Title:
Java can't connect to https sites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubun
Cd-MaN via ubuntu-bugs
2018-05-13 11:08:27 UTC
Permalink
I can confirm that this affects a clean install of Ubuntu 18.04. Steps
to reproduce:

- install Ubuntu 18.04. Fully update it
- install "default-jdk" (sudo apt install default-jdk)
- try running the very simple attached program which tries to retrieve "https://www.google.com"
- it fails with javax.net.ssl.SSLException (see the complete stacktrace in the attachment)

Workaround: remove default-jdk, install openjdk-8, remove openjdk-8 and
reinstall default-jdk:

sudo apt purge openjdk-default java-common
sudo apt purge default-jdk java-common
sudo apt install openjdk-8-jre
sudo apt purge openjdk-8-jre
sudo apt install default-jdk


** Attachment added: "exception.txt"
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+attachment/5138705/+files/exception.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768799

Title:
Java can't connect to https sites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/ma
Launchpad Bug Tracker
2018-05-13 10:59:55 UTC
Permalink
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: openjdk-lts (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768799

Title:
Java can't connect to https sites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubunt
Tiago Stürmer Daitx
2018-05-17 20:47:32 UTC
Permalink
*** This bug is a duplicate of bug 1739631 ***
https://bugs.launchpad.net/bugs/1739631

Thank you for taking the time to report this bug and helping to make
Ubuntu better.

I'm marking this as a duplicate of bug #1739631 since the issue is
caused by ca-certificates-java.

** This bug has been marked a duplicate of bug 1739631
Fresh install with JDK 9 can't use the generated PKCS12 cacerts keystore file
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768799

Title:
Java can't connect to https sites

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-lts/+bug/1768799/+subscriptions
--
ubuntu-bugs mailing list
ubuntu-***@lists.ubuntu.com
h
Loading...