linkedin / linkedin/ambry

Build failure in freshly checked-out copy.

Open
#767 3 comments 0 reactions 1 assignee View on GitHub

@nsivabalan is already working on this.

Since Sep 24, 2017.

bug
Dominant language
Java
Stars
1.8k
Forks
298
Avg merge
21h 43m
Merged PRs (30d)
9

Description

java version "1.8.0_144"

git clone ***
cd ambry
./gradlew clean && ./gradlew build

com.github.ambry.router.GCMCryptoServiceTest > testEncryptDecryptKeys FAILED
    java.security.GeneralSecurityException: Exception thrown while encrypting data
        at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:77)
        at com.github.ambry.router.GCMCryptoService.encryptKey(GCMCryptoService.java:103)
        at com.github.ambry.router.GCMCryptoService.encryptKey(GCMCryptoService.java:41)
        at com.github.ambry.router.GCMCryptoServiceTest.testEncryptDecryptKeys(GCMCryptoServiceTest.java:76)

        Caused by:
        java.security.InvalidKeyException: Illegal key size
            at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
            at javax.crypto.Cipher.init(Cipher.java:1393)
            at javax.crypto.Cipher.init(Cipher.java:1327)
            at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:69)
            ... 3 more

com.github.ambry.router.GCMCryptoServiceTest > testEncryptDecryptBytes FAILED
    java.security.GeneralSecurityException: Exception thrown while encrypting data
        at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:77)
        at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:41)
        at com.github.ambry.router.GCMCryptoServiceTest.testEncryptDecryptBytes(GCMCryptoServiceTest.java:54)

        Caused by:
        java.security.InvalidKeyException: Illegal key size
            at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
            at javax.crypto.Cipher.init(Cipher.java:1393)
            at javax.crypto.Cipher.init(Cipher.java:1327)
            at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:69)
            ... 2 more

com.github.ambry.router.GCMCryptoServiceTest > testEncryptDecryptKeysDiffIvSize FAILED
    java.security.GeneralSecurityException: Exception thrown while encrypting data
        at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:77)
        at com.github.ambry.router.GCMCryptoService.encryptKey(GCMCryptoService.java:103)
        at com.github.ambry.router.GCMCryptoService.encryptKey(GCMCryptoService.java:41)
        at com.github.ambry.router.GCMCryptoServiceTest.testEncryptDecryptKeysDiffIvSize(GCMCryptoServiceTest.java:99)

        Caused by:
        java.security.InvalidKeyException: Illegal key size
            at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
            at javax.crypto.Cipher.init(Cipher.java:1393)
            at javax.crypto.Cipher.init(Cipher.java:1327)
            at com.github.ambry.router.GCMCryptoService.encrypt(GCMCryptoService.java:69)
            ... 3 more

138 tests completed, 3 failed
:ambry-router:unitTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ambry-router:unitTest'.
> There were failing tests. See the report at: file:///Users/m.xia/study/ambry/ambry-router/build/reports/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 53.542 secs

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.