[Persistence, JBoss/CMP, Hibernate, Database] - Re: help with optimistic locking
by balamg
Furhter debugging resulted in this observation:
in other than lockmode=write, the transaction gets committed.
in the lockmode=write, this is what is happening:
java.lang.NullPointerException
2006-08-01 13:34:58,765 ERROR [STDERR] at org.hibernate.persister.entity.AbstractEntityPersister.lock(AbstractEntityPersister.java:1282)
2006-08-01 13:34:58,765 ERROR [STDERR] at org.hibernate.event.def.AbstractLockUpgradeEventListener.upgradeLock(AbstractLockUpgradeEventListener.java:88)
2006-08-01 13:34:58,765 ERROR [STDERR] at org.hibernate.event.def.DefaultLockEventListener.onLock(DefaultLockEventListener.java:64)
2006-08-01 13:34:58,765 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireLock(SessionImpl.java:586)
2006-08-01 13:34:58,765 ERROR [STDERR] at org.hibernate.impl.SessionImpl.lock(SessionImpl.java:578)
2006-08-01 13:34:58,765 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.lock(AbstractEntityManagerImpl.java:337)
2006-08-01 13:34:58,765 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManager.lock(TransactionScopedEntityManager.java:101)
any known workarounds ? fixes ? patches or is it a wrong usage ?
Thank You
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962086#3962086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962086
18 years, 5 months