Unable to use java class on Method Server
I'm using the Windchill13.1.4.0Rev01 Virtual Machine and I'm trying to run a java class that extracts the list of users configured in windchil on the server. At Run time however I get the following error Error while running locally in the Shell:
"(wt.fc.fcResource/0) wt.util.WTException: The operation: "findLikeUsers" failed.
Nested exception is: wt.util.WTRemoteException: Unable to invoke remote method; nested exception is:
java.rmi.ServerRuntimeException: Server exception; nested exception is:
java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.fillInStackTrace()" because "<local18>" is null
at wt.method.RemoteMethodServer.invoke(RemoteMethodServer.java:851)
at wt.services.ServiceFactory$ClientInvocationHandler.invoke(ServiceFactory.java:349)
at jdk.proxy2/jdk.proxy2.$Proxy11.findLikeUsers(Unknown Source)
at com.custom.getallusers.GetAllUsers_4.runExtraction(GetAllUsers_4.java:34)
at com.custom.getallusers.GetAllUsers_4.main(GetAllUsers_4.java:24)
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Throwable.fillInStackTrace()" because "<local18>" is null" Can anyone help me, I would like to extract users using the method server. Thanks
Dimitri

