Bug 1050014 - Cannot deploy bundle to EAP domain mode

Actually the PC will close the Inputstream after invoking the resource component.