Bugs item #589393, was opened at 2002-07-31 22:07
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=589393&group_id=22866

Category: JBossServer
Group: v3.0 Rabbit Hole
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Qiming He (qiminghe)
>Assigned to: Adrian Brock (ejort)
Summary: BMP update/remove: removing bean lock and it has tx set!

Initial Comment:

When do BMP update/remove get error like:
"removing bean lock and it has tx set!"

I have two posts on this bug on jboss.com's forum
http://www.jboss.org/forums/thread.jsp?
forum=46&thread=18261
http://www.jboss.org/forums/thread.jsp?
forum=46&thread=17974

Some one mentioned
to use PK-wrapper class instead of Integer class. I try it.
The same problem. I generate almost all code by 
JBuilder 7.


Qiming


----------------execute method in session bean-------------------
-
public void execute() {
try{ 
InitialContext ctx=new InitialContext();
myHome=(MytmpHome)ctx.lookup
("java:comp/env/ejb/Mytmp");
Mytmp s=myHome.findByPrimaryKey(new MytmpPK
(new Integer(2))); 
s.setSesDuration(new Integer(321));
//s.remove(); //does not work either.
//myHome.revmove(new MytmpPK(new Integer
(2))); //this works
}catch(Exception e){
e.printStackTrace();
}
---------------------PK class----------------------------
package bmptest2;

import java.io.*;

public class MytmpPK implements Serializable {


public Integer subid;

public MytmpPK() {
}

public MytmpPK(Integer subid) {
this.subid = subid;
}
public boolean equals(Object obj) {
if (obj != null) {
if (this.getClass().equals(obj.getClass())) {
MytmpPK that = (MytmpPK) obj;
return (((this.subid == null) && (that.subid == null)) || 
(this.subid != null && this.subid.equals(that.subid)));
}
}
return false;
}
public int hashCode() {
return subid.hashCode();
}
} 

----------------------------------------------------------------------

>Comment By: Adrian Brock (ejort)
Date: 2002-10-15 13:08

Message:
Logged In: YES 
user_id=9459

This was due to a race condition in passivation,
fix applied to jboss-3.0.4rc1 in CVS

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=589393&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to