Hans, This is only a guess about your problem ...
My guess is that at some point you used the NetBeans MDR, from outside of AndroMDA, and there is a file sitting around from that usage. In the one case where you are trying to use the in-memory MDR it is finding the file and complaining about the change in storage type. In the other case where you are trying to use the newer MDR download it is complaining because the file formats are not compatable. It's a guess as to what is happening. I don't really know for sure. I seem to remember seeing somethig similar quite some time back when I was doing some AndroMDA prototyping. Tony > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of SainTiss > Sent: Wednesday, October 01, 2003 7:29 AM > To: AndroMDA Mailing > Subject: Re: [Andromda-user] Different storage version. > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm having the same problem here, although not directly through > AndroMDA, but > through a self-written bit of code... My locale is english though, so the > problem might lie elsewhere... > > I've based the piece of code on the AndroMDA sources though, and > the static {} > codeblock, which sets some system properties relating to MDR, seems to be > indirectly responsible... > > I've posted the following mail to the MDR users mailing list... Those > interested in the problem might want to follow it up there... > > Cheers, > > Hans > > On Wednesday 01 October 2003 16:20, SainTiss wrote: > > Hi, > > > > I'm trying to write a very simple program which uses MDR... > > So far, I've only got a few lines: > > > > static { > > // configure MDR to use an in-memory storage implementation > > System.setProperty( > > "org.netbeans.mdr.storagemodel.StorageFactoryClassName", > > > "org.netbeans.mdr.persistence.memoryimpl.StorageFactoryImpl"); > > > > // set the logging so output does not go to standard out > > System.setProperty("org.netbeans.lib.jmi.Logger.fileName", > > "mdr.log"); }; > > > > public static void main(String[] args) { > > MDRepository repo = > > MDRManager.getDefault().getDefaultRepository(); > > repo.beginTrans(true); > > repo.endTrans(true); > > } > > > > However, the beginTrans method fails to execute properly, and > throws this > > exception: > > > > [java] org.netbeans.mdr.util.DebugException: Different storage > > version. [java] at > > > org.netbeans.mdr.storagemodel.MdrStorage.initializeIndexes(MdrStor > age.java: > >443) [java] at > > org.netbeans.mdr.storagemodel.MdrStorage.rollback(MdrStorage.java:487) > > [java] at > > org.netbeans.mdr.util.TransactionMutex.leave(TransactionMutex.java:174) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.endTrans(NBMDRepositoryImpl.java:188) > > [java] at > > org.netbeans.mdr.NBMDRepositoryImpl.boot(NBMDRepositoryImpl.java:1058) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.initCheck(NBMDRepositoryImpl.java:495) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepositoryImpl. > java:177) > > > > Downloading the newest mdr-standalone.zip resulted in the exception now > > being called "[java] org.netbeans.mdr.util.DebugException: > Missing storage > > files or different storage version." > > > > If I don't set the system properties, I get problems like this: > > > > [java] [org.netbeans.mdr.Logger] Property > > org.netbeans.mdr.persistence.btreeimpl.filename not specified. Using > > default value: mdr > > > > [java] javax.xml.parsers.FactoryConfigurationError: Provider > > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found > > [java] at > > > javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuild > erFactory > >.java:99) [java] at > > org.netbeans.mdr.storagemodel.BootReader.parse(BootReader.java:110) > > [java] at > > org.netbeans.mdr.storagemodel.BootReader.read(BootReader.java:127) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.createBootMOF(NBMDRepositoryIm > pl.java:1 > >149) [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.installFakeMof(NBMDRepositoryI > mpl.java: > >1104) [java] at > > org.netbeans.mdr.NBMDRepositoryImpl.boot(NBMDRepositoryImpl.java:1088) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.initCheck(NBMDRepositoryImpl.java:522) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepositoryImpl. > java:196) > > > > > > [java] > org.netbeans.mdr.persistence.StorageBadRequestException: There > > is no value for key "storageIds:mdr" > > [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.NameIndex.getO > bj(NameIn > >dex.java:56) [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.MofidIndex.get > (MofidInd > >ex.java:44) [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeDatabase. > fetchInde > >x(BtreeDatabase.java:815) [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeStorage.g > etIndex(B > >treeStorage.java:251) [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeStorage.g > etSinglev > >aluedIndex(BtreeStorage.java:259) [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeStorage.o > pen(Btree > >Storage.java:162) [java] at > > > org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeStorage.r > ollBackCh > >anges(BtreeStorage.java:327) [java] at > > org.netbeans.mdr.storagemodel.MdrStorage.rollback(MdrStorage.java:513) > > [java] at > > org.netbeans.mdr.util.TransactionMutex.leave(TransactionMutex.java:179) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.endTrans(NBMDRepositoryImpl.java:209) > > [java] at > > org.netbeans.mdr.NBMDRepositoryImpl.boot(NBMDRepositoryImpl.java:1095) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.initCheck(NBMDRepositoryImpl.java:522) > > [java] at > > > org.netbeans.mdr.NBMDRepositoryImpl.beginTrans(NBMDRepositoryImpl. > java:196) > > > > > > Since my program essentially just calls the beginTrans() > method, I wouldn't > > know what I could have done wrong already at that point... > > > > Could anyone help me here? > > > > Thanks in advance, > > > > Hans Schippers > > - -- > Ark Linux - Linux for the Masses (http://arklinux.org) > > In a world without walls and fences, who needs windows and gates? > > Is the essence that the light pulse lives longer? > > Hans Schippers > 2LIC INF > UA 2003-2004 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.3 (GNU/Linux) > > iD8DBQE/euSgXlnUYIbmLOQRAicLAJ45bxlin1uqtOI7s4sy8uOEuKWrRACfaylz > h5uC7tW+plPx4phQSoGZGNc= > =RSqv > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Andromda-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user
