Book a Demo

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.


Messages - itsvikasjindal

Pages: [1]
1
Thanks qwerty...

Is there any setting/configuration to increase the log level so that more detailed logs are generated by EA application?

2
Hi,

While adding a lifeline to sequence diagram, EA is crashing. In case there is no lifeline in the sequence diagram then EA crash on adding first lifeline. After crash, when EA is launched again, I can see the lifeline added on sequence diagram, means changes were saved before crash. Now there is one lifeline in sequence diagram, I am able to add more lifelines. If I delete all the lifelines from sequence diagram and add add new lifeline then EA crash again.

Crash log:
Code: [Select]
Version=1
EventType=APPCRASH
EventTime=131394060318195963
ReportType=2
Consent=1
ReportIdentifier=e07fc659-3a26-11e7-87fa-0050569b134a
IntegratorReportIdentifier=e07fc658-3a26-11e7-87fa-0050569b134a
WOW64=1
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=EA.exe
Sig[1].Name=Application Version
Sig[1].Value=12.1.0.1228
Sig[2].Name=Application Timestamp
Sig[2].Value=56c6ad60
Sig[3].Name=Fault Module Name
Sig[3].Value=EA.exe
Sig[4].Name=Fault Module Version
Sig[4].Value=12.1.0.1228
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=56c6ad60
Sig[6].Name=Exception Code
Sig[6].Value=c0000005
Sig[7].Name=Exception Offset
Sig[7].Value=004970cd
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.144.8
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=0a9e
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=0a9e372d3b4ad19135b953a78882e789
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=0a9e
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=0a9e372d3b4ad19135b953a78882e789
UI[2]=C:\PROGRA~2\SPARXS~1\EA\EA.exe
UI[3]=Enterprise Architect - UML Development Tool has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\PROGRA~2\SPARXS~1\EA\EA.exe
LoadedModule[1]=C:\Windows\SysWOW64\ntdll.dll
LoadedModule[2]=C:\Windows\syswow64\kernel32.dll
LoadedModule[3]=C:\Windows\syswow64\KERNELBASE.dll
LoadedModule[4]=C:\Windows\syswow64\IMM32.dll
LoadedModule[5]=C:\Windows\syswow64\USER32.dll
LoadedModule[6]=C:\Windows\syswow64\GDI32.dll
LoadedModule[7]=C:\Windows\syswow64\LPK.dll
LoadedModule[8]=C:\Windows\syswow64\USP10.dll
LoadedModule[9]=C:\Windows\syswow64\msvcrt.dll
LoadedModule[10]=C:\Windows\syswow64\ADVAPI32.dll
LoadedModule[11]=C:\Windows\SysWOW64\sechost.dll
LoadedModule[12]=C:\Windows\syswow64\RPCRT4.dll
LoadedModule[13]=C:\Windows\syswow64\SspiCli.dll
LoadedModule[14]=C:\Windows\syswow64\CRYPTBASE.dll
LoadedModule[15]=C:\Windows\syswow64\MSCTF.dll
LoadedModule[16]=C:\PROGRA~2\SPARXS~1\EA\EALayout.dll
LoadedModule[17]=C:\Windows\syswow64\COMDLG32.dll
LoadedModule[18]=C:\Windows\syswow64\SHLWAPI.dll
LoadedModule[19]=C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\COMCTL32.dll
LoadedModule[20]=C:\Windows\syswow64\SHELL32.dll
LoadedModule[21]=C:\Windows\system32\WINSPOOL.DRV
LoadedModule[22]=C:\Windows\syswow64\ole32.dll
LoadedModule[23]=C:\Windows\syswow64\OLEAUT32.dll
LoadedModule[24]=C:\PROGRA~2\SPARXS~1\EA\TER81.dll
LoadedModule[25]=C:\PROGRA~2\SPARXS~1\EA\PDC81.dll
LoadedModule[26]=C:\Windows\syswow64\CRYPT32.dll
LoadedModule[27]=C:\Windows\syswow64\MSASN1.dll
LoadedModule[28]=C:\PROGRA~2\SPARXS~1\EA\WTHES432.dll
LoadedModule[29]=C:\PROGRA~2\SPARXS~1\EA\SSCE5532.dll
LoadedModule[30]=C:\PROGRA~2\SPARXS~1\EA\DrawEx.dll
LoadedModule[31]=C:\Windows\system32\MSIMG32.dll
LoadedModule[32]=C:\Windows\system32\oledlg.dll
LoadedModule[33]=C:\Windows\system32\ODBC32.dll
LoadedModule[34]=C:\Windows\system32\WSOCK32.dll
LoadedModule[35]=C:\Windows\syswow64\WS2_32.dll
LoadedModule[36]=C:\Windows\syswow64\NSI.dll
LoadedModule[37]=C:\PROGRA~2\SPARXS~1\EA\CodeMiner.DLL
LoadedModule[38]=C:\PROGRA~2\SPARXS~1\EA\EAModelPublisher.dll
LoadedModule[39]=C:\PROGRA~2\SPARXS~1\EA\BPEL.DLL
LoadedModule[40]=C:\Windows\system32\ACTIVEDS.dll
LoadedModule[41]=C:\Windows\system32\adsldpc.dll
LoadedModule[42]=C:\Windows\syswow64\WLDAP32.dll
LoadedModule[43]=C:\Windows\system32\ATL.DLL
LoadedModule[44]=C:\Windows\system32\WINMM.dll
LoadedModule[45]=C:\Windows\syswow64\WININET.dll
LoadedModule[46]=C:\Windows\syswow64\api-ms-win-downlevel-user32-l1-1-0.dll
LoadedModule[47]=C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll
LoadedModule[48]=C:\Windows\syswow64\api-ms-win-downlevel-version-l1-1-0.dll
LoadedModule[49]=C:\Windows\system32\version.DLL
LoadedModule[50]=C:\Windows\syswow64\api-ms-win-downlevel-normaliz-l1-1-0.dll
LoadedModule[51]=C:\Windows\syswow64\normaliz.DLL
LoadedModule[52]=C:\Windows\syswow64\iertutil.dll
LoadedModule[53]=C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll
LoadedModule[54]=C:\Windows\syswow64\USERENV.dll
LoadedModule[55]=C:\Windows\syswow64\profapi.dll
LoadedModule[56]=c:\progra~2\citrix\system32\mfaphook.dll
LoadedModule[57]=C:\Program Files (x86)\Citrix\system32\CtxMFPlugin.dll
LoadedModule[58]=C:\Windows\system32\MF.dll
LoadedModule[59]=C:\Windows\system32\MFPlat.DLL
LoadedModule[60]=C:\Windows\system32\AVRT.dll
LoadedModule[61]=C:\Windows\system32\ksuser.dll
LoadedModule[62]=C:\Program Files (x86)\Citrix\system32\CtxGraphicsHelper.dll
LoadedModule[63]=C:\Windows\syswow64\SETUPAPI.dll
LoadedModule[64]=C:\Windows\syswow64\CFGMGR32.dll
LoadedModule[65]=C:\Windows\syswow64\DEVOBJ.dll
LoadedModule[66]=C:\Program Files (x86)\Citrix\system32\mmhook.dll
LoadedModule[67]=C:\Program Files (x86)\Citrix\system32\Sfrhook.dll
LoadedModule[68]=C:\Windows\system32\WTSAPI32.dll
LoadedModule[69]=C:\Program Files (x86)\Citrix\system32\ShellHook.dll
LoadedModule[70]=C:\Program Files (x86)\Citrix\system32\scardhook.dll
LoadedModule[71]=C:\Program Files (x86)\Citrix\system32\twnhook.dll
LoadedModule[72]=C:\PROGRA~2\SPARXS~1\EA\SSGP.DLL
LoadedModule[73]=C:\Windows\system32\odbcint.dll
LoadedModule[74]=C:\Windows\system32\UxTheme.dll
LoadedModule[75]=C:\Windows\system32\MPR.DLL
LoadedModule[76]=C:\Program Files (x86)\Common Files\Citrix\System32\PicaProvider.dll
LoadedModule[77]=C:\Windows\syswow64\PSAPI.DLL
LoadedModule[78]=C:\Windows\System32\vmhgfs.dll
LoadedModule[79]=C:\Windows\System32\drprov.dll
LoadedModule[80]=C:\Windows\System32\WINSTA.dll
LoadedModule[81]=C:\Windows\System32\ntlanman.dll
LoadedModule[82]=C:\Windows\System32\davclnt.dll
LoadedModule[83]=C:\Windows\System32\DAVHLPR.dll
LoadedModule[84]=C:\Windows\syswow64\CLBCatQ.DLL
LoadedModule[85]=C:\Windows\System32\msxml6.dll
LoadedModule[86]=C:\Windows\System32\bcrypt.dll
LoadedModule[87]=C:\Windows\system32\dwmapi.dll
LoadedModule[88]=C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23688_none_5c0a8e35a00adeb9\gdiplus.dll
LoadedModule[89]=C:\Windows\system32\mswsock.dll
LoadedModule[90]=C:\Windows\System32\wshtcpip.dll
LoadedModule[91]=C:\PROGRA~2\SPARXS~1\EA\TemplateRes80.dll
LoadedModule[92]=C:\Windows\system32\RICHED32.DLL
LoadedModule[93]=C:\Windows\system32\RICHED20.dll
LoadedModule[94]=C:\Windows\syswow64\urlmon.dll
LoadedModule[95]=C:\Windows\syswow64\api-ms-win-downlevel-ole32-l1-1-0.dll
LoadedModule[96]=C:\Windows\system32\api-ms-win-downlevel-shlwapi-l2-1-0.dll
LoadedModule[97]=C:\Windows\system32\Secur32.dll
LoadedModule[98]=C:\Windows\system32\api-ms-win-downlevel-advapi32-l2-1-0.dll
LoadedModule[99]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[100]=C:\Windows\system32\rsaenh.dll
LoadedModule[101]=C:\Windows\system32\RpcRtRemote.dll
LoadedModule[102]=C:\PROGRA~2\SPARXS~1\EA\HTS81.dll
LoadedModule[103]=C:\Windows\system32\mscoree.dll
LoadedModule[104]=C:\Windows\system32\apphelp.dll
LoadedModule[105]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
LoadedModule[106]=C:\Windows\system32\sxs.dll
LoadedModule[107]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
LoadedModule[108]=C:\Windows\system32\MSVCR120_CLR0400.dll
LoadedModule[109]=C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\58d035310ea26e5c5adbed3e7e99838c\mscorlib.ni.dll
LoadedModule[110]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\clrjit.dll
LoadedModule[111]=C:\Program Files (x86)\Sparx Systems\EA\EclipseLink.dll
LoadedModule[112]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System\020b06636018aed9f7293fb2a556191f\System.ni.dll
LoadedModule[113]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Core\551e244d3b430bf63b5c8a2e355ff5b0\System.Core.ni.dll
LoadedModule[114]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml.Linq\df52db5bf5216a98aded3d6d12020325\System.Xml.Linq.ni.dll
LoadedModule[115]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Xml\06c64363d336cee5a361892278232ee4\System.Xml.ni.dll
LoadedModule[116]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Drawing\02d11771592547624c99a7db73b4122c\System.Drawing.ni.dll
LoadedModule[117]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Windows.Forms\370203cff1d5cd21ae9c84936314d93f\System.Windows.Forms.ni.dll
LoadedModule[118]=C:\Program Files (x86)\Sparx Systems\EA\VSLink2.dll
LoadedModule[119]=C:\Program Files (x86)\Sparx Systems\EA\EASimLib.dll
LoadedModule[120]=C:\Program Files (x86)\Sparx Systems\EA\EASL.dll
LoadedModule[121]=C:\PROGRA~2\SPARXS~1\EA\SciLexer.dll
LoadedModule[122]=C:\Windows\system32\Msftedit.dll
LoadedModule[123]=C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE15\MSOXMLMF.DLL
LoadedModule[124]=C:\Windows\system32\MSVCR100.dll
LoadedModule[125]=C:\Windows\system32\WindowsCodecs.dll
LoadedModule[126]=C:\Program Files\Microsoft Office\root\VFS\ProgramFilesX86\Microsoft Office\Office16\GROOVEEX.DLL
LoadedModule[127]=C:\Windows\system32\VCRUNTIME140.dll
LoadedModule[128]=C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
LoadedModule[129]=C:\Windows\system32\ucrtbase.DLL
LoadedModule[130]=C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll
LoadedModule[131]=C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll
LoadedModule[132]=C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll
LoadedModule[133]=C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll
LoadedModule[134]=C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll
LoadedModule[135]=C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll
LoadedModule[136]=C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll
LoadedModule[137]=C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll
LoadedModule[138]=C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll
LoadedModule[139]=C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll
LoadedModule[140]=C:\Windows\system32\MSVCP140.dll
LoadedModule[141]=C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll
LoadedModule[142]=C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll
LoadedModule[143]=C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll
LoadedModule[144]=C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll
LoadedModule[145]=C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll
LoadedModule[146]=C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll
LoadedModule[147]=C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll
LoadedModule[148]=C:\Windows\system32\msi.dll
LoadedModule[149]=C:\Program Files\Microsoft Office\root\VFS\ProgramFilesX86\Microsoft Office\Office16\1033\GrooveIntlResource.dll
LoadedModule[150]=C:\Windows\system32\EhStorShell.dll
LoadedModule[151]=C:\Windows\system32\PROPSYS.dll
LoadedModule[152]=C:\Windows\system32\ntshrui.dll
LoadedModule[153]=C:\Windows\system32\srvcli.dll
LoadedModule[154]=C:\Windows\system32\cscapi.dll
LoadedModule[155]=C:\Windows\system32\slc.dll
LoadedModule[156]=C:\Program Files (x86)\Common Files\System\ado\msado15.dll
LoadedModule[157]=C:\Windows\system32\MSDART.DLL
LoadedModule[158]=C:\Program Files (x86)\Common Files\System\Ole DB\oledb32.dll
LoadedModule[159]=C:\Program Files (x86)\Common Files\System\Ole DB\OLEDB32R.DLL
LoadedModule[160]=C:\Windows\system32\comsvcs.dll
LoadedModule[161]=C:\Windows\SysWOW64\bcryptprimitives.dll
LoadedModule[162]=C:\Program Files (x86)\Common Files\System\Ole DB\sqloledb.dll
LoadedModule[163]=C:\Program Files (x86)\Common Files\System\Ole DB\MSDATL3.dll
LoadedModule[164]=C:\Windows\system32\NETAPI32.dll
LoadedModule[165]=C:\Windows\system32\netutils.dll
LoadedModule[166]=C:\Windows\system32\wkscli.dll
LoadedModule[167]=C:\Windows\system32\DBNETLIB.DLL
LoadedModule[168]=C:\Windows\system32\security.dll
LoadedModule[169]=C:\Windows\system32\credssp.dll
LoadedModule[170]=C:\Windows\SysWOW64\msv1_0.DLL
LoadedModule[171]=C:\Windows\system32\cryptdll.dll
LoadedModule[172]=C:\Windows\system32\ntdsapi.dll
LoadedModule[173]=C:\Windows\SysWOW64\schannel.dll
LoadedModule[174]=C:\Windows\system32\ncrypt.dll
LoadedModule[175]=C:\Program Files (x86)\Common Files\System\msadc\msadce.dll
LoadedModule[176]=C:\Program Files (x86)\Common Files\System\msadc\msadcer.dll
LoadedModule[177]=C:\Program Files (x86)\Common Files\System\Ole DB\SQLOLEDB.RLL
LoadedModule[178]=C:\Windows\assembly\NativeImages_v4.0.30319_32\CustomMarshalers\f93614a47d5b417ef90d219fc4873e57\CustomMarshalers.ni.dll
LoadedModule[179]=C:\Windows\Microsoft.Net\assembly\GAC_32\CustomMarshalers\v4.0_4.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll
LoadedModule[180]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll
LoadedModule[181]=C:\Windows\assembly\NativeImages_v4.0.30319_32\Microsoft.CSharp\53b8a1bf38aa2a16f7a7737ade77eabb\Microsoft.CSharp.ni.dll
LoadedModule[182]=C:\Windows\assembly\NativeImages_v4.0.30319_32\System.Dynamic\6829a896729f915e1a98eb3f47a6edf3\System.Dynamic.ni.dll
FriendlyEventName=Stopped working
ConsentKey=APPCRASH
AppName=Enterprise Architect - UML Development Tool
AppPath=C:\PROGRA~2\SPARXS~1\EA\EA.exe

Error in Windows Event Viewer
Error: .NET Runtime
Code: [Select]
Application: EA.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 008970CD
Stack:

Error: Application Error
Code: [Select]
Faulting application name: EA.exe, version: 12.1.0.1228, time stamp: 0x56c6ad60
Faulting module name: EA.exe, version: 12.1.0.1228, time stamp: 0x56c6ad60
Exception code: 0xc0000005
Fault offset: 0x004970cd
Faulting process id: 0x210
Faulting application start time: 0x01d2cec05b94880b
Faulting application path: C:\PROGRA~2\SPARXS~1\EA\EA.exe
Faulting module path: C:\PROGRA~2\SPARXS~1\EA\EA.exe
Report Id: 179500be-3ab4-11e7-87fa-0050569b134a


No other logs or information is generated while crash.

Any suggestion to resolve this issue?

Is there any way to increase the log level so that more detailed logs are generated by EA application?

3
I am trying to access EA from Web application deployed on IIS.
I recently migrated my setup from Win7 to Win 2012 R2.

After migration, I am getting error in system logs:
The server {67F4E0FA-46A7-4255-B084-69A9433D08C3} did not register with DCOM within the required timeout.

When I access the EA flow from Web Application, I get error "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)".
Error in System event application logs:
================================
Faulting application name: EA.exe, version: 13.0.0.1309, time stamp: 0x583e2bba
Faulting module name: EA.exe, version: 13.0.0.1309, time stamp: 0x583e2bba
Exception code: 0xc0000005
Fault offset: 0x00ef751a
Faulting process id: 0x9f8
Faulting application start time: 0x01d298c66035de1f
Faulting application path: C:\EA\EA.exe
Faulting module path: C:\EA\EA.exe
Report Id: 9ec9ae41-04b9-11e7-80cb-0050568445f7
Faulting package full name:
Faulting package-relative application ID:
===========================================

It seems, this error is coming because EA dll CLSID 67F4E0FA-46A7-4255-B084-69A9433D08C3 is not registered.

Only facing issue on Win 2012 R2.

Any suggestion to resolve this issue?

Thanks in advance

4
Thanks Simon for your response. I will make the changes suggested by you.

Can you please check If I am using correct command (mentioned below) and EA DLL (Interop.EA.dll) to compile the JScript?
C:\Windows\Microsoft.NET\Framework\v4.0.30319\jsc /lib:"C:\Program Files (x86)\Sparx Systems\EA" /reference:Interop.EA.dll <<ScriptName>>

If you want to compile internal scripts there are a few changes you'll need to make.

  • No 'Repository' active object. All internal scripts behave as if they were being written as a function on the repository object for the running EA. Without it, you'll need to explicitly open a repository object and qualify all calls with the object name you create.
  • No includes. !INC is interpreted by EA before passing the script to the JScript intepreter to allow common definitions
  • No type declarations. as EA.Type is used by EA to provide dropdowns of members when coding but is stripped before passing the script to the JScript

5
Hi,

I am writing JScript to automate operation on Sparx EA. This script is working fine when I run it from EA script editor. I want to create executable of this script so that it can be scheduled on windows.

But while compiling JScript with "JSC", I am getting following error messages:
Code: [Select]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\jsc /lib:"C:\Program Files (x86)\Sparx Systems\EA" /reference:Interop.EA.dll Script.js
Microsoft (R) JScript Compiler version 12.00.51209
for Microsoft (R) .NET Framework version 4.0.30319
Copyright (C) Microsoft Corporation. All rights reserved.

Script.js(1,6) : error JS1004: Expected ';'
Script.js(1,6) : error JS1160: The list of attributes does not apply to the current context
Script.js(138,24) : error JS1004: Expected ';'
Script.js(138,24) : error JS1160: The list of attributes does not apply to the current context
Script.js(140,35) : error JS1004: Expected ';'
Script.js(140,35) : error JS1160: The list of attributes does not apply to the current context
Script.js(142,24) : error JS1004: Expected ';'
Script.js(142,24) : error JS1160: The list of attributes does not apply to the current context
Script.js(151,34) : error JS1004: Expected ';'
Script.js(151,34) : error JS1160: The list of attributes does not apply to the current context
Script.js(154,35) : error JS1004: Expected ';'
Script.js(154,35) : error JS1160: The list of attributes does not apply to the current context
Script.js(158,43) : error JS1004: Expected ';'
Script.js(158,43) : error JS1160: The list of attributes does not apply to the current context
Script.js(209,34) : error JS1004: Expected ';'
Script.js(209,34) : error JS1160: The list of attributes does not apply to the current context
Script.js(212,35) : error JS1004: Expected ';'
Script.js(212,35) : error JS1160: The list of attributes does not apply to the current context
Script.js(217,43) : error JS1004: Expected ';'
Script.js(217,43) : error JS1160: The list of attributes does not apply to the current context
Script.js(435,24) : error JS1004: Expected ';'
Script.js(435,24) : error JS1160: The list of attributes does not apply to the current context
Script.js(443,28) : error JS1004: Expected ';'
Script.js(443,28) : error JS1160: The list of attributes does not apply to the current context
Script.js(459,24) : error JS1004: Expected ';'
Script.js(459,24) : error JS1160: The list of attributes does not apply to the current context
Script.js(472,26) : error JS1004: Expected ';'
Script.js(472,26) : error JS1160: The list of attributes does not apply to the current context
Script.js(487,20) : error JS1004: Expected ';'
Script.js(487,20) : error JS1160: The list of attributes does not apply to the current context
Script.js(1,2) : error JS1135: Variable 'INC' has not been declared
Script.js(1,6) : error JS1135: Variable 'Local' has not been declared
Script.js(52,9) : error JS1135: Variable 'Session' has not been declared
Script.js(79,23) : error JS1135: Variable 'Repository' has not been declared
Script.js(103,21) : error JS1135: Variable '_XMLDescribeParseError' has not been declared
Script.js(103,9) : error JS1135: Variable 'LOGWarning' has not been declared
Script.js(138,24) : error JS1135: Variable 'as EA.Element;' has not been declared
Script.js(140,35) : error JS1135: Variable 'as EA.TaggedValue;' has not been declared
Script.js(142,24) : error JS1135: Variable 'as EA.Diagram;' has not been declared
Script.js(151,34) : error JS1135: Variable 'as EA.DiagramObject;' has not been declared
Script.js(435,24) : error JS1135: Variable 'as EA.Package;' has not been declared
Script.js(501,81) : error JS1135: Variable 'promptOK' has not been declared

Even if I try to compile the sample JScript provided with Sparx EA installer, I am getting similar error:
Code: [Select]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\jsc /lib:"C:\Program Files (x86)\Sparx Systems\EA" /reference:Interop.EA.dll "c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js"
Microsoft (R) JScript Compiler version 12.00.51209
for Microsoft (R) .NET Framework version 4.0.30319
Copyright (C) Microsoft Corporation. All rights reserved.

c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(1,6) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(1,6) : error JS1160: The list of attributes does not apply to th
e current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(18,17) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(18,17) : error JS1160: The list of attributes does not apply to
the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(34,18) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(34,18) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(37,20) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(37,20) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(52,19) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(52,19) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(55,21) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(55,21) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(65,26) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(65,26) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(84,12) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(84,12) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(87,14) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(87,14) : error JS1160: The list of attributes does not apply to the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(100,19) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(100,19) : error JS1160: The list of attributes does not apply to  the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(124,25) : error JS1004: Expected ';'
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(124,25) : error JS1160: The list of attributes does not apply to  the current context
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(1,2) : error JS1135: Variable 'INC' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(1,6) : error JS1135: Variable 'Local' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(15,2) : error JS1135: Variable 'Repository' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(18,17) : error JS1135: Variable 'as EA.Element;' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(21,54) : error JS1135: Variable 'otElement' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(25,3) : error JS1135: Variable 'Session' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(34,18) : error JS1135: Variable 'as EA.Collection;' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(37,20) : error JS1135: Variable 'as EA.Attribute;' has not beendeclared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(55,21) : error JS1135: Variable 'as EA.AttributeConstraint;' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(87,14) : error JS1135: Variable 'as EA.AttributeTag;' has not been declared
c:\Program Files (x86)\Sparx Systems\EA\Scripts\JScript\JScript - Attribute Lifecycle Example.js(145,70) : error JS1135: Variable 'promptOK' has not been declared


I am not sure if I am using correct command to compile JScript. All the sample code, reference, documentation on Sparx Website is mostly on VBScript, C# and Java. I did not find much reference about JScript.

Please help me correctly linking the Interop.EA.dll during compilation of JScript.

Thanks

Pages: [1]