Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

build help: cxf.rt.rs.security.jose test failures

$
0
0
Git cloned latest from https://git-wip-us.apache.org/repos/asf/cxf.git
Building on Win7 using JDK8 64 bit and latest maven2.
Calling maven from top-level cxf dir
mvn -Pfastinstall completes sucessfully, but when run with tests enabled,
the following tests in cxf.rt.rs.security.jose fail:
JweCompactReaderWriterTest.testEncryptDecryptAesGcmWrapA128CBCHS256:134 »
Security
JweCompactReaderWriterTest.testEncryptDecryptAesWrapA128CBCHS256:111 »
Security

with the following errors
java.lang.SecurityException: java.lang.SecurityException:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
AES/CBC/PKCS7Padding
at javax.crypto.Cipher.getInstance(Cipher.java:535)
at
org.apache.cxf.common.util.crypto.CryptoUtils.initCipher(CryptoUtils.java:522)
at
org.apache.cxf.common.util.crypto.CryptoUtils.processBytes(CryptoUtils.java:487)
at
org.apache.cxf.common.util.crypto.CryptoUtils.encryptBytes(CryptoUtils.java:418)
at
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption.encrypt(AbstractJweEncryption.java:97)
at
org.apache.cxf.rs.security.jose.jwe.JweCompactReaderWriterTest.testEncryptDecryptAesGcmWrapA128CBCHS256(JweCompactReaderWriterTest.java:134)

testEncryptDecryptAesWrapA128CBCHS256(org.apache.cxf.rs.security.jose.jwe.JweCompactReaderWriterTest)
Time elapsed: 0.008 sec <<< ERROR!
java.lang.SecurityException: java.lang.SecurityException:
java.security.NoSuchAlgorithmException: Cannot find any provider supporting
AES/CBC/PKCS7Padding
at javax.crypto.Cipher.getInstance(Cipher.java:535)
at
org.apache.cxf.common.util.crypto.CryptoUtils.initCipher(CryptoUtils.java:522)
at
org.apache.cxf.common.util.crypto.CryptoUtils.processBytes(CryptoUtils.java:487)
at
org.apache.cxf.common.util.crypto.CryptoUtils.encryptBytes(CryptoUtils.java:418)
at
org.apache.cxf.rs.security.jose.jwe.AbstractJweEncryption.encrypt(AbstractJweEncryption.java:97)
at
org.apache.cxf.rs.security.jose.jwe.JweCompactReaderWriterTest.testEncryptDecryptAesWrapA128CBCHS256(JweCompactReaderWriterTest.java:111)

I've installed the JCE unlimited length jars into my
$JAVA_HOME$\lib\security and tried again to no avail - could this be a
bouncy castle problem?

I need to run the tests as I wish to use Apache CXF as one of my test cases
for my test prioritisation research.

Many thanks,
Jon

Viewing all articles
Browse latest Browse all 5648

Trending Articles