Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12772

camel-crypto-cms tests fail with OpenJDK

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Workaround
    • None
    • 3.x
    • camel-crypto-cms
    • None
    • Unknown

    Description

      I am not certain if it's a test bug or expected behaviour but when I run mvn clean install in camel-crypto-cms with OpenJDK 8, the tests always fail. They pass when I run it with Oracle JDK.

      I found a similar issue with WildFly-Camel as well:
      https://github.com/wildfly-extras/wildfly-camel/issues/2245

      My JDK version:

      $ java -version
      openjdk version "1.8.0_181"
      OpenJDK Runtime Environment (build 1.8.0_181-b13)
      OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
      

      Test output:

      [ERROR] Tests run: 15, Failures: 0, Errors: 15, Skipped: 0, Time elapsed: 1.38 s <<< FAILURE! - in org.apache.camel.component.crypto.cms.ComponentTest
      [ERROR] wrongOperation(org.apache.camel.component.crypto.cms.ComponentTest)  Time elapsed: 0.292 s  <<< ERROR!
      org.apache.camel.component.crypto.cms.exception.CryptoCmsException: Problem during generating the keystore
      Caused by: java.security.cert.CertificateParsingException: java.io.IOException: Unknown named curve: 1.3.132.0.37
      Caused by: java.io.IOException: Unknown named curve: 1.3.132.0.37
      
      [ERROR] execute(org.apache.camel.component.crypto.cms.ComponentTest)  Time elapsed: 0.04 s  <<< ERROR!
      org.apache.camel.component.crypto.cms.exception.CryptoCmsException: Problem during generating the keystore
      Caused by: java.security.cert.CertificateParsingException: java.io.IOException: Unknown named curve: 1.3.132.0.37
      Caused by: java.io.IOException: Unknown named curve: 1.3.132.0.37
      
      [ERROR] orignatorUnprotectedAttributes(org.apache.camel.component.crypto.cms.ComponentTest)  Time elapsed: 0.107 s  <<< ERROR!
      org.apache.camel.component.crypto.cms.exception.CryptoCmsException: Problem during generating the keystore
      Caused by: java.security.cert.CertificateParsingException: java.io.IOException: Unknown named curve: 1.3.132.0.37
      Caused by: java.io.IOException: Unknown named curve: 1.3.132.0.37
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tadayosi Tadayoshi Sato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: