[Uml-devel] Loop in UMLListView::loadChildrenFromXMI( UMLListViewItem * parent, QDomElement & element )
Achim Spangler
Achim.Spangler at mnet-online.de
Tue Oct 24 09:11:08 UTC 2006
Hi again,
the 1.5.5 version doesn't reload my Generalization Association (i.e. derived
classes).
I get the warning messages:
umbrello: ERROR: AssociationWidget::loadFromXMI: cannot find UMLObject 612293
umbrello: ERROR: couldn't loadFromXMI association widget:0x90a5c30, bad XMI
file? Deleting from umlview.
The strange thing:
The Generalization is defined for a class as follows:
<UML:GeneralizableElement.generalization>
<UML:Generalization xmi.idref="612293" />
</UML:GeneralizableElement.generalization>
The referenced item exists as follows:
<assocwidget totalcounta="3" indexa="1" totalcountb="7" indexb="1"
linewidth="none" widgetbid="583487" widgetaid="584616" xmi.id="612293"
linecolor="none" >
<linepath>
<startpoint startx="212" starty="651" />
<endpoint endx="570" endy="603" />
</linepath>
</assocwidget>
So:
Either there is something wrong in the order of item reference resolve, or the
lookup function searches fro wrong types in a wrong context. OR whatever
lookup problems exists here.
##
Regarding my problem report with the current SVN version:
I detected during load with 1.5.5 version, the following error message:
umbrello: ERROR: UMLObject::load(Logische Ansicht): m_pUMLPackage is not set
umbrello: ERROR: UMLObject::load(Datentypen): m_pUMLPackage is not set
This might be also printed by the SVN version - I just didn't see it as the
history of my konsole shell was overloaded during load with SVN version.
I have the impression, that I started the XMI file with an older Umbrello
version. The definition of m_pUMLPackage seems to have changed since then
without a "repair mode" or "upgrade mode".
So my question:
What should I do, to manually fix this base problem?
I'm quite familiar with the XMI format - I just need a hint like:
"place an attribute Foo="val" in each XML-Tag of type fii"
Thanks,
Achim
Am Dienstag, 24. Oktober 2006 10:57 schrieb Achim Spangler:
> Hi,
> I have an XMI file with Packages, which is loaded and edited fine with the
> official 3.5.5 version for Kubuntu Dapper.
>
> But from current REPO verion, I get a never ending loop of the following
> error messages:
> ============================
> umbrello: ERROR: UMLListView::loadChildrenFromXMI: umlParent((nil)) is not
> a UMLPackage
> ============================
>
> I detected the responsible code place:
> Line 2349 inside the function UMLListView::loadChildrenFromXMI(
> UMLListViewItem * parent, QDomElement & element ) - near to the place where
> the cited error message is produced - there is a simple "continue" in that
> error case.
>
> Comparing with other "continue" places in this function reveals, that the
> other places use a combination of "domElement = node.toElement();
> continue", so that the DOM is navigated further.
>
> My insertion of the "domElement = node.toElement()" has a half success:
> The XMI file is loaded now - but none of the diagrams is displayed (they
> are listed in listview - but not displayed when selected in listview).
>
> ###
> There are also lots of error messages like:
> ============================
> umbrello: UMLPackage::addObject: uint16_t is already there
> ============================
> umbrello: UMLListView::slotObjectCreated(setInt32Data, id= 613442): item
> already exists.
> ============================
> umbrello: UMLListView::loadChildrenFromXMI: Datentypen (0x8562eb8) !=
> Datentypen (0x8eb0f38)
> umbrello: UMLListView::moveObject: newParentType is 830
> umbrello: UMLListView::loadChildrenFromXMI: Attempted reparenting of
> vtObjectString_c*(current parent: Datentypen, new parent: Datentypen)
>
>
> ###
> Is there a ongoing deep XMI format change, where I might be able to fix
> some items manually in XMI?
>
> Thanks,
> Achim
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Uml-devel mailing list
> umbrello-devel at kde.org
> https://mail.kde.org/mailman/listinfo/umbrello-devel
More information about the umbrello-devel
mailing list