14 Jun 2004 19:29
Re: java.security issue (classworlds versioning)
Cool, thanks. I've upgraded Groovy to use 1.0 of classworlds in CVS which should fix this now. On 14 Jun 2004, at 12:21, Stepan Koltsov wrote: > On Mon, Jun 14, 2004 at 11:06:58AM +0100, jastrachan@... wrote: >>>>> Sorry, I meant classworlds. Groovy does not use uberjar. >>>> >>>> so the conclusion is : I've got to dive into classworlds code ? >>>> and find why it fails ? >>> >>> I've spent 5 minutes preparing bug report and found that newer >>> version >>> of classworlds (1.0) has no this bug :-/ >> >> So upgrading from 1.0-rc2 to 1.0 should fix this issue right? > > Yes. > > # cat a.gr > import javax.crypto.*; > println KeyGenerator.getInstance("DES").generateKey(); > # cp ~/.maven/repository/classworlds/jars/classworlds-1.0-rc2.jar > ~/java/groovy-1.0-beta-5/lib/classworlds-1.0-rc2.jar > # groovy a.gr |& head -5 > Caught: org.codehaus.groovy.runtime.InvokerInvocationException: > java.security.NoSuchAlgorithmException: DES KeyGenerator not available > org.codehaus.groovy.runtime.InvokerInvocationException: > java.security.NoSuchAlgorithmException: DES KeyGenerator not available > at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1052) > at groovy.lang.MetaClass.invokeStaticMethod(MetaClass.java:375) > at > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:133) > # cp ~/.maven/repository/classworlds/jars/classworlds-1.0.jar > ~/java/groovy-1.0-beta-5/lib/classworlds-1.0-rc2.jar > # groovy a.gr |& head -5 > com.sun.crypto.provider.DESKey@... > >> I wonder when 1.1 will be out - there's a 1.1-SNAPSHOT which is much >> later. Any classworlder's any more details? > > S. > > James ------- http://radio.weblogs.com/0112098/
RSS Feed