We just upgraded to EJB3 RC6 and are now getting NPEs in 
org.hibernate.persister.entity.AbstractEntityPersister.lock(AbstractEntityPersister.java:1282)

This occurs while calling em.lock(obj)

adding debugging to our code, we have verified that "obj" is not null, so we're 
not sure whats going on (worked fine with RC5)

Is there a place to get exact source for RC6?  It could easily be as simple as 
insufficient tags on the class now, but we can't tell what line 1282 is trying 
to do to determine if that's the problem.

More specifically, it's
java.lang.NullPointerException
        at 
org.hibernate.persister.entity.AbstractEntityPersister.lock(AbstractEntityPersister.java:1282)
        at 
org.hibernate.event.def.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:88)
        at 
org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEventListener.java:64)
        at org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:583)
        at org.hibernate.impl.SessionImpl.lock(SessionImpl.java:575)
        at 
org.hibernate.ejb.AbstractEntityManagerImpl.lock(AbstractEntityManagerImpl.java:341)
        at 
org.jboss.ejb3.entity.TransactionScopedEntityManager.lock(TransactionScopedEntityManager.java:101)

And it occurs within a @Tx(TxType.REQUIRESNEW) (we don't use ejb3 transaction 
annotations since they don't take effect on internal calls in an ejb)

Ideas?

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

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


-------------------------------------------------------
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