Intermittent Exception "Attempt to update types in read only mode"


I have a master/slave(s) setup and I am finding on the slaves that the slave client will get this message when trying to establish an EntityManager to the slave:

Exception in thread "main" [ObjectDB 2.4.1_06] javax.persistence.PersistenceException
Attempt to update types in read only mode (error 614)
        at com.objectdb.jpa.EMF.createEntityManager(
        at com.x.test.Test.<init>(
        at com.x.Main.start(
        at com.x.Main.main(
Caused by: com.objectdb.o.UserException: Attempt to update types in read only mode
        at com.objectdb.o.MSG.d(
        at com.objectdb.o.SHN.K(

The weird part is if I restart the slave DB then I can connect no problems and everything works fine. Replication between the DB's is working fine and I see no errors in the logs. I can replicate this problem everytime and restarting the DB will resolve the issue everytime, i've checked the user I am connecting with has "Access" only and I would assume if it was a configuration problem it would either work or it wouldn't, this seems buggy.

Anyone else seen similar?

This is using 2.4.1_06


This seems to be reported as issue #412.

ObjectDB Support

Ah yes, this does sound like it. Thanks.