Im getting EEROR: wt.httpgw.HTTPAuthentication - HTTP login failed: 127.0.0.1.
here 127.0.0.1 is my hostname.
Also, my java program is notgetting executed. I tried calling my function through main(), it throwed RMI exception error.
Now post making the following changes. Still authentication error exists:

myFunction is my remote function which internally calls getDocbyIBA() function where I have my querySpec which returns some data. While checking the ms logs..I can see the code execution in function myFuncrtion() happens and the authorization error is thrown at this line

