← Back to team overview

openjdk team mailing list archive

[Bug 1283828] Re: "Cannot find any provider supporting RSA/ECB/OAEPPadding" error after upgrading to openjdk-6 6b27-1.12.6-1ubuntu0.12.04.4

 

Launchpad has imported 1 comments from the remote bug at
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1688.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2014-02-27T21:26:34+00:00 Jamie Strandboge wrote:

The following bug was filed in Ubuntu against openjdk-6:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/1283828

"After upgrading the various openjdk-6-* packages to version 6b27-1.12.6-1ubuntu0.10.04.4 on our server, all incoming client connections started failing with the following error message at the top of the stack dump (on the client side).
javax.xml.ws.soap.SOAPFaultException: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/OAEPPadding

(Previously we were running version 6b27-1.12.5-0ubuntu0.10.04.1 of the
packages without seeing this problem.)

comment #1:
It looks like this is the JDK 6 version of the JDK 7 problem described in:
   http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8017173

That bug was apparently fixed in JDK 7 by this one-line commit:
   http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/c5d869453212

In the JDK6 upstream, it seems this patch is the one that introduced the "OAEPPadding" string :
   http://hg.openjdk.java.net/jdk6/jdk6/jdk/diff/f3d02dd3dee5/src/share/classes/com/sun/org/apache/xml/internal/security/algorithms/JCEMapper.java
(part of S6741606 "Integrate Apache Santuario"), but I haven't found any sign that the fix from S88017173 is being backported to the JDK6 codeline upstream....
"

Indeed, applying the patch in http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/c5d869453212 resolves the issue. This is known to affect at least 1.13.1 and 2.4.5. Note, the patch includes a test case but in our openjdk-6 builds it didn't get run as part of the testsuite. I did not investigate why, but it can be run manually with:
$ javac -XDignore.symbol.file GetInstance.java # GetInstance.java from patch
$ java GetInstance

A patched openjdk will exit with '0' while unpatched will throw the
exception.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/1283828/comments/10


** Changed in: icedtea
       Status: Unknown => Confirmed

** Changed in: icedtea
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1283828

Title:
  "Cannot find any  provider supporting RSA/ECB/OAEPPadding" error after
  upgrading to openjdk-6 6b27-1.12.6-1ubuntu0.12.04.4

Status in Iced Tea:
  Confirmed
Status in “openjdk-6” package in Ubuntu:
  Fix Released
Status in “openjdk-7” package in Ubuntu:
  Triaged
Status in “openjdk-6” source package in Lucid:
  Fix Released
Status in “openjdk-6” source package in Precise:
  Fix Released
Status in “openjdk-7” source package in Precise:
  Triaged
Status in “openjdk-6” source package in Quantal:
  Fix Released
Status in “openjdk-7” source package in Quantal:
  Triaged
Status in “openjdk-6” source package in Saucy:
  Fix Released
Status in “openjdk-7” source package in Saucy:
  Triaged
Status in “openjdk-6” source package in Trusty:
  Fix Released
Status in “openjdk-7” source package in Trusty:
  Triaged

Bug description:
  After upgrading the various openjdk-6-* packages to version 6b27-1.12.6-1ubuntu0.10.04.4 on our server, all incoming client connections started failing with the following error message at the top of the stack dump (on the client side).
  javax.xml.ws.soap.SOAPFaultException: java.security.NoSuchAlgorithmException: Cannot find any  provider supporting RSA/ECB/OAEPPadding

  (Previously we were running version 6b27-1.12.5-0ubuntu0.10.04.1 of
  the packages without seeing this problem.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/icedtea/+bug/1283828/+subscriptions


References