Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Geert Bellekens

Pages: 1 ... 8 9 [10] 11 12 ... 14
Bugs and Issues / SQLServer update script broken
« on: February 16, 2010, 01:19:01 am »
The MS SQLserver update script that can be downloaded from the website is broken.
1. It doesn't work on SQL 2000 because in that version it can't update columns of type ntext
2. There are some plain errors in the file like it tries to drop an non existing index:
            IF EXISTS (SELECT 1 FROM dbo.sysindexes WHERE OBJECT_NAME(id) = 't_diagram' AND name = 'Diagram_Type')
            DROP INDEX [t_diagram].[t_diagramtypest_diagram]
or it tries to drop an index without checking if it exists:
            DROP INDEX [t_object].[PD1]

Please make this work, it shouldn't be my job to test for such obvious errors.

Reported to Sparx


Bugs and Issues / EA crashes when Element.ApplyUserLock is called
« on: January 21, 2010, 06:12:42 pm »
We use the security feature with "require user lock to edit" option.
I've written an addin that allows me to edit the body of the postconditions in an external text editor and save it back to EA.

Before saving the changed postconditions to EA I check if the Element that owns the operation that owns the postcondition is editable. (the only way to test this is to try update() (without having changed anything) on the element and catch the exception if it isn't locked by the user)
Now when a user doesn't have a lock  I call Element.ApplyUserLock().
If that fails (either by throwing an exception, or returning false) I inform the user that somebody else has locked the element.

The problems happen when somebody else has a lock on the Element. The first time it is all fine, I can inform the user of the existing lock on the element. The second time I try this (the case where this or another element is locked by somebody else then the current user) EA crashes hard. No exceptions, no errors, it just plain disappears.

I have found a workaround for this by querying the seclocks table, but I would rather not have to do this.

Steps to reproduce

  • Setup security with option "require user lock to edit"
  • loging with user A
  • Lock element A
  • Login with user B
  • Call ApplyUserLock() on element A
  • notice all is still fine
  • Call ApplyUserLock() on element A
  • notice that EA is gone.

The code for the workaround looks like this:
Code: [Select]
       /// <summary>
        /// locks the element by the current user
        /// </summary>
        /// <returns>true if successful</returns>
        public override bool enableWrite()
            //because of some nasty bug in EA the application will crash if the element is already locked
            // by another user.
            // therefore we check first if this element is locked before even trying.
            string SQLQuery = "select s.entityID from t_seclocks s where s.entityID = '" + this.wrappedElement.ElementGUID + "'";
            XmlDocument result = ((EAModel)this.model).SQLQuery(SQLQuery);
            XmlNode lockNode = result.SelectSingleNode("//entityID");
            if (lockNode == null)
                //no lock found, go ahead and try to lock the element
                    return this.wrappedElement.ApplyUserLock();
                catch (Exception)
                    return false;
                //lock found, don't even try it.
                return false;
(this.wrappedElement is the actual EA.Element)

The EAModel.SQLQuery method looks like this:
Code: [Select]
       /// <summary>
        /// generic query operation on the model.
        /// Returns results in an xml format
        /// </summary>
        /// <param name="sqlQuery">the query to execute</param>
        /// <returns>the results of the query in an xml format</returns>
        public XmlDocument SQLQuery(string sqlQuery)
            XmlDocument results = new XmlDocument();
            return results;
(this.wrappedModel is the actual EA.Repository)

Reported to Sparx


Bugs and Issues / "StateFlow" connector type not documented
« on: December 21, 2009, 07:51:46 pm »
When looking at the help page about connectors the type "StateFlow" is not mentioned, yet that is the type you get when a transition between two states is selected.

Bug reported


Bugs and Issues / Template diagram copies author
« on: December 10, 2009, 11:14:20 pm »
When you create a template diagram in the "Templates" folder and someone else creates a new diagram of that type the "author" field is copied as well. The result is that all diagrams of that type have the same author: the one who created the template diagram.

Steps to recreate

- Use Security to enable the login
- Create a new package and set it to be the template package
- Create a new diagram in this template package (say ActivityDiagram)
- Login as another user
- Create a new ActivityDiagram somewhere else
- Notice that the author of this diagram is the user who created the template diagram.

Reported to Sparx

Bugs and Issues / BUG: Get All Latest not working with security
« on: November 05, 2009, 06:06:54 pm »
I have an issue when trying to do a "get All Latest" on my model.
We are using the EA security with the option "require user lock to edit" and we have a shared common model controlled in TFS.
When I try to do a "get All Latest" function I get an error saying that there are elements that are still locked by users.
That statement is true, but the locks are outside of my controlled packages, so it shouldn't matter.
I can do a get latest of each and every package manually, but I can't use the convenient "Get All Latest".
Sigh, why is this so difficult to get right? :'(

Reported to sparx


Bugs and Issues / BUG: Getlatest not working when using EA security
« on: October 09, 2009, 07:23:16 pm »

We use the security feature in EA with the option "Require user lock to edit" option.
Recently I've controlled a part of the model in TFS.
One of the issues is that I can't do a "getLatest" because the package I try it on is not "locked" by me.
I also cannot lock the package since that option is greyed out when controlling a package in TFS.
The only option I have to get the latest version is to do a checkout, and then an "undo checkout".
EA should allow a getLatest on packages who are not locked by me.

Steps to reproduce:
- Setup EA using security and the option "Require user lock to edit"
- Control a package in TFS (or another VC I guess)
- Make sure the package is checked-in, and the lock are released.
- Select option "Package Control/Get latest..."
- Notice the error saying that the necessarry security is not available.



Bugs and Issues / BUG: Compare utility broken with nested packages
« on: October 09, 2009, 08:20:37 pm »

Yet another bug regarding version control.
I've setup version control with TFS and used the option "Save nested version controlled packages to stubs only (recommended)"
Then I have controlled all packages in a model tree so that there are controlled nested packages.
Then I tried the option "Package Control/Compare with controlled version" on a package containing controlled subpackages.
This showed me a whole heap of of "Model only" attributes, links, tagged values etc...
When I try a Compare on the individual sub-packages then I don't get any differences.

Steps to reproduce
- Create package (packageA)
- Create package (packageB) as nested package of packageA
- control both packages in TFS (or another vc system I guess) using the option "nested packages as stubs"
- Compare packageA with the controlled version
- Notice all the "model only" differences.

Reported to Sparx


Bugs and Issues / BUG: Relations in XMI export messes up VC
« on: October 09, 2009, 06:57:02 pm »

I've just setup version control with TFS and I've had some issues with relations showing up in the compare utility where they shouldn't.
Apparently EA includes relations in the XMI export even if these relations are owned by other classes/packages then the one being exported.
This really renders the compare utility useless because of all the noise. (not seeing the trees through the forest anymore)

Steps to reproduce:
- Create two packages (PackageA and PackageB) and create a class in each package (ClassA and ClassB)
- Create a diagram in PackageB and add ClassA and ClassB on the diagram
- Draw an association or dependency from ClassB to ClassA setting the sourceRole Non-Navigable and the targetrole navigable.
- Export the packageA to xmi (using the only the same settings as the version control: full EA roundtrip XMI 1.1)
- Open the XMI file and notice that both relations are defined in here.

Reported to Sparx


Bugs and Issues / Constraints deleted when package gets deleted
« on: July 30, 2009, 08:01:44 pm »
I've found a very disturbing bug.
When I add a constraint to a diagram, then move the diagram to another package, and then delete the original package the constraint is deleted as well.
Apparently the constraint is defined as a child element of the package, but it is not shown on in the project browser.
When the parent package of a constraint is deleted the constraint itself is deleted as well, and since I cannot see the constrain in the project browser there is no way to move the constraint to another package before deleting the original package.


I've reported this to Sparx Support.


Bugs and Issues / InformationItem not in list Element/Change Type
« on: July 13, 2009, 09:12:26 pm »
The type "InformationItem" is not in the list that is shown when you select Element/Advanced/Change Type.
This leads to the strange situtation that I can change an InformationItem to a class, but this class cannot be changed back to an be an InformationItem.

Bug submitted to Sparx Support.

Bugs and Issues / Effect on Action does not wrap
« on: September 25, 2009, 10:29:37 pm »
When adding an Effect to an Action the textbox allows multiple lines.
When you check tick the checkbox "Show Effect in Diagram" the whole effect is displayed in one line stretching the Action to ridiculous propertions.
The effect on the diagram should be displayed in multiple lines just as in the tab of Action.

Reported to Sparx.


Bugs and Issues / Error when checking out package from TFS
« on: September 22, 2009, 05:21:16 pm »
Sometimes i get the error:
The current action cannot be completed as the necessary security is not available when checking out a package that is controlled in TFS.
Before it starts I get the dialog asking me to lock the package (as we have security setup with the option "Require user lock to edit"). I confirm that I want to lock the package, but sometimes it seems that there is a race condition where the checkout process begins before the locking is finished.
Trying again to check out a package works, but this is just annoying.
I've reported this to Sparx


Bugs and Issues / Multiselect broken in select<item> dialog
« on: September 08, 2009, 09:50:16 pm »

I defined a tagged value that references a list of operations.
After adding my tagged value to an element I can select the operation with the select<item> dialog.
Multiselect works with Ctrl-select.
My problem now is that I cannot add an operation from another class/interface because opening a class/interface/package deselects wathever was selected and highlights the opened item.
According to the help file this should not happen:
Multiple Selection

Where an operation permits the selection of multiple items, the Select <Item> dialog is automatically enabled to support this. To select the items, press [Ctrl] as you click on each item. Having selected an item, you can continue to expand and browse the hierarchy, and/or search for items; the dialog retains the existing selections until you click on the OK button.
This is really annoying. >:(

I'll report it to Sparx.


Bugs and Issues / New Note already filled in
« on: August 28, 2009, 10:52:51 pm »
When I add a new Note to a diagram it is already filled in.
It has a text and a non-standard color. (red)
Looks like there is some sort of default for new notes, but I don't seem to remember having an option to change the default for notes to include text.
This only happens on one model, for all users, so it is definitely something model based.
Anyone ever experienced the same? (or even better, knows the solution?)



Bugs and Issues / Repository.GetElementSet("",0) results in SQL err
« on: July 31, 2009, 07:42:53 pm »
When I try to get all elements in my model using Repository.getElementSet("",0) I get an SQL server error: "The query processor ran out of internal resources... "
Our model is located on a  SQL server 2008 with 16GB of memory.
The t_object table contains about 45000 rows.
I guess the query used to retrieve these elements is not optimal and SQL server chokes on it.

Pages: 1 ... 8 9 [10] 11 12 ... 14