Hi All -

I've been tinkering with upgrading to leopard over the weekend. I've updated one machine, then run the woswitch.sh script so we can continue developing under 5.3.3. I had to do a bit of build path jigging to get things working again, but pretty much all our code still seems to work ok.

We were getting an exception using ERXBlowfishCrypter which i managed to fix, but thought I would post the fix here because i'm guessing it will affect others moving to leopard.

This code:

ERXBlowfishCrypter bfc = new ERXBlowfishCrypter();
String encryptedPassword = bfc.encrypt(password);

Caused this exception:

STACK TRACE:
java.lang.reflect.InvocationTargetException
at com .webobjects .appserver ._private .WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:250) at com .webobjects .appserver ._private .WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:145) at er .extensions .ERXDirectActionRequestHandler .handleRequest(ERXDirectActionRequestHandler.java:82) at com .webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 1306) at er.extensions.ERXApplication.dispatchRequest(ERXApplication.java: 1439) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) at com .webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 254)
        at java.lang.Thread.run(Thread.java:613)
Caused by: java.security.InvalidKeyException: Illegal key size or default parameters
        at javax.crypto.Cipher.a(DashoA12275)
        at javax.crypto.Cipher.a(DashoA12275)
        at javax.crypto.Cipher.a(DashoA12275)
        at javax.crypto.Cipher.init(DashoA12275)
        at javax.crypto.Cipher.init(DashoA12275)
at er .extensions .ERXAbstractBlowfishCrypter .createBlowfishCipher(ERXAbstractBlowfishCrypter.java:74) at er .extensions .ERXAbstractBlowfishCrypter .encryptCipher(ERXAbstractBlowfishCrypter.java:93) at er .extensions .ERXAbstractBlowfishCrypter.encrypt(ERXAbstractBlowfishCrypter.java:209) at com .clicktravel .direct.app.Application.validateUsernamePassword(Application.java:145)

To fix it I had to download the latest "Java(TM) Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 5.0" and stick the contents in /System/Library/Frameworks/JavaVM.framework/ Versions/1.5.0/Home/lib/security

Simon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to