Re: [mdr-users] MDR storage federation
Martin Matula <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
What you want is possible, but you need to set the storageID for the main storage explicitly (using a property). Its because the storageID is by default generated randomly (UUID) thus each main storage has different UUID and the partitions that were created with one storage do not work with other main storage because they reference the storage using its UUID. To specify UUID explicitly, you need to set MDRStorageProperty.org.netbeans.mdr.persistence.btreeimpl.uuid system property to some UUID (same format as in MOFID without the increment at the end). Regards, Martin Jaroslav Drazan wrote: > Hello, > I created the main storage file with MOF metamodel (and I backed up > it) and I mounted and imported some XMI in and umounted some partition > storage files with UML metamodel and UML models. This worked fine > until I didn't changed the main storage to the initial version (to the > backup). > > I got following exception: > > java.lang.NullPointerException > at > org.netbeans.mdr.handlers.MDRClassLoader.resolveInterface(MDRClassLoader.java:98) > > at > org.netbeans.mdr.handlers.BaseObjectHandler.resolveClass(BaseObjectHandler.java:147) > > at > org.netbeans.mdr.NBMDRepositoryImpl.getHandler(NBMDRepositoryImpl.java:612) > > at > org.netbeans.mdr.NBMDRepositoryImpl.getExtent(NBMDRepositoryImpl.java:314) > > > I want to ask if it is possible to share the main storage file in more > locations and to transport the partitions files among these location > (the partition can be changed in some location). > > I thaugt that the main file kept just MOF metamodel and was not > changed after mounting some partition and importing XMI into it but It > seems it changes and I don't understant why. > > Can somebody help me? > > Best Regards > Jarda > ____________________________________________________________ > http://www.seznam.cz - e-mailovĂĄ schrĂĄnka 2000 MB > ____________________________________________________________ > http://www.seznam.cz - e-mailovĂĄ schrĂĄnka 2000 MB