Re: [mdr-users] Erro while importing XMI
Martin Matula <[email protected]> Thu, 29 Sep 2005 13:39:59 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
You need to pass the URL of the file you want to read into the read method (instead of the input stream) if your file references other files relatively - which is the case for the ..._Diff.xml file. Regards, Martin Olivier RICHAUD wrote: > I'm currently trying to import XMI/UML much like the UMF2MOF tool which > helped us. When I read the original XMI/UML file, I first need to get > the UML package and thus read 01-02-15_Diff.xml as found in MDR. That > XMI file references 01-02-15.xml (which is in my class path), but I get > the following error: > > org.netbeans.lib.jmi.util.DebugException: no protocol: > 01-02-15.xml > > Could you tell me what's missing? I create a XMIreader using the > appropriate factory: > XMIReaderFactory f = XMIReaderFactory.getDefault(); > XMIReader r = f.createXMIReader(); > r.read(is, null, pkg); > > And it crashes while calling read. > > Regards. > > Olivier. >