java. Fixed findbugs warnings in rpc.