[
https://issues.apache.org/jira/browse/CAMEL-12772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-12772.
---------------------------------
Fix Version/s: 3.x
Resolution: Workaround
camel-crypto-cms is deprecated and removed in 3.x
> camel-crypto-cms tests fail with OpenJDK
> ----------------------------------------
>
> Key: CAMEL-12772
> URL: https://issues.apache.org/jira/browse/CAMEL-12772
> Project: Camel
> Issue Type: Test
> Components: camel-crypto-cms
> Reporter: Tadayoshi Sato
> Priority: Minor
> Fix For: 3.x
>
>
> 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:
> {code}
> $ 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)
> {code}
> Test output:
> {code}
> [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
> ...
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)