I am getting an xmi parsing error when I try to build from a model in which 
some of the classes are in a referenced xml.zip.



I would like to know, please, if I am attempting something that was never 
intended to be possible, or whether it is possible and I am doing it wrong.



The error is :



INFO  [AndroMDA] Referenced model --> 
'jar:file:C:AndroMDA.mavenrepositorymdmqmpm-compxml.zipsLandRegistryModel-0.0a.xml.zip!/LandRegistryModel-0.0a.xml'

java.lang.IllegalArgumentException: methodName: 
ResourceUtils.getResource - 'resourceName' can not be null or an empty String

        at 
org.andromda.core.common.ExceptionUtils.checkEmpty(ExceptionUtils.java:63)

        at 
org.andromda.core.common.ResourceUtils.getResource(ResourceUtils.java:41)

         :

         :

         :



        at 
com.werken.forehead.Forehead.main(Forehead.java:581)

org.netbeans.lib.jmi.util.DebugException: XMI parsing error at line: 
148: methodName: ResourceUtils.getResource - 'resourceName' can not be 
null or an empty String

        at 
org.netbeans.lib.jmi.xmi.XmiContext.readExternalDocument(XmiContext.java:927)

         :

         :

         :







The error appears when I access the model module like this...





<UML&#58;Package xmi.id='_9_5_129503bf_1118692555414_665838_188' name='comp' 
isRoot='false' isLeaf='false' isAbstract='false'>

&nbsp; &nbsp;<UML&#58;Namespace.ownedElement>

&nbsp; &nbsp;&nbsp; &nbsp;<UML&#58;Package 
href='LandRegistryModel-0.0a.xml.zip|_9_5_129503bf_1118422369656_440666_94'>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<XMI.extension xmi.extender='MagicDraw 
UML 9.5' xmi.extenderID='MagicDraw UML 9.5'>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<referentPath 
xmi.value='ec&#58;&#58;gov&#58;&#58;quito&#58;&#58;mdmq&#58;&#58;mpm&#58;&#58;comp&#58;&#58;landregistry'/>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</XMI.extension>

&nbsp; &nbsp;&nbsp; &nbsp;</UML&#58;Package>

&nbsp; &nbsp;</UML&#58;Namespace.ownedElement>

</UML&#58;Package>





If I import the module I don't get the error....



<UML&#58;Package xmi.id='_9_5_129503bf_1118692555414_665838_188' name='comp' 
isRoot='false' isLeaf='false' isAbstract='false'>

&nbsp; &nbsp;<UML&#58;Namespace.ownedElement>

&nbsp; &nbsp;&nbsp; &nbsp;<UML&#58;Package 
xmi.id='_9_5_129503bf_1118422369656_440666_94' name='landregistry' 
isRoot='false' isLeaf='false' isAbstract='false'>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<UML&#58;Namespace.ownedElement>

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<UML&#58;Package 
xmi.id='_9_5_129503bf_1118422389000_185197_95' name='persistence_layer' 
isRoot='false' isLeaf='false

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#58;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#58;

&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&#58;

&nbsp; &nbsp;</UML&#58;Namespace.ownedElement>

</UML&#58;Package>





In short, it fails if I try to build where a    <UML:Package href='  ...  >   
must be parsed, but succeeds if a <UML:Package xmi.id='...> must be parsed.



Can it be done?
--
Regards,

Hasan
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1273#1273
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to