[ 
https://issues.apache.org/jira/browse/FOP-2653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15541805#comment-15541805
 ] 

simon steiner commented on FOP-2653:
------------------------------------

Can you install JCE Unlimited Strength Jurisdiction Policy files 

> PDFEncryptionJCETestCase doesn't pass
> -------------------------------------
>
>                 Key: FOP-2653
>                 URL: https://issues.apache.org/jira/browse/FOP-2653
>             Project: FOP
>          Issue Type: Bug
>         Environment: Windows 7, jdk 1.8
>            Reporter: Stepan Yakovenko
>
> Download lastest apache-fop, mvn install and you will get:
> Tests run: 11, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.11 sec <<< 
> FAILURE! - in org.apache.fop.pdf.PDFEncryptionJCETestCase
> testAES256(org.apache.fop.pdf.PDFEncryptionJCETestCase)  Time elapsed: 0.055 
> sec  <<< ERROR!
> java.lang.IllegalStateException: java.security.InvalidKeyException: Illegal 
> key size
>       at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
>       at javax.crypto.Cipher.implInit(Cipher.java:805)
>       at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
>       at javax.crypto.Cipher.init(Cipher.java:1396)
>       at javax.crypto.Cipher.init(Cipher.java:1327)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCE.initCipher(PDFEncryptionJCE.java:789)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCE.encryptWithKey(PDFEncryptionJCE.java:759)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCE.access$800(PDFEncryptionJCE.java:43)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCE$Rev5Engine.computeUEValue(PDFEncryptionJCE.java:578)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCE$Rev5Engine.run(PDFEncryptionJCE.java:476)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCE$EncryptionInitializer.init(PDFEncryptionJCE.java:84)
>       at org.apache.fop.pdf.PDFEncryptionJCE.<init>(PDFEncryptionJCE.java:682)
>       at org.apache.fop.pdf.PDFEncryptionJCE.make(PDFEncryptionJCE.java:696)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCETestCase.createEncryptionObject(PDFEncryptionJCETestCase.java:611)
>       at 
> org.apache.fop.pdf.PDFEncryptionJCETestCase.testAES256(PDFEncryptionJCETestCase.java:468)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to