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
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
Solved! Go to Solution.
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
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
In my test if credentials are not set then I got following error
This is normal if credentials are not set
I run the main class from Windchill shell
PetrH