[Uml-devel] Critical Bug

Oliver Kellogg oliver.kellogg at t-online.de
Mon Jun 28 03:47:39 UTC 2010


On Sun, 2010-06-27 at 23:06 +0200, Ralf Habacker wrote:
> >   
> streams are your friend :-)
> 

Yes, streams (as in sed) or perl:

$ perl -n -e '$len = length($_);
              if ($len > 1500) {
                print("line $. : $len\n");
              }' AresEngine_broken.xmi
line 35 : 67109044
line 3463 : 67109031

I.e. there are two obvious lines with binary junk (identified by their
exorbitant lengths) , namely line 35 and line 3463.

So then:

$ perl -n -e 'if ($. != 35 && $. != 3463) {
                print($_);
              }' AresEngine_broken.xmi > AresEngine_try.xmi

takes the file size from 136787004 bytes down to 2568929 bytes.

I have not tried whether the resulting XMI is okay, though.

Hope this helps,

Oliver


> 
> $ less AresEngine_broken.xmi
> <?xml version="1.0" encoding="UTF-8"?>
> <XMI verified="false" xmi.version="1.2" timestamp="2010-06-26T17:57:15" 
> xmlns:UML="http://schema.omg.org/spec/UML/1.3">
>  <XMI.header>
>   <XMI.documentation>
>    <XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
>    <XMI.exporterVersion>1.5.8</XMI.exporterVersion>
>    <XMI.exporterEncoding>UnicodeUTF8</XMI.exporterEncoding>
>   </XMI.documentation>
>   <XMI.metamodel xmi.version="1.3" href="UML.xml" xmi.name="UML"/>
>  </XMI.header>
>  <XMI.content>
> 
> <snip>
> 
>     <UML:Stereotype visibility="public" isSpecification="false" 
> namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xm
> i.id="interface" name="interface"/>
>     <UML:Stereotype visibility="public" isSpecification="false" 
> namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" xm
> i.id="<C3><83><C2><83><C3><82><C2><83><C3><83><C2><82><C3><82><C2><83><C3><83><C2><83><C3><82><C2><82><C3><83><C2><82><C3><82><C2>
> 
> 
> and
> 
> 
> $ tail -100000  AresEngine_broken.xmi
> <snip>
> 
>  <UML:Stereotype visibility="public" isSpecification="false" 
> namespace="m1" isAbstract="false" isLeaf="false" isRoot="false" 
> xmi.id="Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?Ã?Â?
> 
> There seems to be a problem with xmi.id generating or parsing
> 
> Ralf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: AresEngine_try.xmi.bz2
Type: application/x-bzip
Size: 136195 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20100628/745fc616/attachment.bz2>


More information about the umbrello-devel mailing list