Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
- Subject: Re: WOBrowser Error java.lang.UnsupportedOperationException: addAll is not a supported operation in com.webobjects.foundation.NSArray
- From: Michael Hast <email@hidden>
- Date: Tue, 06 Sep 2011 08:32:08 -0700
Hi:
We had this same error. And by the sounds of it, you have a similar
setup. WOBrowser 1 is a what I call dependent list. Select a row in the
list, some Ajax gets executed and some other elements on the page
change. Our WOBrowser 1 was a Fiscal Year selector. This is a timing
issue. You would need to cache the list (NSArray) for WOBrowser 1 once
per RR-loop. We overrode appendToResponse and initialized the cached
value of the list there.
The problem for us was that we bound the list binding directly to an EO.
That means that during the RR-loop the list binding changed, from one
array to another.
I hope that helps.
Michael.
On 9/5/2011 12:58 AM, pavan.jayam wrote:
Hi List,
I am using WOBrowser to select multiple objects.
For ex: WOBrowser 1 contains state objects, if any of the state
selected(moved to WOBrowser2 ) i am displaying Districts for that state
in the WOBrowser 3. To move state object from WOBrowser1 to WOBrowser2 i
am using WOImageButton.
First time i am able to select/move a single or multiple states from
WOBrowser1 to WOBrowser2, but after displaying districts in WOBrowser3 ,
i tried to select/move a single district or if i tried to select/move
another state from WOBrowser1 to WOBrowser2, it throws the following
exception:
java.lang.UnsupportedOperationException: addAll is not a supported
operation in com.webobjects.foundation.NSArray
If i am not displaying district WOBrowsers on selecting the state then i
am able to select/move single or multiple states from WOBrowser1 to
WOBrowser2 and viceversa.
Exception : java.lang.UnsupportedOperationException: addAll is not a
supported operation in com.webobjects.foundation.NSArray
[2011-9-5 3:18:43 EDT] <WorkerThread13>
java.lang.UnsupportedOperationException: addAll is not a supported
operation in com.webobjects.foundation.NSArray
at com.webobjects.foundation.NSArray.addAll(NSArray.java:917)
at
er.extensions.foundation.ERXPatcher$DynamicElementsPatches$Browser.setSelectionListInContext(ERXPatcher.java:533)
at
com.webobjects.appserver._private.WOBrowser._fastTakeValuesFromRequest(WOBrowser.java:123)
at
com.webobjects.appserver._private.WOBrowser.takeValuesFromRequest(WOBrowser.java:138)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
at
com.webobjects.appserver._private.WOConditional.takeValuesFromRequest(WOConditional.java:79)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
at
er.extensions.components._private.ERXWOForm.takeValuesFromRequest(ERXWOForm.java:311)
at
com.webobjects.appserver._private.WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
at
com.webobjects.appserver._private.WODynamicGroup.takeValuesFromRequest(WODynamicGroup.java:93)
at
com.webobjects.appserver.WOComponent.takeValuesFromRequest(WOComponent.java:1051)
at
er.extensions.components.ERXComponent.takeValuesFromRequest(ERXComponent.java:93)
at
com.webobjects.appserver.WOSession.takeValuesFromRequest(WOSession.java:1331)
at
er.extensions.appserver.ERXSession.takeValuesFromRequest(ERXSession.java:541)
at
com.webobjects.appserver.WOApplication.takeValuesFromRequest(WOApplication.java:1724)
at
er.extensions.appserver.ajax.ERXAjaxApplication.takeValuesFromRequest(ERXAjaxApplication.java:78)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:199)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
at
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:619)
Please suggest how to use more than 2 WOBrowsers in the same page.
Regards,
JPK.
_______________________________________________
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
--
Tel: (602) 279-4600 ext: 635
Desert Sky Software: www.desertsky.com
Specializing in the Development and Hosting of
e-Business Applications.
_______________________________________________
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