By default, the camera requires authentication for requests such as grabbing an image. Your options are to add an account such as FRC:FRC, and duplicate the authentication data, make a different account such as root:??? and duplicate that authentication data, or if you look for it, you can also turn on the camera's anonymous access and don't bother with authentication.
The LV VIs will repeat through up to three authentication requests or FRC:FRC, root:admin, and root

$@#$@#$@# and then it will give up and return an error. I'm not sure about the java code.
Greg McKaskle