• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please anyone can help me to resolving the error " java.lang.illegalargumentexception "

 
kunal kathrotia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
" java.lang.illegalargumentexception entity must be managed to call remove javaranch try merging the detached and try the remove again "

is occuring when i try to remove my authorMaster object from the authorMaster table based on id...... :(
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18108
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Krunal!

Your problem isn't really in JSF. You are obviously working with an ORM, probably JPA, attempting to delete (remove) a row from a database table. However, the object you are attempting to delete is not presently attached to the ORM. So you have to have your JSF UI code call into the persistence code layer and as part of the persistence code, you'll need something like this:

 
kunal kathrotia
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim......

it's my first reply to my first Post...........

n btw i have resolved my problem and thanks for your kind reply hope it will help me in future....

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic