HTTP request are failing using Java Agent