Book a Demo

Author Topic: Dangling Proxy connector  (Read 5448 times)

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Dangling Proxy connector
« on: May 09, 2020, 12:37:55 am »
Hi,

I have some proxy connectors in my database.
These proxyconnectors have a classifier. This classifier when seached in t_connector table must lead to a new connector, which is source.
Basically classifierID of proxy connector  = ConnectorID of the connector from where the proxy connector originites.


Now the issue is that the classifierID of the proxy connector is not existing in the database in t_connector table.


Any clues how can I solve this now /  get rid of the proxyconnector objects?
Also how can this happen?


Thanks
Karan


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Dangling Proxy connector
« Reply #1 on: May 09, 2020, 01:17:06 am »
Have you tried a project integrity check?
That is the tool that is intended to solve this type is issues.

Geert

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Dangling Proxy connector
« Reply #2 on: May 09, 2020, 02:17:06 am »
Hi Geert,

I have as database hosted for this project. I guess integrity check can run only on EAP.
I would have to transfer the DB to file and then do the check and then push back the eap to DB.


Thanks
Karan.


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Dangling Proxy connector
« Reply #3 on: May 09, 2020, 03:14:43 am »
No. The check can be run on any repo. Just make sure nobody is actively working during the check.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Dangling Proxy connector
« Reply #4 on: May 09, 2020, 10:31:00 am »
Hi Karan,

If the Integrity check (which, as qwerty says, runs on all types of repositories), does not pick them up please report a bug using one of the links below.

It is vital that the internal integrity of the EA repository can be relied on.  That's what we principally use the Integrity Check for.

Essentially, if the IC reports an error, "All bets are off" until the errors are removed...  (if the errors aren't found...  :-X )

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Dangling Proxy connector
« Reply #5 on: May 10, 2020, 03:11:08 pm »
Hello Qwerty, Paolo,

The integrity checker does run on repositories also. Thanks for pointing out.
It also removes the proxy connectory.

Still wondering how it appeared. Tried it on a local setup to simulate the problem but could not.


Thanks for the help!

Regards,
Karan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Dangling Proxy connector
« Reply #6 on: May 10, 2020, 03:32:29 pm »
Still wondering how it appeared. Tried it on a local setup to simulate the problem but could not.

That's not difficult. EA works without transactions. If something happens during an operation (such as creating or removing such a proxy connector) then it is perfectly possible that only half of the sql statements executed.
And since there are also no referential integrity constraints (FK's) in the database, this all goes by without a beep.

So you need something like the project integrity check to clean up those loose ends.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Dangling Proxy connector
« Reply #7 on: May 10, 2020, 07:23:36 pm »
Unfortunately EA does not do that automatically (like *nix forces fsck every now and then). Even worse: when you start the check EA scares the user how dangerous it could be and you better don't use it. Goes without further saying.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Dangling Proxy connector
« Reply #8 on: May 11, 2020, 08:35:00 am »
By the way, Karan,

Although Sparx calls it a proxy connector you'll have noticed it's not a connector (and specifically it is in the t_object table, NOT t_connector).  I've found it useful to more correctly call (and think about it) as a Connector Proxy.  That is, it is a proxy for the connector in the t_object table.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Karan Mundhra

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Dangling Proxy connector
« Reply #9 on: May 11, 2020, 01:43:00 pm »
Hi Paolo,

Yes, I am aware it goes in the t_object table. Also it does not appear in the project browser.
Even I think, connector proxy is more sensible name

Thanks
Karan