• 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: java.lang.IllegalStateException: error while removing bottom of undo stack
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.lang.IllegalStateException: error while removing bottom of undo stack


  • Subject: Re: java.lang.IllegalStateException: error while removing bottom of undo stack
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Fri, 25 Mar 2011 14:58:19 -0400

We'll give it a shot when we can consistently reproduce the problem.  We see it a lot in our log files but have not been able to reproduce.

Thanks a lot.



On Mar 25, 2011, at 1:55 PM, Chuck Hill wrote:

> I would guess that this problem is due to something in your code that is not right.  I don't think you want to disable undo entirely.  EOEditingContext still uses it, I think.
>
> To reduce memory usage, I have an EOEditingContext subclass that does this:
>
>    public void saveChanges()
>    {
>        super.saveChanges();
>        if (undoManager() != null)
>        {
>            undoManager().removeAllActions();
>        }
>    }
>
> Does that help in your situation at all?
>
>
> Chuck
>
>
> On Mar 25, 2011, at 8:10 AM, Ricardo J. Parada wrote:
>
>> Is it possible to disable undo registration globally?
>>
>> :-)
>>
>>
>>
>> On Mar 24, 2011, at 7:15 PM, Chuck Hill wrote:
>>
>>> I think that should be pretty safe.  :-)
>>>
>>>
>>> On Mar 24, 2011, at 4:14 PM, Ricardo J. Parada wrote:
>>>
>>>>
>>>>
>>>> Not really, I don't think I'm doing anything with the undo stack.
>>>> The only undo that this app may do is editingContext.revert().  Would that be considered as doing something with the undo stack?  :-)
>>>>
>>>> Thanks
>>>> Ricardo
>>>>
>>>>
>>>>
>>>> On Mar 24, 2011, at 6:55 PM, Chuck Hill wrote:
>>>>
>>>>> No, are you doing anything with the undo stack in your code?
>>>>>
>>>>> Chuck
>>>>>
>>>>>
>>>>> On Mar 24, 2011, at 3:45 PM, Ricardo J. Parada wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Is anybody familiar with this stack trace?  :-)
>>>>>>
>>>>>>
>>>>>> java.lang.IllegalStateException: error while removing bottom of undo stack
>>>>>> 	at com.webobjects.foundation.NSUndoManager$_NSUndoStack._removeBottom(NSUndoManager.java:1066)
>>>>>> 	at com.webobjects.foundation.NSUndoManager$_NSUndoStack.push(NSUndoManager.java:1138)
>>>>>> 	at com.webobjects.foundation.NSUndoManager$_NSUndoStack.markEnd(NSUndoManager.java:1256)
>>>>>> 	at com.webobjects.foundation.NSUndoManager.endUndoGrouping(NSUndoManager.java:573)
>>>>>> 	at com.webobjects.foundation.NSUndoManager._processEndOfEventNotification(NSUndoManager.java:375)
>>>>>> 	at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)
>>>>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>> 	at java.lang.reflect.Method.invoke(Method.java:592)
>>>>>> 	at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:358)
>>>>>> 	at com.webobjects.foundation.NSSelector._safeInvokeSelector(NSSelector.java:110)
>>>>>> 	at com.webobjects.foundation.NSDelayedCallbackCenter$NSLightInvocation.invoke(NSDelayedCallbackCenter.java:239)
>>>>>> 	at com.webobjects.foundation.NSDelayedCallbackCenter._eventEnded(NSDelayedCallbackCenter.java:199)
>>>>>> 	at com.webobjects.foundation.NSDelayedCallbackCenter.eventEnded(NSDelayedCallbackCenter.java:162)
>>>>>> 	at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1889)
>>>>>> 	at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2193)
>>>>>> 	at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:339)
>>>>>> 	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:1920)
>>>>>> 	at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1885)
>>>>>> 	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:595)
>>>>>>
>>>>>> Thanks,
>>>>>> Ricardo
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>> --
>>> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
> --
> 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

References: 
 >java.lang.IllegalStateException: error while removing bottom of undo stack (From: "Ricardo J. Parada" <email@hidden>)
 >Re: java.lang.IllegalStateException: error while removing bottom of undo stack (From: Chuck Hill <email@hidden>)
 >Re: java.lang.IllegalStateException: error while removing bottom of undo stack (From: "Ricardo J. Parada" <email@hidden>)
 >Re: java.lang.IllegalStateException: error while removing bottom of undo stack (From: Chuck Hill <email@hidden>)
 >Re: java.lang.IllegalStateException: error while removing bottom of undo stack (From: "Ricardo J. Parada" <email@hidden>)
 >Re: java.lang.IllegalStateException: error while removing bottom of undo stack (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: OT: uk apple store caves in...
  • Next by Date: WOCommunity on GitHub
  • Previous by thread: Re: java.lang.IllegalStateException: error while removing bottom of undo stack
  • Next by thread: To-One relationship pull down display key
  • Index(es):
    • Date
    • Thread