-
1. Re: illegal state
ddurst1 Mar 13, 2003 12:50 PM (in response to benholland)Well I have read numerous posts on this topic and I have experienced it every once and a while.
Here is my suggestion from what I have read (BTW I am not a expert).
Check your setEntityContext, make sure you are actually setting your contained EntityContext such as the following:
public void setEntityContext(EntityContext ctx) { this.ctx = ctx; } -
2. Re: illegal state
benholland Mar 13, 2003 12:59 PM (in response to benholland)mmmmmmmmm, no checked that.
-
3. Re: illegal state
benholland Mar 14, 2003 4:44 AM (in response to benholland)i noticed that the entity context is being set twice?
09:54:28,936 INFO [STDOUT] setEntityContext called
09:54:32,655 INFO [STDOUT] setEntityContext called
09:54:32,655 INFO [STDOUT] ejbActivate() called.
09:54:33,092 INFO [STDOUT] ejbLoad() called.
09:54:33,170 ERROR [BeanLock] removing bean lock and
has anyone seen this before?? -
4. Re: illegal state
benholland Mar 14, 2003 5:02 AM (in response to benholland)I am calling the CMP bean from a remote client.
I get the above error if I have the transaction attribute
of the assembly descriptor set Required of Requires new.
If I start a user transaction from the remote client it still fails with the above error.
Required fails
Requires New fails
Supports succeeds.