Question Arto Alatalo · Mar 10, 2022 Alternatives to View Journal Is View Journal of Cache Management Portal the only way to search in Cache journals? I need a way to define several search conditions and Portal often breaks on http timeout. #Journaling #Management Portal #Caché 0 6 1 419
Question Arto Alatalo · May 5, 2020 ERROR #5005: Cannot open file '/var/cache/cache.cpf_3458', why? Every time I click Save on System > Configuration > Memory and Startup page, I get "ERROR #5005: Cannot open file '/var/cache/cache.cpf_XXX' " error message, where XXX is a random number. This problem appeared some time ago without any clear reason. All file access right are seems OK. Any ideas? #Caché 0 3 0 790
Question Arto Alatalo · May 5, 2020 Ooops "Daemon WRTDMN died. Freezing system". But why??? (We are in contact with IS support for this problem but I would like to ask Community too, perhaps somebody experienced this problem in the past) Hello Community, we need your help with Cache 2017.2 freezing on Linux machine. Since we moved our primary production Cache from Windows to Linux in the begging of this year, we have experienced system freezing twice. Yesterday without any good reason Cache stopped to respond with the log shown below. Questions: #Red Hat Enterprise Linux (RHEL) #Caché 0 5 0 956
Question Arto Alatalo · Apr 29, 2020 OpenId() is slow, why? Hi Community! I need your advice. The method below is 6 times slower on production server than on developing machine: #Object Data Model #ObjectScript #Performance #Caché 1 27 0 1K
Question Arto Alatalo · Apr 15, 2020 %CacheSQLStorage: data location as variable If two globals have same structure, how to reuse one CacheSQLStorage-based class to read both locations? Thanks! Update: Let's say we have two globals: ^a(1)="dataa1"^a(2)="dataa2" and ^b(1)="datab1"^b(2)="datab2" i.e. the structure difference is global name only. I would like to have two classes TableA and TableB both are inherited from TableAB, and TableAB taking global name as a parameter. #Mapping #ObjectScript #Caché 2 14 0 623
Question Arto Alatalo · Mar 27, 2020 Management Portal: how to view globals in opposite order? A simple question: View Global Data page shows globals always in ascending subscript order. Very often I need to see latest page, is there any trick for this? Update: I mean to see last subscripts in Management Portal, not using the code #Globals #Management Portal #Caché 2 27 0 814
Question Arto Alatalo · Jan 30, 2020 Query Plan uses temp-file, why? A quick question regarding to SQL Query Plan:Why these two requests have different plans, in particularly, why second request needs temp file? To me, temp file is a bad thing which should be avoided, right? select * from Test.Log where cdate = 1 select * from Test.Log where cdate > 1 Plan for 1: Read index map Test.Log.cdateIndex, using the given %SQLUPPER(cdate), and looping on ID.For each row: Read master map Test.Log.IDKEY, using the given idkey value. Output the row. Plan for 2: #SQL #Caché 0 4 0 248
Question Arto Alatalo · Nov 1, 2019 Cache Studio: Debug->Go fails with error 6704 All of the sudden, Cache Studio's Debug->Run command started to fail with error '6704 Target has exited debugger' (German: Kein Anbinden möglich). What could be a reason of that? Today we installed Cache Web Terminal (https://intersystems-community.github.io/webterminal/), could it be possible that the terminal somehow hijacked some debugging api end-point? #Debugging #Caché 0 5 0 434
Question Arto Alatalo · Aug 12, 2019 How to read global via Stream interface? I have global with binary data, structured like:^a(1)=<binary>^a(2)=<binary>^a(n)=<binary>What could be easiest way to read it via Stream interface? I.e. to pass an adapter to a function expecting Stream? #ObjectScript #Caché 1 4 0 747
Question Arto Alatalo · Feb 21, 2019 Compilation error on %ExtentMgr.GlobalRegistry.LockUse I'm getting this compilation error: Kompilieren der Klasse digi.packetFEHLER #5002: Caché-Fehler: <FUNCTION>zLockUse+5^%ExtentMgr.GlobalRegistry.1 > FEHLER #5030: Während der Kompilierung von Klasse 'digi.packet' ist ein Fehler aufgetretenwhen importing one of my classes on the production server into one particular namespace: #ObjectScript #Caché 0 8 0 731
Question Arto Alatalo · Jun 12, 2018 Management Portal eats all licenses Time after time on CSP Session page of our Cache 2017.2.1 installation I see that all licenses are consumed by CSP sessions of /csp/sys, /csp/sys/op/and /csp/sys/mgr applications which I assume are sessions of Management Portal. The problem is that there are only few of us accessing the Portal and as we test by browsing Portal, we can't reproduce the problem. Is there any way to see client IP of CSP session? Any other way to approach the problem?The problem looks very similar to the Forefox-related one but we don't use Forefox. #Caché #Management Portal 0 7 0 453
Question Arto Alatalo · May 30, 2018 SAX XML Parser-error <STORE> on large xml import %XML.Reader.OpenFile fails with SAX XML Parser-Error: <STORE> on importing large (1.5 GB) xml file. Any workaround for it?My goal is one-time import of the file using classes generated by its XML schema. #Caché #XML #ObjectScript 0 8 0 1.2K
Question Arto Alatalo · Apr 12, 2018 How to resume inner $order loop from given point? A function iterates global ^data(a,b,c) with $order using 3 nested for-loops. At certain point, for example with a=10, b=20, c=30, the function exits and later has to resume the iteration from the same point. What could be easiest way for it? My solution looks too ugly. #ObjectScript #Caché 0 14 0 794
Question Arto Alatalo · Feb 2, 2018 ASP.NET *Core* Identity Caché Provider Has anyone managed to port ASP.NET Identity Caché Provider to ASP.NET Core?Edit: this one https://github.com/intersystems-ru/identity_cache I mean #Caché #.NET 0 1 0 652
Question Arto Alatalo · Dec 14, 2017 %SYS.Namespace.ListAll reports one namespace twice Today %SYS.Namespace.ListAll started to report one namespace, for example USER, two times: once as "USER" and once as USER's database "^^c:\databases\user".Details: my Cache instance has 50+ local namespaces. Today I have "touched" 3 of them (imported new classes), and now ListAll reports each of these 3 twice. Looks like ListAll is the only one who sees those strange duplicates, in all other places (Portal, Studio) only USER is shown.Can someone explain what is happening? #Caché 0 9 0 336
Question Arto Alatalo · Apr 12, 2017 how to export PRJ file without BreakPoints? Is it possible to export PRJ file without section BreakPoints and Target attribute? /diffexport does't help.They just make noise when pushing into GIT #ObjectScript #Caché 0 9 0 337
Question Arto Alatalo · Apr 12, 2017 how to break at line throwing exception In case of system exception (missing property, method etc) Cache Studio's debugger stops at the line throwing it. Unless the line is in try/catch block. Is there a way to make it break also in try/catch case? Cache 2016.1.1 #Debugging #ObjectScript #Caché 0 1 0 309
Question Arto Alatalo · Apr 12, 2017 Call Stack view crashes Cache Studio Cache Studio almost always crashes when I click rows in Call Stack view during debugging. Then Cache has to be restarted because last edited file remains locked.Looks like I'm the only one who uses the debugger. Or is there a magic spell to make stack view working? Cache 2016.1.1 #Debugging #ObjectScript #Caché 1 6 0 731
Question Arto Alatalo · Apr 11, 2017 Copy of base method in derived class tricks debuger I have classes A and B, B derived from A, A has method Abc.From INT of class B I see that compiler copies implementation of Abc to class B, so that Abc exists both in A and B.As result, when B invokes Abs, B.Abs() is executed instead of A.Abs(). In result debuger is not able to step into Abs and breakpoints in A.Abs never hit.Why this happens and how can I avoid this?Update: OK, now I know the reason: compiler makes the copy if Abc has this line: #Compiler #ObjectScript #Caché 0 21 0 428