This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am using 3.3.1 and am evaluating the MDR with the freestyle editor. I have tried a hand crafted XML file and one generated from Rational Rose ( version 7 ) with the XMI plugin. When I try to Import into the MOF repository, I get this failure: Mon Jun 03 12:48:38 PDT 2002: javax.jmi.xmi.MalformedXMIException: org.netbeans.lib.jmi.util.DebugException: Namespace cannot be resolved: UML javax.jmi.xmi.MalformedXMIException: org.netbeans.lib.jmi.util.DebugException: Namespace cannot be resolved: UML at org.netbeans.lib.jmi.xmi.XMISaxReaderImpl.read (XMISaxReaderImpl.java:73) at org.netbeans.lib.jmi.xmi.XMISaxReaderImpl.read (XMISaxReaderImpl.java:56) at org.netbeans.modules.mdrtoolkit.looks.reflect.actions.LoadX MIAction$1.run(LoadXMIAction.java:114) at org.openide.util.Task.run(Task.java:152) [catch] at org.openide.util.RequestProcessor$ProcessorThread.run (RequestProcessor.java:622)
Created attachment 6054 [details] netbeans log file
hi laura, since you haven't attached the XMI files you tried to import, I can only guess what's wrong. my guess is that this is not a bug in MDR. if the MDR says that the XMI is malformed, then I guess it is correct. from the message I see (Namespace cannot be resolved: UML) it seems that you are trying to read an XMI file conforming to UML metamodel into an instance of MOF metamodel. XMI is a generic format for exchanging metadata. for each different MOF metamodel there is a different DTD corresponding to it and different XMI files may conform to different metamodels. all UML tools support XMI for UML by default. to be able to load this XMI, you will need to load a metamodel of UML into the repository (this metamodel needs to be of the same version as supported by the modelling tool), instantiate the metamodel and then you will be able to load the UML XMI into this instance of UML metamodel. I guess what you tried was to import the XMI for UML into an instance of MOF (not UML). if is possible to export UML models into XMI conforming to MOF in Rational Rose, however you need a special plugin from Unisys for doing that.
Created attachment 6160 [details] generated from Rose using Unisys plugin
I have now attached the XML that was generated from Rose ( version 7 ) using the Unisys Plugin. I still get the same exception. I am a neophyte with XML but Rose reimports this one just fine. I have been unable to load my metamodel of UML as you suggested and opened bug 24359 to find out how. I also send a request to users@mdr.netbeans.org but have not yet received a response. Any help is appreciated.
Hi Laura, I have replied to your e-mail on users@mdr.netbeans.org 34 minutes after I have received your e-mail. The problem is that replies to the mailing list messages go the the mailing list only (not to your personal e-mail address). You need to be subscribed to the list to receive the reply or you can watch the archives or newsgroups to see it. My reply to your e-mail is at this address: http://mdr.netbeans.org/servlets/ReadMsg? msgId=328974&listName=users Regarding the XMI you have attached, this XMI really contains UML instance data rather than MOF instance data and thus you need to import it into an instance of UML metamodel rather than instance of MOF metamodel.