How to add path parameter in elasticsearch Java bulk Api - elasticsearch

I'm using Java bulk Api,Elasticsearch 6.6.2, and expect to POST bulk request as
POST /<index>/_bulk,
but i got POST /_bulk instead (see packet captured below).
I know these 2 POST methods are the same, but there're a proxy between my app and ES, the path parameter is for the proxy for some reasons(I don't know why).
so, I wonder how to set the path parameter in Java ,so that request can be sent in POST /<index>/_bulk format.
Here's the code
RestHighLevelClient client;
/* some client init code ....*/
...
String INDEX = "api_track";
String DOC_TYPE = "_doc";
BulkProcessor.Builder builder = BulkProcessor.builder(
(request, bulkListener) ->
client.bulkAsync(request, RequestOptions.DEFAULT, bulkListener),
listener);
builder.setBulkActions(500);
builder.setBulkSize(new ByteSizeValue(1L, ByteSizeUnit.MB));
builder.setConcurrentRequests(0);
builder.setFlushInterval(TimeValue.timeValueSeconds(5L));
builder.setBackoffPolicy(BackoffPolicy
.constantBackoff(TimeValue.timeValueSeconds(1L), 3));
builder.setGlobalIndex(INDEX);
builder.setGlobalType(DOC_TYPE);
bulkProcessor = builder.build();
IndexRequest request = new IndexRequest().index(INDEX).type(DOC_TYPE).source(maps);
bulkProcessor.add(request);
and the packet captured:
0x0000: 0200 0000 4500 0277 0000 4000 4006 12c9 ....E..w..#.#...
0x0010: 1e27 dee3 0ba3 1d0b e142 23f0 85d1 ad67 .'.......B#....g
0x0020: 1540 31d3 8018 0801 3eb0 0000 0101 080a .#1.....>.......
0x0030: 1500 c5e6 b6ba 7ff0 504f 5354 202f 5f62 ........POST./_b <-- POST format here
0x0040: 756c 6b3f 7469 6d65 6f75 743d 316d 2048 ulk?timeout=1m.H
0x0050: 5454 502f 312e 310d 0a43 6f6e 7465 6e74 TTP/1.1..Content
0x0060: 2d4c 656e 6774 683a 2033 3335 0d0a 436f -Length:.335..Co
0x0070: 6e74 656e 742d 5479 7065 3a20 6170 706c ntent-Type:.appl
0x0080: 6963 6174 696f 6e2f 6a73 6f6e 0d0a 486f ication/json..Ho
0x0090: 7374 3a20 7365 6172 6368 2e61 6c69 7061 st:.search.alipa
0x00a0: 792e 6e65 743a 3932 3030 0d0a 436f 6e6e y.net:9200..Conn
0x00b0: 6563 7469 6f6e 3a20 4b65 6570 2d41 6c69 ection:.Keep-Ali
0x00c0: 7665 0d0a 5573 6572 2d41 6765 6e74 3a20 ve..User-Agent:.
0x00d0: 4170 6163 6865 2d48 7474 7041 7379 6e63 Apache-HttpAsync
0x00e0: 436c 6965 6e74 2f34 2e31 2e34 2028 4a61 Client/4.1.4.(Ja
0x00f0: 7661 2f31 2e38 2e30 5f31 3531 290d 0a41 va/1.8.0_151)..A
0x0100: 7574 686f 7269 7a61 7469 6f6e 3a20 4261 uthorization:.Ba
0x0110: 7369 6320 6247 6c75 6132 4d36 527a 4e61 sic.bGlua2M6RzNa
0x0120: 5954 4e4e 5755 593d 0d0a 0d0a 7b22 696e YTNNWUY=....{"in
0x0130: 6465 7822 3a7b 225f 696e 6465 7822 3a22 dex":{"_index":"
0x0140: 6170 695f 7472 6163 6b22 2c22 5f74 7970 api_track","_typ
0x0150: 6522 3a22 5f64 6f63 227d 7d0a 7b22 6372 e":"_doc"}}.{"cr
0x0160: 6561 7465 6441 7422 3a22 3230 3230 2d30 eatedAt":"2020-0
0x0170: 322d 3132 5430 383a 3438 3a34 332e 3333 2-12T08:48:43.33
0x0180: 3822 2c22 686f 7374 4164 6472 223a 2231 8","hostAddr":"1
0x0190: 3237 2e30 2e30 2e31 222c 2274 656e 616e 27.0.0.1","tenan
0x01a0: 7449 6422 3a6e 756c 6c2c 2273 6572 7665 tId":null,"serve
0x01b0: 724e 616d 6522 3a6e 756c 6c2c 2270 6172 rName":null,"par
0x01c0: 616d 7322 3a22 2670 7269 7661 7465 5f74 ams":"&private_t
0x01d0: 6f6b 656e 3d2a 2a2a 266f 7264 6572 5f62 oken=***&order_b
0x01e0: 793d 7369 7a65 222c 2275 7365 724e 616d y=size","userNam
0x01f0: 6522 3a22 6d79 7363 6d22 2c22 7573 6572 e":"myscm","user
0x0200: 4964 223a 3330 3034 2c22 7061 7468 6e61 Id":3004,"pathna
0x0210: 6d65 223a 222f 6170 692f 7634 2f70 726f me":"/api/v4/pro
0x0220: 6a65 6374 732f 3339 3235 352f 6c61 6e67 jects/39255/lang
0x0230: 7561 6765 7322 2c22 7265 6d6f 7465 4164 uages","remoteAd
0x0240: 6472 223a 2233 302e 3339 2e32 3232 2e32 dr":"30.39.222.2
0x0250: 3237 222c 2275 7064 6174 6564 4174 223a 27","updatedAt":
0x0260: 2232 3032 302d 3032 2d31 3254 3038 3a34 "2020-02-12T08:4
0x0270: 383a 3433 2e33 3338 227d 0a 8:43.338"}.

It can be done by client.getLowLevelClient().performRequest(new Request(method, endpoint)), fill INDEX into parameter of method.

Related

Intermittent connection success to Firebird 1.5.4 using RazorSQL 9.3 and included (current) Firebird JDBC driver

I'm connecting to a set of Firebird 1.5.2 servers (2.4.20 Linux kernel - circa 2003. These are a closed, end of life system serving a telephony application (Service Control Point) in an SS7 switching environment. They will not ever be upgraded to current distributions of any components, would a monumental job from rewriting kernel drivers up through two hardware abstraction layers. Just in case you were about to ask. Moreover, they run and run and rarely fail with due to tremendous redundancy in power, drives, processes and connectivity. Designed for Five Nines.
We have a central syncing application that is also running 1.5.2, in-house custom connect C library, connections are fine, reliable, rock solid.
In order to assist in some service migrations (I was the original principal designer of the system 18 years ago), I need to access the databases (as well as other components); Now I had an old VM running FlameRobin, but you know, Intel VM not happy to be on an M1. So I just installed Razor 9.3 on my very new Mac M1.
It does connect to the databases, but it is a hit or miss for success. Sometimes it gets it on the first try, other time 3 or 4 or 5 failures then bang, connect.
I recalled a colleague in our IS group mention that for a Windows Delphi app [unclear how it connects] they had to set the connection attempts into a loop (tries a max of 50 times), because it was likely to fail. So on fail I knew to just try again, being reasonably sure of my settings.
I understand that the current JDBC driver supports Firebird 2+, and that it works on 1.5.4 is a bonus; and humbly I ask a two fold question:
One of curiosity: why is it intermittent - I would expect the same behaviour across attempts?
One of fear: is a subsequent update to the JDBC driver likely to fix the inconsistency and make all attempts fail?
When connection fails, the error received is:
ERROR: An error occurred while trying to make a connection to
the database:
JDBC URL:
jdbc:firebirdsql://10.X.X.X//usr/local/somepath/some.fdb
connection rejected by remote interface [SQLState:08004, ISC
error code:335544421]
On the server the firebird shows
SCP01 Wed Apr 7 11:51:33 2021
SERVER/process_packet: connect reject, server exiting
SCP01 Wed Apr 7 11:51:33 2021
SERVER/process_packet: connect reject, server exiting
tcpdump of successful connection - this trace differs from the failure at the 16 or 17th packet. The 192. is the client, the 10. is the server.
09:19:19.467277 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 64)
192.168.52.114.49170 > 10.4.1.61.3050: Flags [SEW], cksum 0x84b7 (correct), seq 3429195333, win 65535, options [mss 1300,nop,wscale 6,nop,nop,TS val 1496670700 ecr 0,sackOK,eol], length 0
0x0000: 4500 0040 0000 4000 4006 3a5d c0a8 3472 E..#..#.#.:]..4r
0x0010: 0a04 013d c012 0bea cc65 5e45 0000 0000 ...=.....e^E....
0x0020: b0c2 ffff 84b7 0000 0204 0514 0103 0306 ................
0x0030: 0101 080a 5935 61ec 0000 0000 0402 0000 ....Y5a.........
09:19:19.492791 IP (tos 0x0, ttl 57, id 1734, offset 0, flags [DF], proto TCP (6), length 60)
10.4.1.61.3050 > 192.168.52.114.49170: Flags [S.], cksum 0xeb79 (correct), seq 610193967, ack 3429195334, win 5792, options [mss 1460,sackOK,TS val 1450067643 ecr 1496670700,nop,wscale 0], length 0
0x0000: 4500 003c 06c6 4000 3906 3a9b 0a04 013d E..<..#.9.:....=
0x0010: c0a8 3472 0bea c012 245e d22f cc65 5e46 ..4r....$^./.e^F
0x0020: a012 16a0 eb79 0000 0204 05b4 0402 080a .....y..........
0x0030: 566e 46bb 5935 61ec 0103 0300 VnF.Y5a.....
09:19:19.492813 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49170 > 10.4.1.61.3050: Flags [.], cksum 0x28c2 (correct), seq 3429195334, ack 610193968, win 2052, options [nop,nop,TS val 1496670725 ecr 1450067643], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c012 0bea cc65 5e46 245e d230 ...=.....e^F$^.0
0x0020: 8010 0804 28c2 0000 0101 080a 5935 6205 ....(.......Y5b.
0x0030: 566e 46bb VnF.
09:19:19.494984 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 528)
192.168.52.114.49170 > 10.4.1.61.3050: Flags [P.], cksum 0x8aa4 (correct), seq 3429195334:3429195810, ack 610193968, win 2052, options [nop,nop,TS val 1496670727 ecr 1450067643], length 476
0x0000: 4500 0210 0000 4000 4006 388d c0a8 3472 E.....#.#.8...4r
0x0010: 0a04 013d c012 0bea cc65 5e46 245e d230 ...=.....e^F$^.0
0x0020: 8018 0804 8aa4 0000 0101 080a 5935 6207 ............Y5b.
0x0030: 566e 46bb 0000 0001 0000 0013 0000 0003 VnF.............
0x0040: 0000 0001 0000 0020 2f75 7372 2f6c 6f63 ......../usr/loc
<snip>
0x01a0: 0419 4461 6e69 656c 732d 4d61 6342 6f6f ..Daniels-MacBoo
0x01b0: 6b2d 4169 722e 6c6f 6361 6c06 0020 2020 k-Air.local.....
0x01c0: 0000 000a 0000 0001 0000 0002 0000 0003 ................
0x01d0: 0000 0001 0000 800b 0000 0001 0000 0005 ................
0x01e0: 0000 0005 0000 0002 0000 800c 0000 0001 ................
0x01f0: 0000 0005 0000 0005 0000 0003 0000 800d ................
0x0200: 0000 0001 0000 0005 0000 0005 0000 0004 ................
09:19:19.520781 IP (tos 0x0, ttl 57, id 1735, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.49170: Flags [.], cksum 0x15c5 (correct), seq 610193968, ack 3429195810, win 6432, options [nop,nop,TS val 1450067646 ecr 1496670727], length 0
0x0000: 4500 0034 06c7 4000 3906 3aa2 0a04 013d E..4..#.9.:....=
0x0010: c0a8 3472 0bea c012 245e d230 cc65 6022 ..4r....$^.0.e`"
0x0020: 8010 1920 15c5 0000 0101 080a 566e 46be ............VnF.
0x0030: 5935 6207 Y5b.
09:19:19.536740 IP (tos 0x0, ttl 57, id 1753, offset 0, flags [DF], proto TCP (6), length 56)
10.4.1.61.3050 > 192.168.52.114.49170: Flags [P.], cksum 0x15b3 (correct), seq 610193968:610193972, ack 3429195810, win 6432, options [nop,nop,TS val 1450067648 ecr 1496670727], length 4
0x0000: 4500 0038 06d9 4000 3906 3a8c 0a04 013d E..8..#.9.:....=
0x0010: c0a8 3472 0bea c012 245e d230 cc65 6022 ..4r....$^.0.e`"
0x0020: 8018 1920 15b3 0000 0101 080a 566e 46c0 ............VnF.
0x0030: 5935 6207 0000 0004 Y5b.....
09:19:19.536752 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49170 > 10.4.1.61.3050: Flags [.], cksum 0x26b3 (correct), seq 3429195810, ack 610193972, win 2052, options [nop,nop,TS val 1496670767 ecr 1450067648], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c012 0bea cc65 6022 245e d234 ...=.....e`"$^.4
0x0020: 8010 0804 26b3 0000 0101 080a 5935 622f ....&.......Y5b/
0x0030: 566e 46c0 VnF.
09:19:19.536762 IP (tos 0x0, ttl 57, id 1754, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.49170: Flags [F.], cksum 0x15be (correct), seq 610193972, ack 3429195810, win 6432, options [nop,nop,TS val 1450067648 ecr 1496670727], length 0
0x0000: 4500 0034 06da 4000 3906 3a8f 0a04 013d E..4..#.9.:....=
0x0010: c0a8 3472 0bea c012 245e d234 cc65 6022 ..4r....$^.4.e`"
0x0020: 8011 1920 15be 0000 0101 080a 566e 46c0 ............VnF.
0x0030: 5935 6207 Y5b.
09:19:19.536770 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49170 > 10.4.1.61.3050: Flags [.], cksum 0x26b2 (correct), seq 3429195810, ack 610193973, win 2052, options [nop,nop,TS val 1496670767 ecr 1450067648], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c012 0bea cc65 6022 245e d235 ...=.....e`"$^.5
0x0020: 8010 0804 26b2 0000 0101 080a 5935 622f ....&.......Y5b/
0x0030: 566e 46c0 VnF.
09:19:19.536816 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49170 > 10.4.1.61.3050: Flags [F.], cksum 0x26b1 (correct), seq 3429195810, ack 610193973, win 2052, options [nop,nop,TS val 1496670767 ecr 1450067648], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c012 0bea cc65 6022 245e d235 ...=.....e`"$^.5
0x0020: 8011 0804 26b1 0000 0101 080a 5935 622f ....&.......Y5b/
0x0030: 566e 46c0 VnF.
09:19:19.553654 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 64)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [SEW], cksum 0x7202 (correct), seq 116864533, win 65535, options [mss 1300,nop,wscale 6,nop,nop,TS val 1496670783 ecr 0,sackOK,eol], length 0
0x0000: 4500 0040 0000 4000 4006 3a5d c0a8 3472 E..#..#.#.:]..4r
0x0010: 0a04 013d c013 0bea 06f7 3615 0000 0000 ...=......6.....
0x0020: b0c2 ffff 7202 0000 0204 0514 0103 0306 ....r...........
0x0030: 0101 080a 5935 623f 0000 0000 0402 0000 ....Y5b?........
09:19:19.559660 IP (tos 0x0, ttl 57, id 1755, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.49170: Flags [.], cksum 0x1593 (correct), seq 610193973, ack 3429195811, win 6432, options [nop,nop,TS val 1450067650 ecr 1496670767], length 0
0x0000: 4500 0034 06db 4000 3906 3a8e 0a04 013d E..4..#.9.:....=
0x0010: c0a8 3472 0bea c012 245e d235 cc65 6023 ..4r....$^.5.e`#
0x0020: 8010 1920 1593 0000 0101 080a 566e 46c2 ............VnF.
0x0030: 5935 622f Y5b/
09:19:19.591334 IP (tos 0x0, ttl 57, id 1756, offset 0, flags [DF], proto TCP (6), length 60)
10.4.1.61.3050 > 192.168.52.114.49171: Flags [S.], cksum 0x7b97 (correct), seq 614280980, ack 116864534, win 5792, options [mss 1460,sackOK,TS val 1450067653 ecr 1496670783,nop,wscale 0], length 0
0x0000: 4500 003c 06dc 4000 3906 3a85 0a04 013d E..<..#.9.:....=
0x0010: c0a8 3472 0bea c013 249d 2f14 06f7 3616 ..4r....$./...6.
0x0020: a012 16a0 7b97 0000 0204 05b4 0402 080a ....{...........
0x0030: 566e 46c5 5935 623f 0103 0300 VnF.Y5b?....
09:19:19.591352 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [.], cksum 0xb8d3 (correct), seq 116864534, ack 614280981, win 2052, options [nop,nop,TS val 1496670820 ecr 1450067653], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c013 0bea 06f7 3616 249d 2f15 ...=......6.$./.
0x0020: 8010 0804 b8d3 0000 0101 080a 5935 6264 ............Y5bd
0x0030: 566e 46c5 VnF.
09:19:19.592148 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 532)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [P.], cksum 0x326f (correct), seq 116864534:116865014, ack 614280981, win 2052, options [nop,nop,TS val 1496670820 ecr 1450067653], length 480
0x0000: 4500 0214 0000 4000 4006 3889 c0a8 3472 E.....#.#.8...4r
0x0010: 0a04 013d c013 0bea 06f7 3616 249d 2f15 ...=......6.$./.
0x0020: 8018 0804 326f 0000 0101 080a 5935 6264 ....2o......Y5bd
0x0030: 566e 46c5 0000 0001 0000 0013 0000 0003 VnF.............
0x0040: 0000 0001 0000 0021 2f75 7372 2f6c 6f63 .......!/usr/loc
<snip>
0x01a0: 6e69 656c 0419 4461 6e69 656c 732d 4d61 niel..Daniels-Ma
0x01b0: 6342 6f6f 6b2d 4169 722e 6c6f 6361 6c06 cBook-Air.local.
0x01c0: 0020 2020 0000 000a 0000 0001 0000 0002 ................
0x01d0: 0000 0003 0000 0001 0000 800b 0000 0001 ................
0x01e0: 0000 0005 0000 0005 0000 0002 0000 800c ................
0x01f0: 0000 0001 0000 0005 0000 0005 0000 0003 ................
0x0200: 0000 800d 0000 0001 0000 0005 0000 0005 ................
0x0210: 0000 0004 ....
09:19:19.625717 IP (tos 0x0, ttl 57, id 1757, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.49171: Flags [.], cksum 0xa5d3 (correct), seq 614280981, ack 116865014, win 6432, options [nop,nop,TS val 1450067657 ecr 1496670820], length 0
0x0000: 4500 0034 06dd 4000 3906 3a8c 0a04 013d E..4..#.9.:....=
0x0010: c0a8 3472 0bea c013 249d 2f15 06f7 37f6 ..4r....$./...7.
0x0020: 8010 1920 a5d3 0000 0101 080a 566e 46c9 ............VnF.
0x0030: 5935 6264 Y5bd
09:19:19.633936 IP (tos 0x0, ttl 57, id 1746, offset 0, flags [DF], proto TCP (6), length 68)
10.4.1.61.3050 > 192.168.52.114.49171: Flags [P.], cksum 0xa5a9 (correct), seq 614280981:614280997, ack 116865014, win 6432, options [nop,nop,TS val 1450067658 ecr 1496670820], length 16
0x0000: 4500 0044 06d2 4000 3906 3a87 0a04 013d E..D..#.9.:....=
0x0010: c0a8 3472 0bea c013 249d 2f15 06f7 37f6 ..4r....$./...7.
0x0020: 8018 1920 a5a9 0000 0101 080a 566e 46ca ............VnF.
0x0030: 5935 6264 0000 0003 0000 000a 0000 0001 Y5bd............
0x0040: 0000 0003 ....
09:19:19.633943 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [.], cksum 0xb6b6 (correct), seq 116865014, ack 614280997, win 2052, options [nop,nop,TS val 1496670860 ecr 1450067658], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c013 0bea 06f7 37f6 249d 2f25 ...=......7.$./%
0x0020: 8010 0804 b6b6 0000 0101 080a 5935 628c ............Y5b.
0x0030: 566e 46ca VnF.
09:19:19.634826 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 164)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [P.], cksum 0x6de4 (correct), seq 116865014:116865126, ack 614280997, win 2052, options [nop,nop,TS val 1496670860 ecr 1450067658], length 112
0x0000: 4500 00a4 0000 4000 4006 39f9 c0a8 3472 E.....#.#.9...4r
0x0010: 0a04 013d c013 0bea 06f7 37f6 249d 2f25 ...=......7.$./%
0x0020: 8018 0804 6de4 0000 0101 080a 5935 628c ....m.......Y5b.
0x0030: 566e 46ca 0000 0013 0000 0000 0000 0021 VnF............!
0x0040: 2f75 7372 2f6c 6f63 616c 2f63 6d64 4461 /usr/local/cmdDa
<snip>
0x0080: 7351 5932 3f04 0300 0000 3904 2300 0000 sQY2?.....9.#...
0x0090: 5b0f 416d 6572 6963 612f 546f 726f 6e74 [.America/Toront
0x00a0: 6f00 0000 o...
09:19:19.703801 IP (tos 0x0, ttl 57, id 1760, offset 0, flags [DF], proto TCP (6), length 84)
10.4.1.61.3050 > 192.168.52.114.49171: Flags [P.], cksum 0xa4f2 (correct), seq 614280997:614281029, ack 116865126, win 6432, options [nop,nop,TS val 1450067664 ecr 1496670860], length 32
0x0000: 4500 0054 06e0 4000 3906 3a69 0a04 013d E..T..#.9.:i...=
0x0010: c0a8 3472 0bea c013 249d 2f25 06f7 3866 ..4r....$./%..8f
0x0020: 8018 1920 a4f2 0000 0101 080a 566e 46d0 ............VnF.
0x0030: 5935 628c 0000 0009 0000 0000 0000 0000 Y5b.............
0x0040: 0000 0000 0000 0000 0000 0001 0000 0000 ................
0x0050: 0000 0000 ....
09:19:19.703820 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [.], cksum 0xb5db (correct), seq 116865126, ack 614281029, win 2052, options [nop,nop,TS val 1496670929 ecr 1450067664], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c013 0bea 06f7 3866 249d 2f45 ...=......8f$./E
0x0020: 8010 0804 b5db 0000 0101 080a 5935 62d1 ............Y5b.
0x0030: 566e 46d0 VnF.
09:19:19.704234 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 80)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [P.], cksum 0x31c2 (correct), seq 116865126:116865154, ack 614281029, win 2052, options [nop,nop,TS val 1496670929 ecr 1450067664], length 28
0x0000: 4500 0050 0000 4000 4006 3a4d c0a8 3472 E..P..#.#.:M..4r
0x0010: 0a04 013d c013 0bea 06f7 3866 249d 2f45 ...=......8f$./E
0x0020: 8018 0804 31c2 0000 0101 080a 5935 62d1 ....1.......Y5b.
0x0030: 566e 46d0 0000 0028 0000 0000 0000 0000 VnF....(........
0x0040: 0000 0005 3e67 2021 0120 2020 0000 0400 ....>g.!........
09:19:19.740991 IP (tos 0x0, ttl 57, id 1761, offset 0, flags [DF], proto TCP (6), length 1108)
10.4.1.61.3050 > 192.168.52.114.49171: Flags [P.], cksum 0xc58d (correct), seq 614281029:614282085, ack 116865154, win 6432, options [nop,nop,TS val 1450067668 ecr 1496670929], length 1056
0x0000: 4500 0454 06e1 4000 3906 3668 0a04 013d E..T..#.9.6h...=
0x0010: c0a8 3472 0bea c013 249d 2f45 06f7 3882 ..4r....$./E..8.
0x0020: 8018 1920 c58d 0000 0101 080a 566e 46d4 ............VnF.
0x0030: 5935 62d1 0000 0009 0000 0000 0000 0000 Y5b.............
0x0040: 0000 0000 0000 0400 3e01 0001 6749 0002 ........>...gI..
0x0050: 1b4c 492d 5631 2e35 2e32 2e34 3733 3120 .LI-V1.5.2.4731.
0x0060: 4669 7265 6269 7264 2031 2e35 2b4c 492d Firebird.1.5+LI-
0x0070: 5631 2e35 2e32 2e34 3733 3120 4669 7265 V1.5.2.4731.Fire
0x0080: 6269 7264 2031 2e35 2f74 6370 2028 5343 bird.1.5/tcp.(SC
0x0090: 5030 3129 2f50 3130 2004 000a 0000 0021 P01)/P10.......!
0x00a0: 0400 0100 0000 0100 0000 0000 0000 0000 ................
<snip>
0x0440: 0000 0000 0000 0000 0000 0001 0000 0000 ................
0x0450: 0000 0000 ....
09:19:19.741007 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.49171 > 10.4.1.61.3050: Flags [.], cksum 0xb188 (correct), seq 116865154, ack 614282085, win 2035, options [nop,nop,TS val 1496670965 ecr 1450067668], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d c013 0bea 06f7 3882 249d 3365 ...=......8.$.3e
0x0020: 8010 07f3 b188 0000 0101 080a 5935 62f5 ............Y5b.
0x0030: 566e 46d4 VnF.
tcpdump of failed connection
09:18:41.315669 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 64)
192.168.52.114.65500 > 10.4.1.61.3050: Flags [SEW], cksum 0x62cf (correct), seq 1302090607, win 65535, options [mss 1300,nop,wscale 6,nop,nop,TS val 1496632746 ecr 0,sackOK,eol], length 0
0x0000: 4500 0040 0000 4000 4006 3a5d c0a8 3472 E..#..#.#.:]..4r
0x0010: 0a04 013d ffdc 0bea 4d9c 536f 0000 0000 ...=....M.So....
0x0020: b0c2 ffff 62cf 0000 0204 0514 0103 0306 ....b...........
0x0030: 0101 080a 5934 cdaa 0000 0000 0402 0000 ....Y4..........
09:18:41.347668 IP (tos 0x0, ttl 57, id 65389, offset 0, flags [DF], proto TCP (6), length 60)
10.4.1.61.3050 > 192.168.52.114.65500: Flags [S.], cksum 0x0a4c (correct), seq 570729141, ack 1302090608, win 5792, options [mss 1460,sackOK,TS val 1450063829 ecr 1496632746,nop,wscale 0], length 0
0x0000: 4500 003c ff6d 4000 3906 41f3 0a04 013d E..<.m#.9.A....=
0x0010: c0a8 3472 0bea ffdc 2204 a2b5 4d9c 5370 ..4r...."...M.Sp
0x0020: a012 16a0 0a4c 0000 0204 05b4 0402 080a .....L..........
0x0030: 566e 37d5 5934 cdaa 0103 0300 Vn7.Y4......
09:18:41.347687 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65500 > 10.4.1.61.3050: Flags [.], cksum 0x478d (correct), seq 1302090608, ack 570729142, win 2052, options [nop,nop,TS val 1496632778 ecr 1450063829], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdc 0bea 4d9c 5370 2204 a2b6 ...=....M.Sp"...
0x0020: 8010 0804 478d 0000 0101 080a 5934 cdca ....G.......Y4..
0x0030: 566e 37d5 Vn7.
09:18:41.651317 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 528)
192.168.52.114.65500 > 10.4.1.61.3050: Flags [P.], cksum 0x9017 (correct), seq 1302090608:1302091084, ack 570729142, win 2052, options [nop,nop,TS val 1496633077 ecr 1450063829], length 476
0x0000: 4500 0210 0000 4000 4006 388d c0a8 3472 E.....#.#.8...4r
0x0010: 0a04 013d ffdc 0bea 4d9c 5370 2204 a2b6 ...=....M.Sp"...
0x0020: 8018 0804 9017 0000 0101 080a 5934 cef5 ............Y4..
0x0030: 566e 37d5 0000 0001 0000 0013 0000 0003 Vn7.............
0x0040: 0000 0001 0000 0020 2f75 7372 2f6c 6f63 ......../usr/loc
<snip>
0x01a0: 0419 4461 6e69 656c 732d 4d61 6342 6f6f ..Daniels-MacBoo
0x01b0: 6b2d 4169 722e 6c6f 6361 6c06 0020 2020 k-Air.local.....
0x01c0: 0000 000a 0000 0001 0000 0002 0000 0003 ................
0x01d0: 0000 0001 0000 800b 0000 0001 0000 0005 ................
0x01e0: 0000 0005 0000 0002 0000 800c 0000 0001 ................
0x01f0: 0000 0005 0000 0005 0000 0003 0000 800d ................
0x0200: 0000 0001 0000 0005 0000 0005 0000 0004 ................
09:18:41.691197 IP (tos 0x0, ttl 57, id 65390, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.65500: Flags [.], cksum 0x3348 (correct), seq 570729142, ack 1302091084, win 6432, options [nop,nop,TS val 1450063863 ecr 1496633077], length 0
0x0000: 4500 0034 ff6e 4000 3906 41fa 0a04 013d E..4.n#.9.A....=
0x0010: c0a8 3472 0bea ffdc 2204 a2b6 4d9c 554c ..4r...."...M.UL
0x0020: 8010 1920 3348 0000 0101 080a 566e 37f7 ....3H......Vn7.
0x0030: 5934 cef5 Y4..
09:18:41.700913 IP (tos 0x0, ttl 57, id 65393, offset 0, flags [DF], proto TCP (6), length 56)
10.4.1.61.3050 > 192.168.52.114.65500: Flags [P.], cksum 0x3337 (correct), seq 570729142:570729146, ack 1302091084, win 6432, options [nop,nop,TS val 1450063864 ecr 1496633077], length 4
0x0000: 4500 0038 ff71 4000 3906 41f3 0a04 013d E..8.q#.9.A....=
0x0010: c0a8 3472 0bea ffdc 2204 a2b6 4d9c 554c ..4r...."...M.UL
0x0020: 8018 1920 3337 0000 0101 080a 566e 37f8 ....37......Vn7.
0x0030: 5934 cef5 0000 0004 Y4......
09:18:41.700921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65500 > 10.4.1.61.3050: Flags [.], cksum 0x442f (correct), seq 1302091084, ack 570729146, win 2052, options [nop,nop,TS val 1496633125 ecr 1450063864], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdc 0bea 4d9c 554c 2204 a2ba ...=....M.UL"...
0x0020: 8010 0804 442f 0000 0101 080a 5934 cf25 ....D/......Y4.%
0x0030: 566e 37f8 Vn7.
09:18:41.701042 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65500 > 10.4.1.61.3050: Flags [F.], cksum 0x442e (correct), seq 1302091084, ack 570729146, win 2052, options [nop,nop,TS val 1496633125 ecr 1450063864], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdc 0bea 4d9c 554c 2204 a2ba ...=....M.UL"...
0x0020: 8011 0804 442e 0000 0101 080a 5934 cf25 ....D.......Y4.%
0x0030: 566e 37f8 Vn7.
09:18:41.701717 IP (tos 0x0, ttl 57, id 65394, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.65500: Flags [F.], cksum 0x3342 (correct), seq 570729146, ack 1302091084, win 6432, options [nop,nop,TS val 1450063864 ecr 1496633077], length 0
0x0000: 4500 0034 ff72 4000 3906 41f6 0a04 013d E..4.r#.9.A....=
0x0010: c0a8 3472 0bea ffdc 2204 a2ba 4d9c 554c ..4r...."...M.UL
0x0020: 8011 1920 3342 0000 0101 080a 566e 37f8 ....3B......Vn7.
0x0030: 5934 cef5 Y4..
09:18:41.701727 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65500 > 10.4.1.61.3050: Flags [F.], cksum 0x442d (correct), seq 1302091084, ack 570729147, win 2052, options [nop,nop,TS val 1496633125 ecr 1450063864], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdc 0bea 4d9c 554c 2204 a2bb ...=....M.UL"...
0x0020: 8011 0804 442d 0000 0101 080a 5934 cf25 ....D-......Y4.%
0x0030: 566e 37f8 Vn7.
09:18:41.708391 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 64)
192.168.52.114.65501 > 10.4.1.61.3050: Flags [SEW], cksum 0xff81 (correct), seq 179959836, win 65535, options [mss 1300,nop,wscale 6,nop,nop,TS val 1496633132 ecr 0,sackOK,eol], length 0
0x0000: 4500 0040 0000 4000 4006 3a5d c0a8 3472 E..#..#.#.:]..4r
0x0010: 0a04 013d ffdd 0bea 0ab9 f81c 0000 0000 ...=............
0x0020: b0c2 ffff ff81 0000 0204 0514 0103 0306 ................
0x0030: 0101 080a 5934 cf2c 0000 0000 0402 0000 ....Y4.,........
09:18:41.734738 IP (tos 0x0, ttl 57, id 65391, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.65500: Flags [.], cksum 0x330d (correct), seq 570729147, ack 1302091085, win 6432, options [nop,nop,TS val 1450063868 ecr 1496633125], length 0
0x0000: 4500 0034 ff6f 4000 3906 41f9 0a04 013d E..4.o#.9.A....=
0x0010: c0a8 3472 0bea ffdc 2204 a2bb 4d9c 554d ..4r...."...M.UM
0x0020: 8010 1920 330d 0000 0101 080a 566e 37fc ....3.......Vn7.
0x0030: 5934 cf25 Y4.%
09:18:41.735602 IP (tos 0x0, ttl 57, id 65396, offset 0, flags [DF], proto TCP (6), length 60)
10.4.1.61.3050 > 192.168.52.114.65501: Flags [S.], cksum 0x6855 (correct), seq 578216133, ack 179959837, win 5792, options [mss 1460,sackOK,TS val 1450063868 ecr 1496633132,nop,wscale 0], length 0
0x0000: 4500 003c ff74 4000 3906 41ec 0a04 013d E..<.t#.9.A....=
0x0010: c0a8 3472 0bea ffdd 2276 e0c5 0ab9 f81d ..4r...."v......
0x0020: a012 16a0 6855 0000 0204 05b4 0402 080a ....hU..........
0x0030: 566e 37fc 5934 cf2c 0103 0300 Vn7.Y4.,....
09:18:41.735620 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65501 > 10.4.1.61.3050: Flags [.], cksum 0xa59c (correct), seq 179959837, ack 578216134, win 2052, options [nop,nop,TS val 1496633158 ecr 1450063868], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdd 0bea 0ab9 f81d 2276 e0c6 ...=........"v..
0x0020: 8010 0804 a59c 0000 0101 080a 5934 cf46 ............Y4.F
0x0030: 566e 37fc Vn7.
09:18:41.736482 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 532)
192.168.52.114.65501 > 10.4.1.61.3050: Flags [P.], cksum 0xb417 (correct), seq 179959837:179960317, ack 578216134, win 2052, options [nop,nop,TS val 1496633158 ecr 1450063868], length 480
0x0000: 4500 0214 0000 4000 4006 3889 c0a8 3472 E.....#.#.8...4r
0x0010: 0a04 013d ffdd 0bea 0ab9 f81d 2276 e0c6 ...=........"v..
0x0020: 8018 0804 b417 0000 0101 080a 5934 cf46 ............Y4.F
0x0030: 566e 37fc 0000 0001 0000 0013 0000 0003 Vn7.............
0x0040: 0000 0001 0000 0021 2f75 7372 2f6c 6f63 .......!/usr/loc
<snip>
0x01a0: 6e69 656c 0419 4461 6e69 656c 732d 4d61 niel..Daniels-Ma
0x01b0: 6342 6f6f 6b2d 4169 722e 6c6f 6361 6c06 cBook-Air.local.
0x01c0: 0020 2020 0000 000a 0000 0001 0000 0002 ................
0x01d0: 0000 0003 0000 0001 0000 800b 0000 0001 ................
0x01e0: 0000 0005 0000 0005 0000 0002 0000 800c ................
0x01f0: 0000 0001 0000 0005 0000 0005 0000 0003 ................
0x0200: 0000 800d 0000 0001 0000 0005 0000 0005 ................
0x0210: 0000 0004 ....
09:18:41.758811 IP (tos 0x0, ttl 57, id 65397, offset 0, flags [DF], proto TCP (6), length 52)
10.4.1.61.3050 > 192.168.52.114.65501: Flags [.], cksum 0x929e (correct), seq 578216134, ack 179960317, win 6432, options [nop,nop,TS val 1450063870 ecr 1496633158], length 0
0x0000: 4500 0034 ff75 4000 3906 41f3 0a04 013d E..4.u#.9.A....=
0x0010: c0a8 3472 0bea ffdd 2276 e0c6 0ab9 f9fd ..4r...."v......
0x0020: 8010 1920 929e 0000 0101 080a 566e 37fe ............Vn7.
0x0030: 5934 cf46 Y4.F
09:18:41.773914 IP (tos 0x0, ttl 57, id 65399, offset 0, flags [DF], proto TCP (6), length 56)
10.4.1.61.3050 > 192.168.52.114.65501: Flags [P.], cksum 0x928c (correct), seq 578216134:578216138, ack 179960317, win 6432, options [nop,nop,TS val 1450063872 ecr 1496633158], length 4
0x0000: 4500 0038 ff77 4000 3906 41ed 0a04 013d E..8.w#.9.A....=
0x0010: c0a8 3472 0bea ffdd 2276 e0c6 0ab9 f9fd ..4r...."v......
0x0020: 8018 1920 928c 0000 0101 080a 566e 3800 ............Vn8.
0x0030: 5934 cf46 0000 0004 Y4.F....
09:18:41.773923 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65501 > 10.4.1.61.3050: Flags [.], cksum 0xa38f (correct), seq 179960317, ack 578216138, win 2052, options [nop,nop,TS val 1496633195 ecr 1450063872], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdd 0bea 0ab9 f9fd 2276 e0ca ...=........"v..
0x0020: 8010 0804 a38f 0000 0101 080a 5934 cf6b ............Y4.k
0x0030: 566e 3800 Vn8.
09:18:41.774002 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 52)
192.168.52.114.65501 > 10.4.1.61.3050: Flags [F.], cksum 0xa38e (correct), seq 179960317, ack 578216138, win 2052, options [nop,nop,TS val 1496633195 ecr 1450063872], length 0
0x0000: 4500 0034 0000 4000 4006 3a69 c0a8 3472 E..4..#.#.:i..4r
0x0010: 0a04 013d ffdd 0bea 0ab9 f9fd 2276 e0ca ...=........"v..
0x0020: 8011 0804 a38e 0000 0101 080a 5934 cf6b ............Y4.k
0x0030: 566e 3800 Vn8.
<last 3 packets skipped, but out of room here, but they were somewhat repeats of prior>

spring cloud config server don't use profile

I use:
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR6</version>
in my application.properties I have put
spring.profiles.active= prod
spring.application.name= FunctionalControl
I can see on the log :
2016-10-20 17:58:17.900 INFO c.o.l.f.Application - The following profiles are active: prod
But if I use tcpdump I can see than despite does a GET /FunctionalControl/prod
on my spring.cloud.config server It does GET /FunctionalControl/default
0x0030: 15f1 ddb3 4745 5420 2f46 756e 6374 696f ....GET./Functio
0x0040: 6e61 6c43 6f6e 7472 6f6c 2f64 6566 6175 nalControl/defau
0x0050: 6c74 2048 5454 502f 312e 310d 0a41 6363 lt.HTTP/1.1..Acc
0x0060: 6570 743a 2061 7070 6c69 6361 7469 6f6e ept:.application
0x0070: 2f6a 736f 6e2c 2061 7070 6c69 6361 7469 /json,.applicati
0x0080: 6f6e 2f2a 2b6a 736f 6e0d 0a55 7365 722d on/*+json..User-
So I never manage to use FunctionalControl-prod.properties from my git repo :-(
I found myself the solution and share it with everybody.
The active profile for config server is taken in consideration only if it is put into bootstrap.properties (or .yaml) not in application.properties
file bootstrap.properties:
spring.profiles.active= prod
spring.application.name= FunctionalControl
I add this file in my project and then it works fine as you can see on this tcpdump
0x0000: 4500 00d3 0799 4000 4006 348a 7f00 0001 E.....#.#.4.....
0x0010: 7f00 0001 9f40 22b8 8800 ede0 32d2 4aa8 .....#".....2.J.
0x0020: 8018 0156 fec7 0000 0101 080a 16da ea48 ...V...........H
0x0030: 16da ea48 4745 5420 2f46 756e 6374 696f ...HGET./Functio
0x0040: 6e61 6c43 6f6e 7472 6f6c 2f70 726f 6420 nalControl/prod.
0x0050: 4854 5450 2f31 2e31 0d0a 4163 6365 7074 HTTP/1.1..Accept
0x0060: 3a20 6170 706c 6963 6174 696f 6e2f 6a73 :.application/js
0x0070: 6f6e 2c20 6170 706c 6963 6174 696f 6e2f on,.application/
0x0080: 2a2b 6a73 6f6e 0d0a 5573 6572 2d41 6765 *+json..User-Age
0x0090: 6e74 3a20 4a61 7661 2f31 2e38 2e30 5f34 nt:.Java/1.8.0_4
0x00a0: 350d 0a48 6f73 743a 206c 6f63 616c 686f 5..Host:.localho
0x00b0: 7374 3a38 3838 380d 0a43 6f6e 6e65 6374 st:8888..Connect
0x00c0: 696f 6e3a 206b 6565 702d 616c 6976 650d ion:.keep-alive.
You need to define the active profile for your config client application (in your case "FunctionalControl"). There are multiple ways to do that.
E.g. you can add the following to your client's bootstrap.properties file
spring.profiles.active=prod
or e.g. start you config client application via
mvn spring-boot:run -Dspring.profiles.active=prod
Either way, your client server application doesn't need any active profile. It will server whatever file is available in your git repo.

Corrupt .8xp file for TI 84+

I am trying to write a few programs for my TI 84+ calculator. I am writing in a basic text editor on my desktop and then compiling into .8xp files, because it is much easier than typing on the actual device. I would then like to pass the .8xp file to my calculator via TI Connect.
However, the programs I write on my desktop do not transfer to the calculator because they are "corrupt or invalid." There are no syntax errors in my TI Basic code, and it runs perfectly on my TI emulator on my computer.
I've written the exact same program on my desktop and on my calculator to experiment with the problem, and when I compare the .8xp hex files, they are almost identical, but differ slightly. Is this simply because my compiler for my .8xp files is not working properly? If that was the case, why would it run in my emulator and not the actual calculator? Are there certain functions that I should avoid when programming in TI Basic on my computer, because the compiler may have a hard time compiling? Does anyone know how to fix these corrupt file issues? I've been perusing Google to no avail as well.
If it helps, .8xp files are the user-written program files for the TI-84+, which uses z80 assembly. I am using the Wabbitemu emulator.
EDIT: Here are the two .8xp files that are not the same. One was written on my computer and then compiled, and the other was written on my calculator. The code for the program is:
Output(1,1,"HELLO")
From my calculator:
2a2a 5449 3833 462a 1a0a 0050 726f 6772
616d 2066 696c 6520 3130 2f32 392f 3136
2c20 3130 3a33 3600 0000 0000 0000 0000
0000 0000 0020 000d 000f 0005 4845 4c4c
4f00 0000 0000 0f00 0d00 e031 2b31 2b2a
4845 4c4c 4f2a 1122 05
From my computer:
2a2a 5449 3833 462a 1a0a 0047 656e 6572
6174 6564 2062 7920 7468 6520 5449 2d42
4153 4943 2043 6f6d 7069 6c65 722e 0000
0000 0000 0021 000d 0010 0005 4845 4c4c
4f32 0000 0000 1000 0e00 e031 2b31 2b2a
4845 4c4c 4f2a 113f 9605
In addition, here's the .8xp for my program that is allegedly corrupt or invalid. The code is for the game Checkers (keep in mind it still needs some serious optimization):
2a2a 5449 3833 462a 1a0a 0047 656e 6572
6174 6564 2062 7920 7468 6520 5449 2d42
4153 4943 2043 6f6d 7069 6c65 722e 0000
0000 0000 0011 0d0d 0000 0d05 4348 4543
4b45 5253 0000 000d fe0c 2a53 4554 2955
5029 424f 4152 443f e13f 3104 583f d158
6d38 3fe0 582b 392b 2a2d 2a11 3f31 7058
0458 3fd4 3f36 3404 b55d 0011 3fe2 302b
5d00 113f 3104 5d00 1032 113e 3104 5d00
1034 113e 3104 5d00 1036 113e 3104 5d00
1038 113e 3104 5d00 1039 113e 3104 5d00
1031 3111 3e31 045d 0010 3133 113e 3104
5d00 1031 3511 3e31 045d 0010 3138 113e
3104 5d00 1032 3011 3e31 045d 0010 3232
113e 3104 5d00 1032 3411 3f32 045d 0010
3431 113e 3204 5d00 1034 3311 3e32 045d
0010 3435 113e 3204 5d00 1034 3711 3e32
045d 0010 3530 113e 3204 5d00 1035 3211
3e32 045d 0010 3534 113e 3204 5d00 1035
3611 3e32 045d 0010 3537 113e 3204 5d00
1035 3911 3e32 045d 0010 3631 113e 3204
5d00 1036 3311 3f08 3132 2b31 3209 045d
013f 2a44 5241 5729 5049 4543 4553 294f
4e29 424f 4152 443f 2a4f 2a04 aa00 3e2a
702a 04aa 013e 2af0 2a04 aa02 3f31 0458
3e31 0459 3e31 045b 3e30 0441 3fd1 5b6d
3634 3f52 454d 4149 4e44 4552 105b 2b38
1104 583f ce58 6a30 3e38 0458 3f12 105b
8338 1170 3a34 2b30 1104 593f 5d00 105b
1104 413f ce41 6a31 3ee0 592b 582b aa00
113f ce41 6a32 3ee0 592b 582b aa01 113f
5b70 3104 5b3f d43f 2a55 4929 5354 5546
463f e031 2b31 302b 2a54 5552 4e3e 292a
113f e033 2b31 302b 2a53 454c 4543 542a
113e e034 2b31 322b 2a50 4945 4345 2a11
3f2a 4d41 494e 2947 414d 4529 4c4f 4f50
3f2a 1050 2b51 1129 6a29 4355 5253 4f52
2943 4f4f 5244 533f 2a10 412b 4211 296a
2950 5245 5649 4f55 5329 434f 4f52 4453
3f2a 5b29 6a29 4c49 5354 2949 4e44 4558
2941 5429 5052 4556 494f 5553 3f2a 5a29
6a29 4c49 5354 2949 4e44 4558 2941 5429
4355 5253 4f52 3f2a 5229 6a29 5641 4c55
4529 4154 2950 5245 5649 4f55 533f 2a4d
296a 2949 4e54 4552 4d45 4449 4154 4529
5641 5249 4142 4c45 2910 5445 4d50 113f
2a46 2b47 296a 2949 4e54 4552 4d45 4449
4154 4529 5641 5249 4142 4c45 2910 5445
4d50 113f 2a4e 296a 2949 4e54 4552 4d45
4449 4154 4529 4d41 5448 2956 4152 4941
424c 453f 2a10 552b 5611 296a 294d 4f56
4529 434f 4f52 4453 3f2a 4829 6a29 434f
554e 5445 5229 464f 5229 464c 4153 4849
4e47 2943 5552 534f 523f 2a43 296a 29ad
3f2a 5729 6a29 4d4f 5645 294c 1031 113c
5210 3211 3f2a 4429 6a29 4355 5252 454e
5429 504c 4159 4552 2910 4529 6a29 4845
4c50 4552 2956 4152 113f 2a4a 2b4b 296a
2944 4f55 424c 4529 4a55 4d50 2943 4f55
4e54 4552 3f2a 4929 6a29 5354 4154 5553
294f 4629 4741 4d45 3f34 0450 3e31 0451
3e31 0441 3e31 0442 3e30 045b 3e30 045a
3e30 0452 3e31 0444 3e30 0449 3fd1 496a
303f 5004 413e 5104 423f 3882 4104 4e3e
4e71 3804 4e3e 4e70 4204 5b3f d272 3fad
0443 3fd4 3f5d 0010 5b11 0452 3fce 526a
303e e041 2b42 2b2a 292a 113f ce52 6a31
3ee0 412b 422b aa00 113f ce52 6a32 3ee0
412b 422b aa01 113f ce43 6a32 343e 5171
3104 513f ce43 6a32 353e 5071 3104 503f
ce43 6a32 363e 5170 3104 513f ce43 6a33
343e 5070 3104 503f ce43 6a31 3035 3ecf
3e3f 3882 5004 4e3e 4e71 3804 4e3e 4e70
5104 5a3f 3004 483e 3004 573e 3004 4a3e
3004 4b3f 5d00 105a 1104 523f e034 2b31
302b 2a29 2929 2929 2929 2a11 3ee0 342b
3132 2b2a 4d4f 5645 2a11 3fce 526a 3240
446a 313e cf3f d157 6a30 3fce 486b 333e
cf3e e050 2b51 2b2a 292a 113e d03e e050
2b51 2baa 0111 3ed4 3f52 454d 4149 4e44
4552 105a 7139 2b38 1104 553f ce55 6a30
3e38 0455 3f12 1010 5a71 3911 8338 1170
3a34 2b30 1104 563f ce10 5a71 3911 6d30
3c5a 6a35 373c 5a6a 3431 3c5a 6a32 353c
5a6a 393e cf3e b031 0446 3ed0 3e5d 0010
5a71 3911 0446 3ed4 3fce 466a 303e cf3e
e056 2b55 2b2a af2a 113f d03e ce46 6a31
4010 5a71 3138 116c 3040 105a 7139 116f
3537 4010 5a71 3911 6f34 3140 105a 7139
116f 3235 4010 5a71 3911 6f39 3ecf 3e5a
7139 045a 3e52 454d 4149 4e44 4552 105a
7139 2b38 1104 553e ce55 6a30 3e38 0455
3e12 1010 5a71 3911 8338 1170 3a34 2b30
1104 563e 5d00 105a 7139 1104 463e 5a70
3904 5a3e ce46 6a30 3ecf 3ee0 562b 552b
2aaf 2a11 3e31 044a 3ed4 3ed4 3ed4 3f52
454d 4149 4e44 4552 105a 7137 2b38 1104
553f ce55 6a30 3e38 0455 3f12 1010 5a71
3711 8338 1170 3a34 2b30 1104 563f ce10
5a71 3711 6d30 3c5a 6a38 3c5a 6a32 343c
5a6a 3430 3c5a 6a35 363e cf3e b031 0447
3ed0 3e5d 0010 5a71 3711 0447 3ed4 3fce
476a 303e cf3e e056 2b55 2b2a af2a 113f
d03e ce47 6a31 4010 5a71 3134 116c 3040
105a 7137 116f 3840 105a 7137 116f 3234
4010 5a71 3711 6f34 3040 105a 7137 116f
3536 3ecf 3e5a 7137 045a 3e52 454d 4149
4e44 4552 105a 7137 2b38 1104 553e ce55
6a30 3e38 0455 3e12 1010 5a71 3711 8338
1170 3a34 2b30 1104 563e 5d00 105a 7137
1104 473e 5a70 3704 5a3e ce47 6a30 3ecf
3ee0 562b 552b 2aaf 2a11 3e31 044b 3ed4
3ed4 3ed4 3f48 7031 0448 3fce 486e 363e
3004 483f ad04 433f ce43 6a32 343e 3104
573f ce43 6a32 363e 3204 573f ce43 6a31
3035 3ecf 3e33 0457 3e31 0445 3ed0 3e32
0445 3ed4 3fd4 3ed4 3fce 526a 3140 446a
323e cf3f d157 6a30 3fce 486b 333e cf3e
e050 2b51 2b2a 292a 113e d03e e050 2b51
2baa 0011 3ed4 3f52 454d 4149 4e44 4552
105a 7039 2b38 1104 553f ce55 6a30 3e38
0455 3f12 1010 5a70 3911 8338 1170 3a34
2b30 1104 563f ce10 5a70 3911 6e36 353c
5a6a 383c 5a6a 3234 3c5a 6a34 303c 5a6a
3536 3ecf 3eb0 3104 463e d03e 5d00 105a
7039 1104 463e d43f ce46 6a30 3ecf 3ee0
562b 552b 2aaf 2a11 3fd0 3ece 466a 3240
105a 7031 3811 6b36 3540 105a 7039 116f
3840 105a 7039 116f 3234 4010 5a70 3911
6f34 3040 105a 7039 116f 3536 3ecf 3e5a
7039 045a 3e52 454d 4149 4e44 4552 105a
7039 2b38 1104 553e ce55 6a30 3e38 0455
3e12 1010 5a70 3911 8338 1170 3a34 2b30
1104 563e 5d00 105a 7039 1104 463e 5a71
3904 5a3e ce46 6a30 3ecf 3ee0 562b 552b
2aaf 2a11 3e31 044a 3ed4 3ed4 3ed4 3f52
454d 4149 4e44 4552 105a 7037 2b38 1104
553f ce55 6a30 3e38 0455 3f12 1010 5a70
3711 8338 1170 3a34 2b30 1104 563f ce10
5a70 3711 6e36 353c 5a6a 3537 3c5a 6a34
313c 5a6a 3235 3c5a 6a39 3ecf 3eb0 3104
473e d03e 5d00 105a 7037 1104 473e d43f
ce47 6a30 3ecf 3ee0 562b 552b 2aaf 2a11
3fd0 3ece 476a 3240 105a 7031 3411 6b36
3540 105a 7037 116f 3537 4010 5a70 3711
6f34 3140 105a 7037 116f 3235 4010 5a70
3711 6f39 3ecf 3e5a 7037 045a 3e52 454d
4149 4e44 4552 105a 7037 2b38 1104 553e
ce55 6a30 3e38 0455 3e12 1010 5a70 3711
8338 1170 3a34 2b30 1104 563e 5d00 105a
7037 1104 473e 5a71 3704 5a3e ce47 6a30
3ecf 3ee0 562b 552b 2aaf 2a11 3e31 044b
3ed4 3ed4 3ed4 3f48 7031 0448 3fce 486e
363e 3004 483f ad04 433f ce43 6a32 343e
3104 573f ce43 6a32 363e 3204 573f ce43
6a31 3035 3ecf 3e33 0457 3e32 0445 3ed0
3e31 0445 3ed4 3fd4 3ed4 3fe0 332b 3130
2b2a 2929 2929 2929 292a 113f e034 2b31
302b 2a29 2929 2929 2929 2a11 3fe0 362b
3130 2b2a 574f 524b 494e 472a 113f e038
2b31 302b 2a3a 2a11 3fce 446a 313e cf3f
ce57 6a31 4046 6a30 3ecf 3ece 4a6a 303e
cf3e 3204 5d00 105a 7139 113e 3004 5d00
105a 113e d03e ce4a 6a31 3ecf 3e32 045d
0010 5a71 3138 113e 3004 5d00 105a 113e
3004 5d00 105a 7139 113e d43e d43e d43f
ce57 6a32 4047 6a30 3ecf 3ece 4b6a 303e
cf3e 3204 5d00 105a 7137 113e 3004 5d00
105a 113e d03e ce4b 6a31 3ecf 3e32 045d
0010 5a71 3134 113e 3004 5d00 105a 113e
3004 5d00 105a 7137 113e d43e d43e d43f
e038 2b31 312b 2a3a 2a11 3fd0 3e3f ce57
6a32 4046 6a30 3ecf 3ece 4a6a 303e cf3e
3104 5d00 105a 7039 113e 3004 5d00 105a
113e d03e ce4a 6a31 3ecf 3e31 045d 0010
5a70 3138 113e 3004 5d00 105a 113e 3004
5d00 105a 7039 113e d43e d43e d43f ce57
6a31 4047 6a30 3ecf 3ece 4b6a 303e cf3e
3104 5d00 105a 7037 113e 3004 5d00 105a
113e d03e ce4b 6a31 3ecf 3e31 045d 0010
5a70 3134 113e 3004 5d00 105a 113e 3004
5d00 105a 7037 113e d43e d43e d43f e038
2b31 312b 2a3a 2a11 3fd4 3f31 0458 3e31
0459 3e31 044d 3e30 044e 3f08 302b 3009
045d 013f d14d 6d36 343f 5245 4d41 494e
4445 5210 4d2b 3811 0458 3fce 586a 303e
3804 583f 1210 4d83 3811 703a 342b 3011
0459 3f5d 0010 4d11 044e 3fce 4e6a 303e
e059 2b58 2b2a 292a 113f ce4e 6a31 3ecf
3ee0 592b 582b aa00 113e 5d01 1031 1170
3104 5d01 1031 113e d43f ce4e 6a32 3ecf
3ee0 592b 582b aa01 113e 5d01 1032 1170
3104 5d01 1032 113e d43f ce4d 6a31 363e
e038 2b31 322b 2a3a 2a11 3fce 4d6a 3332
3ee0 382b 3133 2b2a 3a2a 113f ce4d 6a34
383e e038 2b31 342b 2a3a 2a11 3fce 4d6a
3633 3ee0 382b 3135 2b2a 3a2a 113f 4d70
3104 4d3f d43f ce5d 0110 3111 6a30 3e32
0449 3fce 5d01 1032 116a 303e 3104 493f
ce45 6a32 3e32 0444 3fce 456a 313e 3104
443f e038 2b31 362b 2a3a 2a11 3fe0 342b
3130 2b2a 2929 2929 2929 292a 113f e031
2b31 302b 2a54 5552 4e3e 292a 113f e033
2b31 302b 2a53 454c 4543 542a 113e e034
2b31 322b 2a50 4945 4345 2a11 3fe0 362b
3130 2b2a 2929 2929 2929 292a 113f d43f
2a55 4929 5354 5546 463f ce44 6a32 3ee0
312b 3136 2baa 0011 3fce 446a 313e e031
2b31 362b aa01 113f ce50 6a30 3e31 0450
3fce 506a 393e 3804 503f ce51 6a30 3e31
0451 3fce 516a 393e 3804 513f e050 2b51
2baa 0211 3fe0 382b 3130 2b2a 2929 2929
2929 292a 113f d43f 6aa5
The only difference I can see between the two .8xps, both of which appear to have correct headers and checksums, is that the one from your computer, which is a byte longer, appends a 0x3f 'hard return' after its tokenisation of Output(1,1,"HELLO"). The last two bytes are a checksum, the 0x3f when present is the byte before that, and the earlier differences are all about the different length of subsequent data.
So, if I had to go out on a limb, is this perhaps a CR/LF misunderstanding? Maybe you're using a tool originally designed under Linux with text from a Windows-hosted editor? Try eliminating your final line break entirely if you can as a test; if that succeeds then see whether your editor supports using only linefeed characters rather than carriage return + linefeeds.

Why does this simple YAML fail to parse or validate appropriately?

This does not validate in several different YAML validators. It also fails to parse if read via PyYAML. Is this simply invalid YAML?
---
databases:
- name: mydb
    migrations:
      - type: liquibase
file: 1.xml
      - type: liquibase
file: 2.xml
For example, YAMLlint produces the following error:
(<unknown>): mapping values are not allowed in this context at line 6 column 13
This is terribly annoying, and had nothing to do with the list of maps structure. Somehow there are whitespace characters in there that aren't ASCII, and neither PyYAML, nor the validators I tried, cope with those well.
$ xxd foobar.txt
00000000: 2d2d 2d0a 6461 7461 6261 7365 733a 0a20 ---.databases:.
00000010: 202d 206e 616d 653a 206d 7964 620a e280 - name: mydb...
00000020: 8220 e280 8220 6d69 6772 6174 696f 6e73 . ... migrations
00000030: 3a0a e280 8220 e280 8220 e280 8220 2d20 :.... ... ... -
00000040: 7479 7065 3a20 6c69 7175 6962 6173 650a type: liquibase.
00000050: 2020 2020 2020 2020 6669 6c65 3a20 312e file: 1.
00000060: 786d 6c0a e280 8220 e280 8220 e280 8220 xml.... ... ...
00000070: 2d20 7479 7065 3a20 6c69 7175 6962 6173 - type: liquibas
00000080: 650a 2020 2020 2020 2020 6669 6c65 3a20 e. file:
00000090: 322e 786d 6c0a 2.xml.
See those e28082's? They're En Space characters.

CasperJS "unable to load script"

I have the strangest issue while writing a new script for casperJS, which I use all the time.
When I try to launch the script, using "casperjs myScript.js, I get the following :
Unable to load script /var/www/scrapers/myScript.js; check file syntax
I checked my syntax and found nothing wrong, chmod +x the file, sudoed everything, still the same.
Even stranger, I copypasted the example code from the quickstart (http://docs.casperjs.org/en/latest/quickstart.html), saved , and same message...
All my other scripts in the same directory are working, what do I try now?
Re: what do I try now?
You can use xxd to look inside the files. Looking at the comments, you now have a working version and a non-working version, so can compare them side-by-side to understand what the problem was. (And if they are identical then you know you are looking for something at the file system level, not inside the files.)
(xxd comes with the vi package, and apparently is also available for Windows if you install vim.)
Here is sample output for a script with and without the UTF-8 BOM (which, incidentally, made no difference: both these scripts worked, at least with CasperJS 1.1 on Ubuntu):
0000000: efbb bf76 6172 2063 6173 7065 7220 3d20 ...var casper =
0000010: 7265 7175 6972 6528 2763 6173 7065 7227 require('casper'
0000020: 292e 6372 6561 7465 2829 3b0a 0a63 6173 ).create();..cas
0000030: 7065 722e 7374 6172 7428 2768 7474 703a per.start('http:
0000040: 2f2f 676f 6f67 6c65 2e63 6f6d 2f27 2c20 //google.com/',
0000050: 6675 6e63 7469 6f6e 2829 207b 0a20 2020 function() {.
0000060: 2074 6869 732e 6563 686f 2874 6869 732e this.echo(this.
0000070: 6765 7454 6974 6c65 2829 293b 0a7d 293b getTitle());.});
0000080: 0a0a 6361 7370 6572 2e72 756e 2829 3b0a ..casper.run();.
0000000: 7661 7220 6361 7370 6572 203d 2072 6571 var casper = req
0000010: 7569 7265 2827 6361 7370 6572 2729 2e63 uire('casper').c
0000020: 7265 6174 6528 293b 0a0a 6361 7370 6572 reate();..casper
0000030: 2e73 7461 7274 2827 6874 7470 3a2f 2f67 .start('http://g
0000040: 6f6f 676c 652e 636f 6d2f 272c 2066 756e oogle.com/', fun
0000050: 6374 696f 6e28 2920 7b0a 2020 2020 7468 ction() {. th
0000060: 6973 2e65 6368 6f28 7468 6973 2e67 6574 is.echo(this.get
0000070: 5469 746c 6528 2929 3b0a 7d29 3b0a 0a63 Title());.});..c
0000080: 6173 7065 722e 7275 6e28 293b 0a asper.run();.

Resources