Java Mailing List Archive

Home » user.castor »

[castor-user] LockNotGrantedException only with Java 7

Daniel Bick


Author LoginPost Reply

I am using Castor JDO in my application for some years, but now we are stuck on a problem while migrating the application to Java 7:

Every time we try to commit our changes back to the database, Castor gives me a "LockNotGrantedException", caused by a time-out in class "org.exolab.castor.persist.ObjectLock". After some analysis and debugging, we are shure that there are no locks on the database at this time.

The problem is, this only happens with Java 7. Rolling back to Java 6 and we will never receive this error message.

Do you know this problem or are there some hints around how to avoid this?

We are using Castor 1.3.2 (1.3.3 rc1 also shows this behaviour) on an Oracle database.


Daniel Bick

--------------------------------------------------------------------- To unsubscribe from this list, please visit:
©2008 - Jax Systems, LLC, U.S.A.