updated Profile Java samples to display message when required data is
missing