• 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: Newbie : help to customize an D2W freeze component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie : help to customize an D2W freeze component


  • Subject: Re: Newbie : help to customize an D2W freeze component
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 18 Aug 2006 10:11:11 -0700

Do you call deleteObject() anywhere in your code? forgetObject()? It seems to be trying to delete an ExtraitTitre. How does that relate to your upload?

Chuck


On Aug 18, 2006, at 5:54 AM, Gilles MATHURIN wrote:

Hello all

i freeze an edit page in order to allow the upload of a media resource in my database by a WOFileUpload.
I first went in a too complicated way, so i rethink how i could do that with the help of Chuck and R.Walker.


So what i did, is simply freeze the edit page and include an WOFileUpload in it. This WOFileUpload is bound to a NSData variable i created, i also change the enctype of the WOForm containing the newly WOFileUpload.

I didn't know if it should work, but i had a good feeling about this way of doing it.

Unfortunately, i have an error message. On the other hand, this error message is different from my precedents. It seems to deals with the record in the database and the fact that my edit page try to change a record which seems to be inexistant. At least this how i understand it.

Here the stack trace :

Exception occurred while handling request:
java.lang.IllegalStateException: recordDeleteForObject: com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@c18c31 failed to find a snapshot for EO with Global ID:_EOIntegralKeyGlobalID[ExtraitTitre (java.lang.Long)1] that has been deleted from com.webobjects.eocontrol.EOEditingContextcom.webobjects.eocontrol.EOEd itingContext@9bc401. Cannot delete an object that has not been fetched from the database
[2006-08-18 08:30:21 AST] <WorkerThread4> java.lang.IllegalStateException: recordDeleteForObject: com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@c18c31 failed to find a snapshot for EO with Global ID:_EOIntegralKeyGlobalID[ExtraitTitre (java.lang.Long)1] that has been deleted from com.webobjects.eocontrol.EOEditingContextcom.webobjects.eocontrol.EOEd itingContext@9bc401. Cannot delete an object that has not been fetched from the database


Any idea for help ?

Thanks

Regards.

GM


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--

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: 
 >Newbie : help to customize an D2W freeze component (From: Gilles MATHURIN <email@hidden>)

  • Prev by Date: Re: RE Little starter help with instance and action of a WOConponent
  • Next by Date: Re: WWDC Videos?
  • Previous by thread: Newbie : help to customize an D2W freeze component
  • Next by thread: Newbie : need help to customize an D2W freeze component
  • Index(es):
    • Date
    • Thread