• 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
IllegalStateException when a component has a ref to a deleted EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IllegalStateException when a component has a ref to a deleted EO


  • Subject: IllegalStateException when a component has a ref to a deleted EO
  • From: Fabrice Pipart <email@hidden>
  • Date: Fri, 9 Feb 2007 16:10:35 +0100

Hi !

If I have an array of EOs as a component instance variable containing EOs I fetch in its constructor.
If the user on that component stays there for 2 mins.
If in the meantime a background thread deleted the EO.
If now the user does an action in the component that returns null (we stay in the same component)
Then I get an IllegalStateException in the appendToResponse of the page.

I understand that this is quite normal, no doubt about it.
But now I would like to recover from that "error".
I can catch the exception. Sure !
But what do I do then?
If in the catch I try to refetch some data, what do I call then?
self.appendToResponse again? No : if the exception was raised because of object I did not refresh, I will loop.
super.appendToResponse ? No : that could mean calling it twice and could lead to having the html twice in the page generated
response.setStatus(302) ? No : I could loop too...

I am sure this is quite a usual problem but I can't find a logical solution.
Did I miss something?

Regards

Fabrice Pipart


www.easyshadow.com


International Corporate Consulting

Palais de la Scala

1 avenue Henri Dunant

Suite 1155

MC - 98000 Monaco


Skype: fabrice.pipart

Tel.  +377 97 98 21 04 (direct)

Fax. +377 97 70 88 07



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Help please: ClassCastException during appendToResponse
  • Next by Date: java.net.SocketException: Connection reset errors
  • Previous by thread: Fwd: AjaxDroppable
  • Next by thread: java.net.SocketException: Connection reset errors
  • Index(es):
    • Date
    • Thread