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.

Bug 24358 - Unable to get MDR XMI import to work
Summary: Unable to get MDR XMI import to work
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-03 20:58 UTC by laura engstrand
Modified: 2002-07-19 15:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans log file (314.05 KB, patch)
2002-06-03 21:00 UTC, laura engstrand
Details | Diff
generated from Rose using Unisys plugin (768.34 KB, text/plain)
2002-06-07 22:28 UTC, laura engstrand
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laura engstrand 2002-06-03 20:58:52 UTC
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)
Comment 1 laura engstrand 2002-06-03 21:00:06 UTC
Created attachment 6054 [details]
netbeans log file
Comment 2 Martin Matula 2002-06-03 21:13:19 UTC
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.
Comment 3 laura engstrand 2002-06-07 22:28:02 UTC
Created attachment 6160 [details]
generated from Rose using Unisys plugin
Comment 4 laura engstrand 2002-06-07 22:33:01 UTC
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.
Comment 5 Martin Matula 2002-06-12 12:00:17 UTC
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.