Article - CS371527
Accessing Windchill objects result in "Could not initialize class wt.org.LicenseGroupHelper" in Windchill PDMLink
Modified: 25-Sep-2024
Applies To
- Windchill PDMLink 11.1 to 12.1
Description
- Accessing Windchill objects result in "Could not initialize class wt.org.LicenseGroupHelper"
- Error in MethodServer log
ERROR [SessionUserMonitor] wt.session.SessionUsers.ICache - >> SessionUsersTimer: Ignoring throwable java.lang.ExceptionInInitializerError at wt.org.LicenseGroupHelper.<clinit>(LicenseGroupHelper.java:99) at wt.licenseusage.StandardLicenseUsageService.getLicenseGroupsForUser(StandardLicenseUsageService.java:1509) at wt.licenseusage.StandardLicenseUsageService.recordLicenseUsageOnLogin(StandardLicenseUsageService.java:1329) at wt.licenseusage.StandardLicenseUsageService.recordLicenseUsageOnLogin(StandardLicenseUsageService.java:1225) at wt.licenseusage.StandardLicenseUsageService$2.notifyVetoableEvent(StandardLicenseUsageService.java:352) at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:320) at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:255) at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:304) at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:228) at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:410) at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:303) at wt.session.SessionUsers.processUser(SessionUsers.java:1064) at wt.session.SessionUsers.access$700(SessionUsers.java:74) at wt.session.SessionUsers$SessionUsersTimer.run(SessionUsers.java:1120) at java.lang.Thread.run(Thread.java:748) Caused by: (wt.org.licenseGroupResource/GROUP_HAS_UNEXPECTED_MEMBER_EXCEPTION) wt.util.WTException: The license group PTCAuthorLicense (wt.org.WTGroup:3378203908) contains an unexpected member. at wt.org.LicenseGroupHelper.findCorrespondingExternalGroup(LicenseGroupHelper.java:1137) at wt.org.LicenseGroupHelper.findGroup(LicenseGroupHelper.java:916) at wt.org.LicenseGroupHelper.findGroup(LicenseGroupHelper.java:858) at wt.org.LicenseGroupHelper.setupLicenseGroupCache(LicenseGroupHelper.java:135) at wt.org.LicenseGroupHelper.<clinit>(LicenseGroupHelper.java:97) ... 14 more
- This causes the following error in the MethodServer log
ERROR [ajp-nio-127.0.0.1-8010-exec-1] com.ptc.mvc.controllers.ExceptionController szylakj - message : Could not initialize class wt.org.LicenseGroupHelper error:-------------org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class wt.org.LicenseGroupHelper org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class wt.org.LicenseGroupHelper at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) at javax.servlet.http.HttpServlet.service(HttpServlet.java:652) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at wt.licenseusage.licensing.LicenseFilter.doFilter(LicenseFilter.java:47) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.ptc.core.ui.validation.URLValidationFilter.doFilter(URLValidationFilter.java:85) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at wt.httpgw.filter.WTContextBeanFilter.doWithWtContextBeanHandler(WTContextBeanFilter.java:104) at wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:58) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:301) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:335) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1660) at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:544) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:526) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoClassDefFoundError: Could not initialize class wt.org.LicenseGroupHelper at wt.licenseusage.StandardLicenseUsageService.getLicenseGroupsForUser(StandardLicenseUsageService.java:1509) at wt.licenseusage.StandardLicenseUsageService.recordLicenseUsage(StandardLicenseUsageService.java:1051) at wt.licenseusage.StandardLicenseUsageService.access$600(StandardLicenseUsageService.java:124) at wt.licenseusage.StandardLicenseUsageService$3.notifyVetoableMultiObjectEvent(StandardLicenseUsageService.java:372) at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:306) at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:255) at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:304) at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:228) at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:410) at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:303) at wt.audit.StandardAuditService.dispatchViewPropertiesEvent(StandardAuditService.java:790) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399) at com.sun.proxy.$Proxy30.dispatchViewPropertiesEvent(Unknown Source) at com.ptc.core.components.infoPage.InfoPageNavigatorDelegate.processRequest(InfoPageNavigatorDelegate.java:70) at com.ptc.jca.mvc.components.TypeBasedRedirectionInterceptor.preHandle(TypeBasedRedirectionInterceptor.java:230) at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:151) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1035) ... 44 more
This is a printer-friendly version of Article 371527 and may be out of date. For the latest version click CS371527