Looking at fisheye (current rev, not sure which rev was RC6):

Looks like AbstractEntityManager::lock(entity,LockModeType)
calls getLockMode, which translates LockModeType.WRITE -> LockMode.FORCE

But AbstractEntityPersister, who takes the Hib LockMode instance, has a static 
map of registered types which include READ, UPGRADE and UPGRADE_NOWAIT.

It's missing FORCE

So it gets the NPE.  This is assuming we're looking at the right stuff (line 
numbers are definately wrong, but function signatures seem correct)

So I suppose what I need is either source (to fix it), or suggestions on a work 
around (we need pesimistic locking in this code, and em.lock seems to be the 
only way to accomplish it)


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940786#3940786

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940786


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to