• 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
Error When Deleting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error When Deleting


  • Subject: Error When Deleting
  • From: Gustavo Pizano <email@hidden>
  • Date: Fri, 8 Aug 2008 22:42:24 -0400

Hello, Well Today's error its this one
java.lang.IllegalStateException: Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext, object: , databaseContext: com.webobjects.eoaccess.EODatabaseContext@f4b65d, object's editingContext: er.extensions.eof.ERXEC@d4ab0e, databaseContext's active editingContext: er.extensions.eof.ERXEC@62f58e
Reason:Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext, object: <com.nhlpm.eo.DisplayBoard pk:"1000012">, databaseContext: com.webobjects.eoaccess.EODatabaseContext@f4b65d, object's editingContext: er.extensions.eof.ERXEC@d4ab0e, databaseContext's active editingContext: er.extensions.eof.ERXEC@62f58e

What im trying to do its to delete a record form the database, what Im doing its the following:

  public DisplayAll doDelete(){
    ERXEC myEditingContext = (ERXEC) session().defaultEditingContext();
        myEditingContext.revert();
        myEditingContext.deleteObject(displayBoard());
        myEditingContext.saveChanges();

    

    return (DisplayAll)pageWithName("DisplayAll");
    }
what's going on?

Regards

Gustavo

 _______________________________________________
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

  • Follow-Ups:
    • Re: Error When Deleting
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Inheritance and relationships
  • Next by Date: Re: Error When Deleting
  • Previous by thread: Re: Entity Modeler: Reverse engineering of a FrontBase db?
  • Next by thread: Re: Error When Deleting
  • Index(es):
    • Date
    • Thread