Fixed the encoder to encode negative value such as -1.
Fixed the reading method to throw IOException when the connection is
disconnected.
Changed to ignore test_access2 for Java.