There was an error concering the open and getInputstream call order in the RangedResource class