Article - CS148507

MethodServer fails to start with error "Could not initialize Auditing service" in Windchill PDMLink

Modified: 08-Mar-2023   


Applies To

  • Windchill PDMLink 9.1 to 12.1

Description

  • MethodServer fails to start 
  • MethodServer shuts down after Rehosting Windchill with below error 
  • MethodServer Log4j log has following exception
wt.services.ManagerException: Could not initialize Auditing service.
Nested exception is: wt.util.WTException: java.lang.NullPointerException
Nested exception is: java.lang.NullPointerException
at wt.federation.PrincipalManager.DirContext.getPrimaryName(DirContext.java:618)
at wt.org.StandardOrganizationServicesManager.getDirectoryService(StandardOrganizationServicesManager.java:4237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
at $Proxy18.getDirectoryService(Unknown Source)
at wt.org.GenericDirectoryContextProvider.<init>(GenericDirectoryContextProvider.java:206)
at wt.org.StandardOrganizationServicesManager.newDirectoryContextProvider(StandardOrganizationServicesManager.java:5759)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
at $Proxy18.newDirectoryContextProvider(Unknown Source)
at wt.session.StandardSessionManager.getExchangeContext(StandardSessionManager.java:431)
at wt.session.StandardSessionManager.getUser(StandardSessionManager.java:390)
at wt.session.StandardSessionManager.getAdministrator(StandardSessionManager.java:272)
at wt.session.StandardSessionManager.setAdministrator(StandardSessionManager.java:250)

OR

ERROR [ajp-nio-127.0.0.1-8011-exec-34] wt.session.StandardSessionManager WCADMIN - Exception in getAuthenticatedUser
wt.org.OrganizationServicesIEException: javax.naming.CommunicationException: LDAP.PTC.com:389
at wt.org.LdapServices.queryPrincipalsFromLdap(LdapServices.java:1140)
This is a printer-friendly version of Article 148507 and may be out of date. For the latest version click CS148507