systest job gives OptimisticLockException with oracle DB.

0 views
Skip to first unread message

Nandlalaji Singh

unread,
Oct 21, 2016, 10:31:19 AM10/21/16
to Jenkins Users
Hi 

i am running systest job locally using local oracle setup. It run fine but on jenkins same systest job is failing with following error.

"javax.persistence.OptimisticLockException: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect)".

The thing is that i check the value manual, its unique value and not being used by other test parallelly. Show the logs.

I know we have different approach to resolve that. i.e using Optimistic lock or using @Version. But i am kind of resolving test case and not changing production code.

The thing is why its running fine locally and not on jenkins. Also its giving delete problem with table with join tables.


Please help to resolve that

Regards
Nand


Reply all
Reply to author
Forward
0 new messages