Hi Chris,

Am 05.01.2019 um 22:25 schrieb Christopher Schultz:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

Hmm... this my fault. The EncryptInterceptor tests pass on my local
machine but not on the buildbot server, apparently.

How can I get the log file from the test failure? junit's stdout isn't
enough.

Not the answer to your question, but the test fails for me as well - if I run them using Java 7. For 8 they run fine.

Errors with Java 7 (same errors for all three connectors, I get the errors on Solaris and eg. on RHEL 7 using Oracle HotSpot JDK 1.7.80):

Testsuite: org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor
Tests run: 18, Failures: 0, Errors: 3, Skipped: 2, Time elapsed: 2.375 sec
------------- Standard Error -----------------
06-Jan-2019 15:20:11.215 SEVERE [main] org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.sendMessage Failed to encrypt message 06-Jan-2019 15:20:11.252 SEVERE [main] org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.sendMessage Failed to encrypt message
File message.bin does not exist. Skipping test.
------------- ---------------- ---------------

Testcase: test192BitKey took 1.281 sec
        Caused an ERROR
java.security.InvalidKeyException: Illegal key size; No faulty members identified. org.apache.catalina.tribes.ChannelException: java.security.InvalidKeyException: Illegal key size; No faulty members identified. at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.sendMessage(EncryptInterceptor.java:130) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.roundTrip(TestEncryptInterceptor.java:221) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.roundTrip(TestEncryptInterceptor.java:210) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.test192BitKey(TestEncryptInterceptor.java:185)
Caused by: java.security.InvalidKeyException: Illegal key size
        at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1029)
        at javax.crypto.Cipher.init(Cipher.java:1371)
        at javax.crypto.Cipher.init(Cipher.java:1308)
at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$BaseEncryptionManager.encrypt(EncryptInterceptor.java:499) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$BaseEncryptionManager.access$000(EncryptInterceptor.java:359) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.sendMessage(EncryptInterceptor.java:117)

Testcase: test256BitKey took 0.003 sec
        Caused an ERROR
java.security.InvalidKeyException: Illegal key size; No faulty members identified. org.apache.catalina.tribes.ChannelException: java.security.InvalidKeyException: Illegal key size; No faulty members identified. at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.sendMessage(EncryptInterceptor.java:130) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.roundTrip(TestEncryptInterceptor.java:221) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.roundTrip(TestEncryptInterceptor.java:210) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.test256BitKey(TestEncryptInterceptor.java:199)
Caused by: java.security.InvalidKeyException: Illegal key size
        at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1029)
        at javax.crypto.Cipher.init(Cipher.java:1371)
        at javax.crypto.Cipher.init(Cipher.java:1308)
at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$BaseEncryptionManager.encrypt(EncryptInterceptor.java:499) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$BaseEncryptionManager.access$000(EncryptInterceptor.java:359) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.sendMessage(EncryptInterceptor.java:117)

...
Testcase: testGCM took 0.007 sec
        Caused an ERROR
Failed to initialize EncryptInterceptor; No faulty members identified.
org.apache.catalina.tribes.ChannelException: Failed to initialize EncryptInterceptor; No faulty members identified. at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.start(EncryptInterceptor.java:84) at org.apache.catalina.tribes.group.interceptors.TestEncryptInterceptor.testGCM(TestEncryptInterceptor.java:272) Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/GCM/PKCS5Padding
        at javax.crypto.Cipher.getInstance(Cipher.java:529)
at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$BaseEncryptionManager.createCipher(EncryptInterceptor.java:440) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$BaseEncryptionManager.<init>(EncryptInterceptor.java:400) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor$GCMEncryptionManager.<init>(EncryptInterceptor.java:589) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.createEncryptionManager(EncryptInterceptor.java:345) at org.apache.catalina.tribes.group.interceptors.EncryptInterceptor.start(EncryptInterceptor.java:80)
Caused by: java.security.NoSuchAlgorithmException: Unsupported mode GCM
        at sun.security.pkcs11.P11Cipher.engineSetMode(P11Cipher.java:202)
        at javax.crypto.Cipher$Transform.setModePadding(Cipher.java:362)
        at javax.crypto.Cipher.getInstance(Cipher.java:522)
...

The first two errors can be fixed by installing the "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files" for Java 7. The third one is probably due to the use of an algorithm that's simply not available for the latest free Java 7.

Probably the build slave observed the same problem(s).

Regards,

Rainer

On 1/5/19 16:14, build...@apache.org wrote:
The Buildbot has detected a new failure on builder tomcat-85-trunk
while building . Full details are available at:
https://ci.apache.org/builders/tomcat-85-trunk/builds/1594

Buildbot URL: https://ci.apache.org/

Buildslave for this Build: silvanus_ubuntu

Build Reason: The AnyBranchScheduler scheduler named
'on-tomcat-85-commit' triggered this build Build Source Stamp:
[branch tomcat/tc8.5.x/trunk] 1850509 Blamelist: schultz

BUILD FAILED: failed compile_1

Sincerely, -The Buildbot

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to