[mdr-users] RE : [mdr-users] Erro while importing XMI

"Olivier RICHAUD" <[email protected]> Fri, 30 Sep 2005 17:27:10 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <009c01c5c5d3$6d204590$0a64a8c0@lauris>
Thanks it worked !

Olivier.

-----Message d'origine-----
De : Martin Matula [mailto:[email protected]] 
Envoyé : jeudi 29 septembre 2005 13:40
À : [email protected]
Objet : Re: [mdr-users] Erro while importing XMI


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.
>