NontransactionalWrite error using Collections.sort .



i started to use ObjectDB today and i'm having problem using command Collections.sort in persisted object. 

Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: br.ufpa.linc.MetriX.api.model.Interface#105 (error 635)


I don't want to modifi de object in DB, just sort it to show at the moment.

someone can help me ?



David Bentolila




This exception is thrown when a managed entity object is modified and no transaction is active. Please follow the exception stack trace and check your code - you might find that your compareTo method changes a persistent field in some entity.

If you sure that your entity is not modified - please provide some test case that demonstrates this exception.


ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login