Menu

#24 Exception while saving data

1.4.0
closed-invalid
nobody
framework (5)
5
2010-08-02
2010-08-02
Anonymous
No

In Netbeans ,created a simple entity class which implements Persistable. I get the following exception while trying to save:

net.sourceforge.floggy.persistence.FloggyException: You are trying to access a Persistable (Foodbean) entity that was not migrate. Please execute a migration first.
at net.sourceforge.floggy.persistence.impl.PersistableManagerImpl.getRecordStore(+97)
at net.sourceforge.floggy.persistence.impl.PersistableManagerImpl.getRecordStore(+22)
at net.sourceforge.floggy.persistence.impl.PersistableManagerImpl.save(+9)

Discussion

  • Thiago Leão Moreira

    This happens because your persistence class structure have changed between application invocations. You probably added/removed a field or changed its type from one invocation to another. If you are in developing mode you can delete your RMS files and restart your application to fix the issue. Usually the RMS files are stored at ${user.home}/j2mewtk. If you are on deployment mode you have to take in account these changes and build code to migrate your persistence class from the old structure to the new one. Check out some samples at http://floggy.sourceforge.net/migration-package.html

     
  • Thiago Leão Moreira

    • status: open --> closed-invalid
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.