djspiewak/cccp — Issue #13: Synchronization gets screwed up after the first sync
Author: xeno-by
Created: 2011-11-27 22:59:05+00:00
State: open

When I run two jEdits on a single PC against a localhost server, the first sync goes fine, however, the subsequent ones do not happen. Here are two logs:

```
C:\Projects\cccp\agent\dist>java -classpath "C:\Projects\cccp\agent\dist\bin\\..\lib\akka-actor-1.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\akka-stm-1.1.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\akka-typed-actor-1.1.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\aopalliance-1.0.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\aspectwerkz-2.2.3.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\blueeyes_2.9.1-0.4.24.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\cccp-agent_2.9.1-0.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\cccp-server_2.9.1-0.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\commons-codec-1.5.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\concurrentlinkedhashmap-lru-1.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\configgy-2.0.0.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\fedone-api-0.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\guice-all-2.0.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\javolution-5.5.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\joda-time-1.6.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\js-1.7R2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\mongo-java-driver-2.6.5.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\multiverse-alpha-0.6.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\netty-3.2.4.Final.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\scala-library.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\scalaz-core_2.9.1-6.0.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\specs_2.8.0-1.6.5.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\vscaladoc-1.1-md-3.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\xlightweb-2.13.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\xSocket-2.8.15.jar" com.codecommit.cccp.agent.Main C:\Users\xeno.by\AppData\Local\Temp\cccp820508288006137989.port
Handling chunk: (:swank-rpc (swank:init-connection (:protocol "http" :host "localhost" :port 8585)) 1)
Initializing connection: http://localhost:8585
Handling chunk: (:swank-rpc (swank:link-file "today" "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar") 2)
Linking file: today -> C:\Users\xeno.by\Projects\foo2\foo.bar
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 11 :insert "
" :retain 10)) 3)
>>> Client Op: 36:d073b8d3-7357-4871-9211-a2fe66882aa90;1;r11;++1:
r10;
Sending chunk to server: 36:d073b8d3-7357-4871-9211-a2fe66882aa90;1;r11;++1:
r10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 12 :insert "g" :retain 10)) 4)
>>> Client Op: 36:cdd89afb-d0e2-4569-ab6b-7fa41b2b16720;1;r12;++1:gr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 13 :insert "o" :retain 10)) 5)
>>> Client Op: 36:d8737639-e843-4b63-8c84-c2a70e87567b0;1;r13;++1:or10;
Received chunk from server:
36:d073b8d3-7357-4871-9211-a2fe66882aa90;1;r11;++1:
r10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 14 :insert "o" :retain 10)) 6)
>>> Client Op: 36:7e0ca3f1-b122-4a7e-aea4-2705641784340;1;r14;++1:or10;
Sending chunk to server: 36:d8737639-e843-4b63-8c84-c2a70e87567b1;3;r12;++2:gor10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 15 :insert "d" :retain 10)) 7)
>>> Client Op: 36:5484eee5-ccd5-4071-873e-2aaa60ebf9410;1;r15;++1:dr10;
Received chunk from server:
36:d8737639-e843-4b63-8c84-c2a70e87567b1;3;r12;++2:gor10;
Sending chunk to server: 36:5484eee5-ccd5-4071-873e-2aaa60ebf9413;5;r14;++2:odr10;
Received chunk from server:
36:5484eee5-ccd5-4071-873e-2aaa60ebf9413;5;r14;++2:odr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 16 :insert "b" :retain 10)) 8)
>>> Client Op: 36:c81e8641-5705-4da0-bf66-972a0b1d251e0;1;r16;++1:br10;
Sending chunk to server: 36:c81e8641-5705-4da0-bf66-972a0b1d251e5;6;r16;++1:br10;
Received chunk from server:
36:c81e8641-5705-4da0-bf66-972a0b1d251e5;6;r16;++1:br10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 17 :insert "y" :retain 10)) 9)
>>> Client Op: 36:d022f5aa-c006-470c-af7b-2d69a32b895c0;1;r17;++1:yr10;
Sending chunk to server: 36:d022f5aa-c006-470c-af7b-2d69a32b895c6;7;r17;++1:yr10;
Received chunk from server:
36:d022f5aa-c006-470c-af7b-2d69a32b895c6;7;r17;++1:yr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 18 :insert "e" :retain 10)) 10)
>>> Client Op: 36:10206aac-349e-490b-8779-0b1a147ce5140;1;r18;++1:er10;
Sending chunk to server: 36:10206aac-349e-490b-8779-0b1a147ce5147;8;r18;++1:er10;
Received chunk from server:
36:10206aac-349e-490b-8779-0b1a147ce5147;8;r18;++1:er10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 19 :insert "," :retain 10)) 11)
>>> Client Op: 36:07ba3d19-de09-4cc1-bd6e-b89204e4a28a0;1;r19;++1:,r10;
Sending chunk to server: 36:07ba3d19-de09-4cc1-bd6e-b89204e4a28a8;9;r19;++1:,r10;
Received chunk from server:
36:07ba3d19-de09-4cc1-bd6e-b89204e4a28a8;9;r19;++1:,r10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 20 :insert " " :retain 10)) 12)
>>> Client Op: 36:0e474324-f0c3-47f3-9d7d-6101ff5705ee0;1;r20;++1: r10;
Sending chunk to server: 36:0e474324-f0c3-47f3-9d7d-6101ff5705ee9;10;r20;++1: r10;
Received chunk from server:
36:0e474324-f0c3-47f3-9d7d-6101ff5705ee9;10;r20;++1: r10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 21 :insert "w" :retain 10)) 13)
>>> Client Op: 36:cd12e5b5-26ea-4cc1-8713-972fe12d84180;1;r21;++1:wr10;
Sending chunk to server: 36:cd12e5b5-26ea-4cc1-8713-972fe12d841810;11;r21;++1:wr10;
Received chunk from server:
36:cd12e5b5-26ea-4cc1-8713-972fe12d841810;11;r21;++1:wr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 22 :insert "o" :retain 10)) 14)
>>> Client Op: 36:9a002c9b-b9a0-489a-848b-141908dda1e40;1;r22;++1:or10;
Sending chunk to server: 36:9a002c9b-b9a0-489a-848b-141908dda1e411;12;r22;++1:or10;
Received chunk from server:
36:9a002c9b-b9a0-489a-848b-141908dda1e411;12;r22;++1:or10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 23 :insert "r" :retain 10)) 15)
>>> Client Op: 36:5693b88e-d68b-438e-a542-7f0de2f2bdb10;1;r23;++1:rr10;
Sending chunk to server: 36:5693b88e-d68b-438e-a542-7f0de2f2bdb112;13;r23;++1:rr10;
Received chunk from server:
36:5693b88e-d68b-438e-a542-7f0de2f2bdb112;13;r23;++1:rr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 24 :insert "l" :retain 10)) 16)
>>> Client Op: 36:f46abcc4-d792-40f8-bc72-1e191ad807f10;1;r24;++1:lr10;
Sending chunk to server: 36:f46abcc4-d792-40f8-bc72-1e191ad807f113;14;r24;++1:lr10;
Received chunk from server:
36:f46abcc4-d792-40f8-bc72-1e191ad807f113;14;r24;++1:lr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 25 :insert "d" :retain 10)) 17)
>>> Client Op: 36:c7c325b7-b8a7-4069-bd0e-0c836851db9a0;1;r25;++1:dr10;
Sending chunk to server: 36:c7c325b7-b8a7-4069-bd0e-0c836851db9a14;15;r25;++1:dr10;
Received chunk from server:
36:c7c325b7-b8a7-4069-bd0e-0c836851db9a14;15;r25;++1:dr10;
Handling chunk: (:swank-rpc (swank:edit-file "C:\\Users\\xeno.by\\Projects\\foo2\\foo.bar" (:retain 26 :insert "!" :retain 10)) 18)
>>> Client Op: 36:0426cf14-93d0-4a2e-9772-847d84edd7e50;1;r26;++1:!r10;
Sending chunk to server: 36:0426cf14-93d0-4a2e-9772-847d84edd7e515;16;r26;++1:!r10;
Received chunk from server:
36:0426cf14-93d0-4a2e-9772-847d84edd7e515;16;r26;++1:!r10;
ERROR!!! NumberFormatException: java.lang.NumberFormatException: For input string: "
```

```
C:\Projects\cccp\agent\dist>java -classpath "C:\Projects\cccp\agent\dist\bin\\..\lib\akka-actor-1.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\akka-stm-1.1.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\akka-typed-actor-1.1.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\aopalliance-1.0.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\aspectwerkz-2.2.3.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\blueeyes_2.9.1-0.4.24.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\cccp-agent_2.9.1-0.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\cccp-server_2.9.1-0.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\commons-codec-1.5.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\concurrentlinkedhashmap-lru-1.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\configgy-2.0.0.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\fedone-api-0.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\guice-all-2.0.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\javolution-5.5.1.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\joda-time-1.6.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\js-1.7R2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\mongo-java-driver-2.6.5.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\multiverse-alpha-0.6.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\netty-3.2.4.Final.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\scala-library.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\scalaz-core_2.9.1-6.0.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\specs_2.8.0-1.6.5.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\vscaladoc-1.1-md-3.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\xlightweb-2.13.2.jar;C:\Projects\cccp\agent\dist\bin\\..\lib\xSocket-2.8.15.jar" com.codecommit.cccp.agent.Main C:\Users\xeno.by\AppData\Local\Temp\cccp9160834258550969600.port
Handling chunk: (:swank-rpc (swank:init-connection (:protocol "http" :host "localhost" :port 8585)) 1)
Initializing connection: http://localhost:8585
Handling chunk: (:swank-rpc (swank:link-file "today" "C:\\Users\\xeno.by\\Projects\\foo1\\foo.bar") 2)
Linking file: today -> C:\Users\xeno.by\Projects\foo1\foo.bar
Received chunk from server:
36:d073b8d3-7357-4871-9211-a2fe66882aa90;1;r11;++1:
r10;
<<< Server Op: 36:d073b8d3-7357-4871-9211-a2fe66882aa90;1;r11;++1:
r10;
Received chunk from server:
36:d8737639-e843-4b63-8c84-c2a70e87567b1;3;r12;++2:gor10;
36:5484eee5-ccd5-4071-873e-2aaa60ebf9413;5;r14;++2:odr10;
ERROR!!! NumberFormatException: java.lang.NumberFormatException: For input string: "```