Closed zdavatz closed 3 years ago
I still get:
2021-07-09 08:38:13.357455+0200 AmiKo Desitin[1197:12088] Memory in use (in bytes): 216743936
2021-07-09 08:38:27.781636+0200 AmiKo Desitin[1197:12088] -[MLPrescriptionsAdapter savePrescriptionForPatient:withUniqueHash:andOverwrite:] new currentFileName:file:///Users/zdavatz/Library/Containers/amikoosx/Data/Documents/amk/abe223f6181810b398d4cc21da7ad984a933f0812e4e67785b392b24f11740e2/RZ_2021-07-09T083827.amk
2021-07-09 08:38:27.791015+0200 AmiKo Desitin[1197:12088] -[MLMainWindowController loadPrescription:andRefreshHistory:] hash: 49AB7873-AE6A-4F90-97B6-77857C5D873C
2021-07-09 08:38:27.792853+0200 AmiKo Desitin[1197:12088] Memory in use (in bytes): 216244224
2021-07-09 08:38:30.715093+0200 AmiKo Desitin[1197:12088] [General] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
2021-07-09 08:38:30.717048+0200 AmiKo Desitin[1197:12088] [General] (
0 CoreFoundation 0x00007fff2054687b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff2027ed92 objc_exception_throw + 48
2 CoreFoundation 0x00007fff205fc2ea _CFThrowFormattedException + 202
3 CoreFoundation 0x00007fff20607dd1 -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x00007fff20455ecd -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 251
5 CoreFoundation 0x00007fff20455db8 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 AmiKo Desitin 0x0000000100be6b86 +[MedidataXMLGenerator xmlInvoiceInsuranceWithPatient:] + 246
7 AmiKo Desitin 0x0000000100be93e1 +[MedidataXMLGenerator xmlInvoiceRequestWithOperator:patient:prescriptionItems:] + 6833
8 AmiKo Desitin 0x0000000100be9c45 +[MedidataXMLGenerator xmlInvoiceRequestDocumentWithOperator:patient:prescriptionItems:] + 149
9 AmiKo Desitin 0x0000000100b936d5 -[MLMainWindowController onSendPrescriptionToMedidata:] + 213
10 AppKit 0x00007fff22eec70b -[NSApplication(NSResponder) sendAction:to:from:] + 288
11 AppKit 0x00007fff22eec5af -[NSControl sendAction:to:] + 86
12 AppKit 0x00007fff22eec4e1 __26-[NSCell _sendActionFrom:]_block_invoke + 131
13 AppKit 0x00007fff22eec3e8 -[NSCell _sendActionFrom:] + 171
14 AppKit 0x00007fff22eec32e -[NSButtonCell _sendActionFrom:] + 96
15 AppKit 0x00007fff22ee9417 NSControlTrackMouse + 1820
16 AppKit 0x00007fff22ee8cd3 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130
17 AppKit 0x00007fff22ee8b9a -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 697
18 AppKit 0x00007fff22ee7ec2 -[NSControl mouseDown:] + 722
19 AppKit 0x00007fff22ee62ae -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4961
20 AppKit 0x00007fff22e55a98 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2594
21 AppKit 0x00007fff22e54e56 -[NSWindow(NSEventRouting) sendEvent:] + 347
22 AppKit 0x00007fff22e53264 -[NSApplication(NSEvent) sendEvent:] + 352
23 AppKit 0x00007fff2312c5fd -[NSApplication _handleEvent:] + 65
24 AppKit 0x00007fff22cbc25e -[NSApplication run] + 623
25 AppKit 0x00007fff22c9047c NSApplicationMain + 816
26 AmiKo Desitin 0x0000000100b81c82 main + 34
27 libdyld.dylib 0x00007fff203eef5d start + 1
28 ??? 0x0000000000000003 0x0 + 3
)
all of a sudden the sending worked:
2021-07-09 08:45:51.186874+0200 AmiKo Desitin[1197:12088] Memory in use (in bytes): 226447360
2021-07-09 08:46:40.590528+0200 AmiKo Desitin[1197:19894] -[SmartCard observeValueForKeyPath:ofObject:change:context:] keyPath <valid>
2021-07-09 08:46:40.590691+0200 AmiKo Desitin[1197:19894] -[SmartCard observeValueForKeyPath:ofObject:change:context:] keyPath <state>
2021-07-09 08:46:40.590897+0200 AmiKo Desitin[1197:19894] state: TKSmartCardSlotStateEmpty for <TKSmartCardSlot: 0x0x6000009e6760 'Identive CLOUD 2700 R Smart Card Reader'>
2021-07-09 08:46:40.591094+0200 AmiKo Desitin[1197:19894] -[SmartCard observeValueForKeyPath:ofObject:change:context:] keyPath <valid>
2021-07-09 09:04:28.961075+0200 AmiKo Desitin[1197:27087] [logging] volume does not support data protection, stripping SQLITE_OPEN_FILEPROTECTION_* flags
2021-07-09 09:04:28.961670+0200 AmiKo Desitin[1197:27087] [logging] volume does not support data protection, stripping SQLITE_OPEN_FILEPROTECTION_* flags
2021-07-09 09:04:29.234882+0200 AmiKo Desitin[1197:28316] [connection] nw_endpoint_handler_set_adaptive_read_handler [C1 212.51.146.241:8100 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
2021-07-09 09:04:29.235748+0200 AmiKo Desitin[1197:28316] [connection] nw_endpoint_handler_set_adaptive_write_handler [C1 212.51.146.241:8100 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed
2021-07-09 09:04:29.283207+0200 AmiKo Desitin[1197:28316] response data: {"transmissionReference":"5bfb7422-22f3-4662-8263-5d37606c1ded"}
2021-07-09 09:04:29.283403+0200 AmiKo Desitin[1197:28316] response: <NSHTTPURLResponse: 0x600002c4e960> { URL: https://212.51.146.241:8100/md/ela/uploads } { Status Code: 201, Headers {
Connection = (
"keep-alive"
);
"Content-Type" = (
"application/json"
);
Date = (
"Fri, 09 Jul 2021 07:04:29 GMT"
);
Server = (
nginx
);
"Transfer-Encoding" = (
Identity
);
} }
2021-07-09 09:04:29.283454+0200 AmiKo Desitin[1197:28316] error: (null)
I am now testing on iMac M1. Interesting, the first try to send to Medidata always results in:
2021-07-09 09:17:12.146634+0200 CoMed Desitin[47424:8018233] Memory in use (in bytes): 248332288
2021-07-09 09:17:18.734464+0200 CoMed Desitin[47424:8018233] [General] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
2021-07-09 09:17:18.738367+0200 CoMed Desitin[47424:8018233] [General] (
0 CoreFoundation 0x000000018b024c78 __exceptionPreprocess + 240
1 libobjc.A.dylib 0x000000018ad4d0a8 objc_exception_throw + 60
2 CoreFoundation 0x000000018b0efb68 -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x000000018b0fd930 -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x000000018af2dc10 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 320
5 CoreFoundation 0x000000018af2daa4 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 60
6 CoMed Desitin 0x00000001006533c8 +[MedidataXMLGenerator xmlInvoiceInsuranceWithPatient:] + 244
7 CoMed Desitin 0x0000000100655254 +[MedidataXMLGenerator xmlInvoiceRequestWithOperator:patient:prescriptionItems:] + 5040
8 CoMed Desitin 0x0000000100655888 +[MedidataXMLGenerator xmlInvoiceRequestDocumentWithOperator:patient:prescriptionItems:] + 140
9 CoMed Desitin 0x000000010060fa60 -[MLMainWindowController onSendPrescriptionToMedidata:] + 208
10 AppKit 0x000000018d9abd7c -[NSApplication(NSResponder) sendAction:to:from:] + 456
11 AppKit 0x000000018d9abb78 -[NSControl sendAction:to:] + 96
12 AppKit 0x000000018d9aba80 __26-[NSCell _sendActionFrom:]_block_invoke + 152
13 AppKit 0x000000018d9ab970 -[NSCell _sendActionFrom:] + 196
14 AppKit 0x000000018d9ab89c -[NSButtonCell _sendActionFrom:] + 104
15 AppKit 0x000000018d9a8910 NSControlTrackMouse + 1696
16 AppKit 0x000000018d9a8244 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 160
17 AppKit 0x000000018d9a80b8 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 740
18 AppKit 0x000000018d9a732c -[NSControl mouseDown:] + 636
19 AppKit 0x000000018d9a56b4 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4384
20 AppKit 0x000000018d916064 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2444
21 AppKit 0x000000018d91546c -[NSWindow(NSEventRouting) sendEvent:] + 352
22 AppKit 0x000000018d914344 -[NSApplication(NSEvent) sendEvent:] + 2568
23 AppKit 0x000000018dbe1b78 -[NSApplication _handleEvent:] + 76
24 AppKit 0x000000018d783cd4 -[NSApplication run] + 636
25 AppKit 0x000000018d75571c NSApplicationMain + 1064
26 CoMed Desitin 0x0000000100606134 main + 36
27 libdyld.dylib 0x000000018aec5450 start + 4
)
Clicking the Medidata Button results in