3 Replies Latest reply on Dec 30, 2007 10:36 AM by damianharvey

    Oddness - javax.persistence.EntityNotFoundException


      I'm having one of those days where everything was working and now, inexplicably, it ain't.

      I have a dataTable that is calling a basic Entity remove, but it is generating the error below:

      javax.persistence.EntityNotFoundException: deleted entity passed to persist: [com.blah.entity.PortTradeList#<null>]

      I have then tried using code generated by SeamGen and the same error results (so it's not my dodgy page code at fault). I've then replaced the entities with a version that I knew was working. Same problem.

      I put a debug line directly above the super.remove() and it confirmed that the entity was populated and had an ID.

      Can anyone think what may be causing this? Help much appreciated before I pull out my remaining single hair.