You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2009/08/06 23:00:33 UTC

[Db-derby Wiki] Update of "JunitVmIssues" by DagWanvik

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DagWanvik:
http://wiki.apache.org/db-derby/JunitVmIssues

------------------------------------------------------------------------------
  export IBM_JAVA_OPTIONS="-Xifa:off"
  }}}
  
+ == Sun Java 1.4.2, 1.5 and 1.6: unlimited cryptography policies ==
+ 
+ By default, in the Sun Java run-times, due to import control
+ restrictions, the version of JCE policy files that are bundled in the
+ JDK(TM) 6 environment, allow "strong", but limited cryptography to be
+ used. Some Derby tests, as of writing, only "EncryptionAESTest", will skip
+ some test cases unless the unlimited cryptography policy files have
+ been installed. To determine whether your JRE have the limited policy
+ files, you can run that test in this way:
+ {{{
+      java -Dderby.tests.trace=true  junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.store.EncryptionAESTest
+ }}}
+ If you see something like this:
+ {{{
+     :
+     testEncryptionKeyLengths no unrestricted policy jars; cannot test AES encryption with encryptionKeyLengths 192 nor 256
+     no unrestricted policy jars; cannot test AES encryption with encryptionKeyLengths 192 nor 256
+ }}}
+ then you lack the unlimited policy files. You can download and install
+ these files by heading to the following URL and follow the instructions
+ in the bundle (this link currently gives Java 1.6 version; you can
+ also find such bundles for Java 1.4.2 and Java 1.5 if you want to run
+ tests with those versions):
+ 
+ http://java.sun.com/javase/downloads/index.jsp
+ 
+ Once there, click the "Download" button in the section labelled: "Other
+ Downloads Java Cryptography Extension (JCE) Unlimited Strength
+ Jurisdiction Policy Files 6".
+