Skip to main content
7-Bedrock
September 16, 2022
Solved

Im getting EEROR: wt.httpgw.HTTPAuthentication - HTTP login failed: 127.0.0.1.

  • September 16, 2022
  • 1 reply
  • 1856 views

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

Best answer by HelesicPetr

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

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
September 16, 2022

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

HelesicPetr
22-Sapphire II
22-Sapphire II
September 16, 2022

@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