Author Topic: Sparx 'Internal Application Error' is driving me mad.  (Read 2223 times)

Bill Taylor

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Sparx 'Internal Application Error' is driving me mad.
« on: August 28, 2018, 08:57:40 pm »
Adding or editing objects (Business/Application/Technology) on a machine remote to our MySQL repository causes a dialog to be displayed saying 'Internal Application Error' even though it actually does what I have asked. Adding or editing relationships, or any other activity, e.g. create diagram, works fine and no errors. If I run EA on same machine as MySQL then all works fine - and again 'No Errors'. All machines using same version of EA and all use the same ODBC connection. Anyone seen similar as only getting static from Sparx support at the moment.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11849
  • Karma: +460/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Sparx 'Internal Application Error' is driving me mad.
« Reply #1 on: August 28, 2018, 09:37:17 pm »
Doublecheck the MySQL odbc settings.

There are some specific settings that, if you forget to set them, make it work and only but sometimes generate an error.

Geert

Bill Taylor

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sparx 'Internal Application Error' is driving me mad.
« Reply #2 on: August 29, 2018, 05:26:43 pm »
Hi Geert,

Many thanks - the ODBC connections are the same for both machines (local and remote) but I will look at the MySQL boards to see if there is a hidden gem in there.

It is a shame that the EA Tool does not generate a log file when 'internal errors' occur as this would be very helpful.

My personal feeling is this is something the EA Tool should be handling 'better'. It reports an error - but - performs the action, e.g. add 'Business Event' to a diagram.

Kind regards
Bill

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1366
  • Karma: +110/-75
    • View Profile
Re: Sparx 'Internal Application Error' is driving me mad.
« Reply #3 on: August 31, 2018, 08:43:37 am »
It is a shame that the EA Tool does not generate a log file when 'internal errors' occur as this would be very helpful.

My personal feeling is this is something the EA Tool should be handling 'better'. It reports an error - but - performs the action, e.g. add 'Business Event' to a diagram.

Have you looked in dberror.txt?

hnmdijkema

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sparx 'Internal Application Error' is driving me mad.
« Reply #4 on: August 05, 2022, 01:31:20 am »
Have you tried using absolute paths for the export file and log files? e.g., using this powershell script:

Code: [Select]
$connection_string = "testhd --- DBType=4;Connect=Provider=MSDASQL.1;Password=<password>;Persist Security Info=True;User ID=postgres;Data Source=testhd;LazyLoad=1;";
$eap = "e:\sparx\testhd.eapx";
$log = "e:\sparx\testhd.log";

Write-Output "----------------------------------------------------------"
Get-Date
Write-Output "----------------------------------------------------------"

add-type -path "D:\progs\sparxea\Interop.EA.dll"

Write-Output "EA: App Maken..."
$ea = new-object -ComObject "EA.App" -ErrorAction Stop #-Strict

Write-Output "EA: Repository verkrijgen..."
$eaRep = $ea.Repository;

Write-Output "EA: Project Interface verkrijgen..."
$eaProject = $ea.Project;

Write-Output "Export van model";
$eaProject.projectTransfer($connection_string, $eap, $log);

Write-Output ""
Write-Output "EA: klaar, exit"

$eaRep.Exit()

Get-Date

This works at our site