| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi, Michael Müller wrote:
I can confirm that: all my stateless component problems where related to WOComponent calls to pushValuesToParent() performed from calls to performParentAction(String). This is a very nasty bug in WebObjects which can leads to data exchange between threads and sessions in an application instance that allows concurrent request handling. :-(
Exactly.
Yes, this workaround works very well: since I've released this to production, I get no more exceptions and errors with my stateless components. I generally use a WOComponent subclass as superclass of all my components, so it's easier to overload the performParentAction(String) method to fix that: public WOActionResults performParentAction(String actionName) { WOActionResults results; WOComponent parent; parent = parent(); if(parent != null) { if(!isStateless()) { results = super.performParentAction(actionName); } else { results = (WOActionResults)parent.valueForKey(actionName); } } else { throw new IllegalStateException("Can't find a parent for the current component."); } return(results); } Kind regards, -- Francis Labrie Saint-Bruno-de-Montarville, Quebec, Canada |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >RE: Bug in stateless WOComponent management? (From: "Müller, Michael" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.