Skip to main content
Sep 16, 2022 10:47 AM UTC
Solved

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: 

sKrish_1703_0-1663324967813.png

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

Sep 16, 2022 11:48 AM UTC

Hi @sKrish_1703 

I do not use rms.invoke.

 

I directly call my function from the main code. 

// Login with code to prevent asking user each time
RemoteMethodServer.getDefault().setUserName("name");
RemoteMethodServer.getDefault().setPassword("psw");
importPartTagLink(outText, fileName);

Try to just set usr and psw then call your function directly.

 

 ext.wvs.customJobs.myChedluer.myFuncrtion()

 

optionally you should set user and psw in your ext.wvs.customJobs.myChedluer.myFuncrtion() code not in main where invoke is called.

 

PetrH

2 replies

Sep 16, 2022 11:48 AM UTC

Hi @sKrish_1703 

I do not use rms.invoke.

 

I directly call my function from the main code. 

// Login with code to prevent asking user each time
RemoteMethodServer.getDefault().setUserName("name");
RemoteMethodServer.getDefault().setPassword("psw");
importPartTagLink(outText, fileName);

Try to just set usr and psw then call your function directly.

 

 ext.wvs.customJobs.myChedluer.myFuncrtion()

 

optionally you should set user and psw in your ext.wvs.customJobs.myChedluer.myFuncrtion() code not in main where invoke is called.

 

PetrH

Sep 16, 2022 12:12 PM UTC

@sKrish_1703 

In my test if credentials are not set then I got following error 

HelesicPetr_0-1663330265535.png

This is normal if credentials are not set

 

I run the main class from Windchill shell

 

PetrH