fix java compile error after production deployment