• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Upgrade to leopard causes ERXBlowfish exception (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Upgrade to leopard causes ERXBlowfish exception (SOLVED)


  • Subject: Upgrade to leopard causes ERXBlowfish exception (SOLVED)
  • From: Simon McLean <email@hidden>
  • Date: Sun, 16 Mar 2008 23:38:40 +0000

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: WWDC 08
  • Next by Date: Most efficient way to iterate through an NSArray
  • Previous by thread: Re: Changing image onMouseOver of WOHyperLink
  • Next by thread: Most efficient way to iterate through an NSArray
  • Index(es):
    • Date
    • Thread