• 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
Re: Exception only when framework is embedded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exception only when framework is embedded


  • Subject: Re: Exception only when framework is embedded
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 7 Aug 2008 20:14:21 -0700


On Aug 7, 2008, at 8:07 PM, Mike Schrag wrote:

When the WOCommon framework isn't embedded but is otherwise identical as best I can tell, session() returns a waldo.Session. For some reason, a wocommon.Session is being created rather than a waldo.Session when the WOCommon framework is embedded. WTF?!
Welcome to an awesome bug with framework embedding in 5.3. It's supposed to be the case that the app bundle includes your Resources/ Java jars and the framework bundles include their corresponding embedded framework jars, and the main bundle comes first when classes are resolved by name. It turns out there's a bug in NSBundle that causes embedded framework jars to get loaded into the app bundle, which means that it's a total crapshoot as to which one you get when your app looks up "Session". I submitted a patch for 5.4 for this, but I don't know if it made it in or not. This same bug causes the really common problem of people ending up with a a javax.mail.Session, too.

I think it did not make it into 5.4.2. I just got bit but this the other day after changing to embedded frameworks. Session _and_ Main.



Looks like Chuck got to this first, so follow his advice :)


Always good advice.  :-P


Chuck


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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
  • Follow-Ups:
    • Re: Exception only when framework is embedded
      • From: Mike Schrag <email@hidden>
References: 
 >Exception only when framework is embedded (From: Art Isbell <email@hidden>)
 >Re: Exception only when framework is embedded (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Exception only when framework is embedded
  • Next by Date: Re: Exception only when framework is embedded
  • Previous by thread: Re: Exception only when framework is embedded
  • Next by thread: Re: Exception only when framework is embedded
  • Index(es):
    • Date
    • Thread