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 29777 - Unable to import XMI file
Summary: Unable to import XMI file
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@java
URL: bclangia@din.uem.br
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-04 03:01 UTC by bclangia
Modified: 2003-01-16 14:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Ide.log file (324.21 KB, patch)
2003-01-04 03:04 UTC, bclangia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bclangia 2003-01-04 03:01:50 UTC
Problems with the ide.log file.
I'm using MDR in NetBeans IDE 3.4, and I had problems in 
import XMI files to the MDR.
The errors say that I must send you my ide.log file.

My e-mail is beatrizlangiano@bol.com.br
Best Regards,  Beatriz
Comment 1 bclangia 2003-01-04 03:04:00 UTC
Created attachment 8437 [details]
Ide.log file
Comment 2 Martin Matula 2003-01-06 14:02:34 UTC
Beatriz, when you write a bug report, please describe what exactly you
did and what did not work. Provide a short description of the problem
(such as "Unable to import XMI file") into Summary field of the issue
(imagine that everybody would name the issue "Ide.log" - we would have
27000 issues with the same summary comment - that would make the
summary useless) and be as descriptive as possible in additional
comments field. ide.log is not very helpful if I don't know the
circumstances under which the exceptions in it were generated. From
what I see from log, it seems to me that you are trying to import an
invalid XMI. Please provide the XMI file you are trying to import (if
possible) and provide also description of how you tried to import it
(into which extent, etc.)
Thanks,
Martin
Comment 3 Martin Matula 2003-01-16 13:42:48 UTC
Comments from bclangia2:
I need to import XMI files to MDR.  This process generates 
several errors 
because the parser doesn't recognize the parameters of 
some XMI files 
elements.  The elements are:

           ·Foundation.Core.Parameter
           ·Foundation.Core.Operation
           ·Foundation.Core.Attribute  
           ·Foundation.Data_Types.Expression
           ·Behavioral_Elements.Use_Cases.Actor     
           ·Model_Manegement.Model 

My teacher say that I must eliminate this elements of the 
XMI files to get 
import the files. 
So I did this, and after I eliminated all,  the parser 
generates an error in 
the ide.log file.
As you, I  think I'm trying to import an invalid XMI, but 
I don't know what I 
must do. If I don't 
eliminate this elements, I can't import XMI. 

I provided one of XMI I'm trying import. The elements that 
must be eliminated 
are in commentary   
(tags <!--     -->)

Note: I'm using Argo and Poseindon tools to generate the 
XMI files.
Comment 4 Martin Matula 2003-01-16 14:05:50 UTC
Hi Beatriz,
the problem is that in your XMI file (btw. may I attach it 
to this bug report?) you are nesting comments which is not 
supported in XML. So e.g. if you write:
<!-- <Operation ...>
       <!-- <Parameter .../> -->
-->
The real commented part is:
<!-- <Operation ...>
       <!-- <Parameter .../> --> (here the comment ends)
--> (this is considered as malformed XML)

Another problem is that even if you fix this problem, you 
will still not be able to load the XMI file into MDR. This 
is because of the following:
1) Argo and versions of Poseidon older than 1.5 generate 
XMI that is not compliant with metamodel - you will still 
get errors that the XMI is malformed (you can fix this by 
downloading the newest version of Poseidon which uses MDR 
internaly)
2) I am not sure if you are importing the file into an 
instance of the right UML model. Once you will have the 
latest version of Poseidon and you create an XMI file in 
it, you cannot import it into MDR directly as MDR 
initially understands only MOF models and the XMI file you 
have represents a UML model - you will need to load UML 
1.4 metamodel into MDR first (you can get it from 
http://mdr.netbeans.org/metamodels.html) and import it 
into MDR, then create a new instance of UML package and 
only after that you will be able to import your XMI file 
into this new instance of UML package.
Also please ask your further questions on our mailing list 
(users@mdr.netbeans.org) so that others can also benefit 
from answers.
As the issue that you described is not a defect in MDR, I 
am changing this issue to INALID.
Regards,
Martin