title: [restlet ]TruncatedChunkException:
body: <p>For my project (<a href="http://snooze.inria.fr/" rel="nofollow">http://snooze.inria.fr/</a>) i have dependencies on java library restlet.</p>
  
  <p>If I set up the dependency to restlet 2.2-SNAPSHOT a TruncatedChunkException when visualizing the hierarchy on the client (it's a big json received form the system)
  If I set up the dependency to restlet 2.1-SNAPSHOT i have no error, everything looks fine.</p>
  
  <p>Do you know why ? </p>
  
  <p>Best Regards,</p>
  
  <p>Matt</p>
  
  <p>ps : 
  here the stack trace :</p>
  
  <pre><code>org.restlet - Unable to convert a [application/json] representation into an object of class org.inria.myriads.snoozecommon.communication.groupmanager.repository.GroupLeaderRepositoryInformation
  org.apache.http.TruncatedChunkException: Truncated chunk ( expected size: 2085; actual size: 1997)
  at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:182)
  at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:138)
  at java.io.FilterInputStream.read(FilterInputStream.java:133)
  at java.io.FilterInputStream.read(FilterInputStream.java:133)
  at java.io.PushbackInputStream.read(PushbackInputStream.java:186)
  [...]
  </code></pre>
  
  <p>Here an example of json : (it's basically a list of hosts hosting vm's with their attributes)</p>
  
  <pre><code>groupManagerDescriptions":[{"id":"4d415a3b-579d-4fcd-8700-f2d4a2242401","listenSettings":{"controlDataAddress":{"address":"127.0.0.1","port":6001},"monitoringDataAddress":{"address":"127.0.0.1","port":7000}},"localControllers":{"52a3e5b1-2354-4d67-ab52-c6b38efd20c5":{"id":"52a3e5b1-2354-4d67-ab52-c6b38efd20c5","controlDataAddress":{"address":"127.0.0.1","port":6003},"status":"ACTIVE","hypervisorSettings":{"port":16509,"driver":"qemu","transport":"tcp","migration":{"method":"forceunsafe","timeout":60}},"totalCapacity":[4.0,3958916.0,131072.0,131072.0],"wakeupSettings":{"driver":"IPMI","options":"-I lanplus -H BMC_IP -U user -P password"},"hostname":"mafalda","virtualMachineMetaData":{"debian1":{"status":"RUNNING","virtualMachineLocation":{"virtualMachineId":"debian1","localControllerControlDataAddress":{"address":"127.0.0.1","port":6003},"localControllerId":"52a3e5b1-2354-4d67-ab52-c6b38efd20c5"},"usedCapacity":{},"requestedCapacity":[1.0,512000.0,12800.0,12800.0],"ipAddress":"192.168.122.2","errorCode":"UNKNOWN","groupManagerControlDataAddress":{"address":"127.0.0.1","port":6001},"xmlRepresentation":"&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?&gt;&lt;domain type=\"kvm\"&gt;  &lt;name&gt;debian1&lt;/name&gt;  &lt;memory&gt;512000&lt;/memory&gt;  &lt;vcpu&gt;1&lt;/vcpu&gt;  &lt;os&gt;    &lt;type arch=\"x86_64\" machine=\"pc-0.12\"&gt;hvm&lt;/type&gt;    &lt;boot dev=\"hd\"/&gt;  &lt;/os&gt;  &lt;features&gt;    &lt;acpi/&gt;    &lt;apic/&gt;    &lt;pae/&gt;  &lt;/features&gt;  &lt;clock offset=\"utc\"/&gt;  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;  &lt;on_crash&gt;restart&lt;/on_crash&gt;  &lt;devices&gt;    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;    &lt;disk device=\"disk\" type=\"file\"&gt;      &lt;driver name=\"qemu\" type=\"qcow2\"/&gt;      &lt;source file=\"/home/msimonin/Images-VM/Snooze-images/imgs/debian1.qcow2\"/&gt;      &lt;target bus=\"virtio\" dev=\"vda\"/&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x0\" slot=\"0x05\" type=\"pci\"/&gt;    &lt;/disk&gt;    &lt;controller index=\"0\" type=\"ide\"&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x1\" slot=\"0x01\" type=\"pci\"/&gt;    &lt;/controller&gt;    &lt;interface type=\"bridge\"&gt;      &lt;mac address=\"54:56:c0:a8:7a:2\"/&gt;      &lt;source bridge=\"virbr0\"/&gt;    &lt;/interface&gt;    &lt;serial type=\"pty\"&gt;      &lt;target port=\"0\"/&gt;    &lt;/serial&gt;    &lt;console type=\"pty\"&gt;      &lt;target port=\"0\" type=\"serial\"/&gt;    &lt;/console&gt;    &lt;graphics autoport=\"yes\" listen=\"0.0.0.0\" port=\"-1\" type=\"vnc\"/&gt;    &lt;input bus=\"usb\" type=\"tablet\"/&gt;    &lt;input bus=\"ps2\" type=\"mouse\"/&gt;    &lt;memballoon model=\"virtio\"&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x0\" slot=\"0x06\" type=\"pci\"/&gt;    &lt;/memballoon&gt;  &lt;/devices&gt;&lt;/domain&gt;"},"debian3":{"status":"RUNNING","virtualMachineLocation":{"virtualMachineId":"debian3","localControllerControlDataAddress":{"address":"127.0.0.1","port":6003},"localControllerId":"52a3e5b1-2354-4d67-ab52-c6b38efd20c5"},"usedCapacity":{},"requestedCapacity":[1.0,128000.0,12800.0,12800.0],"ipAddress":"192.168.122.4","errorCode":"UNKNOWN","groupManagerControlDataAddress":{"address":"127.0.0.1","port":6001},"xmlRepresentation":"&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?&gt;&lt;domain type=\"kvm\"&gt;  &lt;name&gt;debian3&lt;/name&gt;  &lt;memory&gt;128000&lt;/memory&gt;  &lt;vcpu&gt;1&lt;/vcpu&gt;  &lt;os&gt;    &lt;type arch=\"x86_64\" machine=\"pc-0.12\"&gt;hvm&lt;/type&gt;    &lt;boot dev=\"hd\"/&gt;  &lt;/os&gt;  &lt;features&gt;    &lt;acpi/&gt;    &lt;apic/&gt;    &lt;pae/&gt;  &lt;/features&gt;  &lt;clock offset=\"utc\"/&gt;  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;  &lt;on_crash&gt;restart&lt;/on_crash&gt;  &lt;devices&gt;    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;    &lt;disk device=\"disk\" type=\"file\"&gt;      &lt;driver name=\"qemu\" type=\"qcow2\"/&gt;      &lt;source file=\"/home/msimonin/Images-VM/Snooze-images/imgs/debian3.qcow2\"/&gt;      &lt;target bus=\"virtio\" dev=\"vda\"/&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x0\" slot=\"0x05\" type=\"pci\"/&gt;    &lt;/disk&gt;    &lt;controller index=\"0\" type=\"ide\"&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x1\" slot=\"0x01\" type=\"pci\"/&gt;    &lt;/controller&gt;    &lt;interface type=\"b"
  [DEBUG] |févr. 04 10:44:20| [Thread-1] http.wire  - &lt;&lt; "ridge\"&gt;      &lt;mac address=\"54:56:c0:a8:7a:4\"/&gt;      &lt;source bridge=\"virbr0\"/&gt;    &lt;/interface&gt;    &lt;serial type=\"pty\"&gt;      &lt;target port=\"0\"/&gt;    &lt;/serial&gt;    &lt;console type=\"pty\"&gt;      &lt;target port=\"0\" type=\"serial\"/&gt;    &lt;/console&gt;    &lt;graphics autoport=\"yes\" listen=\"0.0.0.0\" port=\"-1\" type=\"vnc\"/&gt;    &lt;input bus=\"usb\" type=\"tablet\"/&gt;    &lt;input bus=\"ps2\" type=\"mouse\"/&gt;    &lt;memballoon model=\"virtio\"&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x0\" slot=\"0x06\" type=\"pci\"/&gt;    &lt;/memballoon&gt;  &lt;/devices&gt;&lt;/domain&gt;"}},"assignedVirtualMachines":[]},"c56846f6-fd61-47d5-9f68-0fd2772aac4d":{"id":"c56846f6-fd61-47d5-9f68-0fd2772aac4d","controlDataAddress":{"address":"127.0.0.1","port":6004},"status":"ACTIVE","hypervisorSettings":{"port":16510,"driver":"qemu","transport":"tcp","migration":{"method":"forceunsafe","timeout":60}},"totalCapacity":[4.0,3958916.0,131072.0,131072.0],"wakeupSettings":{"driver":"IPMI","options":"-I lanplus -H BMC_IP -U user -P password"},"hostname":"mafalda","virtualMachineMetaData":{"debian2":{"status":"RUNNING","virtualMachineLocation":{"virtualMachineId":"debian2","localControllerControlDataAddress":{"address":"127.0.0.1","port":6004},"localControllerId":"c56846f6-fd61-47d5-9f68-0fd2772aac4d"},"usedCapacity":{},"requestedCapacity":[2.0,123456.0,12800.0,12800.0],"ipAddress":"192.168.122.3","errorCode":"UNKNOWN","groupManagerControlDataAddress":{"address":"127.0.0.1","port":6001},"xmlRepresentation":"&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?&gt;&lt;domain type=\"kvm\"&gt;  &lt;name&gt;debian2&lt;/name&gt;  &lt;uuid&gt;0f476e56-67ea-11e1-858e-00216a972a37&lt;/uuid&gt;  &lt;memory&gt;123456&lt;/memory&gt;  &lt;vcpu&gt;2&lt;/vcpu&gt;  &lt;os&gt;    &lt;type arch=\"x86_64\" machine=\"pc-0.12\"&gt;hvm&lt;/type&gt;    &lt;boot dev=\"hd\"/&gt;  &lt;/os&gt;  &lt;features&gt;    &lt;acpi/&gt;    &lt;apic/&gt;    &lt;pae/&gt;  &lt;/features&gt;  &lt;clock offset=\"utc\"/&gt;  &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;  &lt;on_reboot&gt;restart&lt;/on_reboot&gt;  &lt;on_crash&gt;restart&lt;/on_crash&gt;  &lt;devices&gt;    &lt;emulator&gt;/usr/bin/kvm&lt;/emulator&gt;    &lt;disk device=\"disk\" type=\"file\"&gt;      &lt;driver name=\"qemu\" type=\"qcow2\"/&gt;      &lt;source file=\"/home/msimonin/Images-VM/Snooze-images/imgs/debian2.qcow2\"/&gt;      &lt;target bus=\"virtio\" dev=\"vda\"/&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x0\" slot=\"0x05\" type=\"pci\"/&gt;    &lt;/disk&gt;    &lt;controller index=\"0\" type=\"ide\"&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x1\" slot=\"0x01\" type=\"pci\"/&gt;    &lt;/controller&gt;    &lt;interface type=\"bridge\"&gt;      &lt;mac address=\"54:56:c0:a8:7a:3\"/&gt;      &lt;source bridge=\"virbr0\"/&gt;    &lt;/interface&gt;    &lt;serial type=\"pty\"&gt;      &lt;target port=\"0\"/&gt;    &lt;/serial&gt;    &lt;console type=\"pty\"&gt;      &lt;target port=\"0\" type=\"serial\"/&gt;    &lt;/console&gt;    &lt;graphics autoport=\"yes\" listen=\"0.0.0.0\" port=\"-1\" type=\"vnc\"/&gt;    &lt;input bus=\"usb\" type=\"tablet\"/&gt;    &lt;input bus=\"ps2\" type=\"mouse\"/&gt;    &lt;memballoon model=\"virtio\"&gt;      &lt;address bus=\"0x00\" domain=\"0x0000\" function=\"0x0\" slot=\"0x06\" type=\"pci\"/&gt;    &lt;/memballoon&gt;  &lt;/devices&gt;&lt;/domain&gt;"}},"assignedVirtualMachines":[]}},"heartbeatAddress":{"address":"225.4.5.6","port":10000},"hostname":"mafalda","summaryInformation":{"1359971059986":{"timeStamp":1359971059986,"usedCapacity":[4.0,763456.0,38400.0,38400.0],"requestedCapacity":[4.0,763456.0,38400.0,38400.0],"activeCapacity":[8.0,7917832.0,262144.0,262144.0],"passiveCapacity":[0.0,0.0,0.0,0.0],"legacyIpAddresses":[]},"1359971056979":{"timeStamp":1359971056979,"usedCapacity":[4.0,763456.0,38400.0,38400.0],"requestedCapacity":[4.0,763456.0,38400.0,38400.0],"activeCapacity":[8.0,7917832.0,262144.0,262144.0],"passiveCapacity":[0.0,0.0,0.0,0.0],"legacyIpAddresses":[]},"1359971053975":{"timeStamp":1359971053975,"usedCapacity":[3.0,635456.0,25600.0,25600.0],"requestedCapacity":[3.0,635456.0,25600.0,25600.0],"activeCapacity":[8.0,7917832.0,262144.0,262144.0],"passiveCapacity":[0.0,0.0,0.0,0.0],"legacyIpAddresses":[]},""
  </code></pre>
  
  <p>[...]</p>