cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

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

sKrish_1703
7-Bedrock

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

2 REPLIES 2

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

@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

Announcements

Top Tags