Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
I am new to PTC and I was following the customization guide for creating a new class called 'Pet' on page 53.
I did not complete the entire process and then stopped the winchill and the machine was shut down.
Now, I am not able to start my Method Server..
I get the below error log:
Mon 7/8/13 15:53:57: main: wt.services.ManagerException: wt.util.WTException: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: (wt.introspection.introspectionResource/6) wt.introspection.WTIntrospectionException: An introspection error has occured. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: java.lang.ClassNotFoundException: com.acme.Pet
Mon 7/8/13 15:53:57: main: Nested exception is: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: (wt.introspection.introspectionResource/6) wt.introspection.WTIntrospectionException: An introspection error has occured. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: java.lang.ClassNotFoundException: com.acme.Pet
Mon 7/8/13 15:53:57: main: Nested exception is: wt.util.WTException: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: (wt.introspection.introspectionResource/6) wt.introspection.WTIntrospectionException: An introspection error has occured. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: java.lang. com.acme.Pet
Mon 7/8/13 15:53:57: main: Nested exception is: (wt.pom.pomResource/0) wt.pom.PersistenceException: A persistence error occurred. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: (wt.introspection.introspectionResource/6) wt.introspection.WTIntrospectionException: An introspection error has occured. System message follows:
Mon 7/8/13 15:53:57: main: Nested exception is: java.lang.ClassNotFoundException: com.acme.Pet
Mon 7/8/13 15:53:57: main: at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
Mon 7/8/13 15:53:57: main: at java.security.AccessController.doPrivileged(Native Method)
Mon 7/8/13 15:53:57: main: at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
Mon 7/8/13 15:53:57: main: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
Mon 7/8/13 15:53:57: main: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Mon 7/8/13 15:53:57: main: at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Mon 7/8/13 15:53:57: main: at java.lang.Class.forName0(Native Method)
Mon 7/8/13 15:53:57: main: at java.lang.Class.forName(Class.java:169)
Mon 7/8/13 15:53:57: main: at wt.introspection.ClassInfo.loadClass(ClassInfo.java:1835)
Mon 7/8/13 15:53:57: main: at wt.introspection.ClassInfo.getConcreteClass(ClassInfo.java:1003)
Mon 7/8/13 15:53:57: main: at wt.pom.EmptyTableManager.queryTables(EmptyTableManager.java:517)
Mon 7/8/13 15:53:57: main: at wt.pom.EmptyTableManager.queryTables(EmptyTableManager.java:489)
Mon 7/8/13 15:53:57: main: at wt.pom.EmptyTableManager.findEmptyTables(EmptyTableManager.java:557)
Mon 7/8/13 15:53:57: main: at wt.pom.EmptyTableManager.populateCache(EmptyTableManager.java:131)
Mon 7/8/13 15:53:57: main: at wt.pom.EmptyTableManager.access$100(EmptyTableManager.java:83)
Mon 7/8/13 15:53:57: main: at wt.pom.EmptyTableManager$AllManagersStartedEventListener.notifyVetoableEvent(EmptyTableManager.java:658)
Mon 7/8/13 15:53:57: main: at wt.events.StandardKeyedEventBranch.intDispatchEvent(StandardKeyedEventBranch.java:320)
Mon 7/8/13 15:53:57: main: at wt.events.StandardKeyedEventBranch.dispatchVetoableEvent(StandardKeyedEventBranch.java:229)
Mon 7/8/13 15:53:57: main: at wt.events.StandardKeyedEventDispatcher.intDispatchEvent(StandardKeyedEventDispatcher.java:286)
Mon 7/8/13 15:53:57: main: at wt.events.StandardKeyedEventDispatcher.dispatchVetoableEvent(StandardKeyedEventDispatcher.java:215)
Mon 7/8/13 15:53:57: main: at wt.services.StandardManagerService.intDispatchVetoableEvent(StandardManagerService.java:406)
Mon 7/8/13 15:53:57: main: at wt.services.StandardManagerService.dispatchVetoableEvent(StandardManagerService.java:302)
Mon 7/8/13 15:53:57: main: at wt.services.StandardManagerService.performStartupProcess(StandardManagerService.java:184)
Mon 7/8/13 15:53:57: main: at wt.services.StandardManager.startup(StandardManager.java:459)
Mon 7/8/13 15:53:57: main: at wt.services.StandardServicesHandler.start(StandardServicesHandler.java:44)
Mon 7/8/13 15:53:57: main: at wt.method.MethodServerMain.run(MethodServerMain.java:423)
Mon 7/8/13 15:53:57: main: at wt.method.MethodServerMain.main(MethodServerMain.java:274)
Mon 7/8/13 15:53:57: main: FATAL : wt.method.server.shutdown - Stopping services...
Mon 7/8/13 15:53:57: main: INFO : wt.method.server.shutdown.services - All managers shut down.
Mon 7/8/13 15:53:57: main: FATAL : wt.method.server.shutdown - MethodServer stopped
I did some research on the internet and it shows that if we do not "Compile all Java sources created by system generation" then the system will be "missing the class files to match the registry properties". (http://xiaogyiy.iteye.com/blog/787300)
I do not know if this is true, and if it is then how to correct this mistake.
Please help me to start the method server (or is re installation my final option?).
Kazi
Solved! Go to Solution.
Hi,
I resolved this error by searching all files containing the word 'Pet' in their name (found a class info file in com.acme) or in the content and deleting them.
I found a file in Windchill\codebase\descendentRegistry.properties.. It had the entry which was causing the error. I removed that entry and upon restarting the method server booted successfuly !
Hi,
I resolved this error by searching all files containing the word 'Pet' in their name (found a class info file in com.acme) or in the content and deleting them.
I found a file in Windchill\codebase\descendentRegistry.properties.. It had the entry which was causing the error. I removed that entry and upon restarting the method server booted successfuly !
Hi,
good to hear that you could solve the (Windchill Method Server) problem by yourself.
Please note that this forum is intended for "Creo Elements/Direct" Software only.
Regards,
Max
Hi, I am facing a similar problem. Can you please mention what was the entry that you deleted
?
Following are the logs for referrence -
2013-08-05 11:45:53,430 INFO [main] wt.method.server.startup - Starting services - class = wt.services.StandardServicesHandler
2013-08-05 11:45:56,550 INFO [main] wt.pom.properties - wt.pom.delete.triggerClassNames=
2013-08-05 11:45:58,298 FATAL [main] wt.method.server - MethodServerMain abort
(wt.introspection.introspectionResource/8) wt.introspection.InfoNotFoundException: Info resource not found for com.acme.Pet.
at wt.introspection.WTIntrospector.loadInfo(WTIntrospector.java:692)
at wt.introspection.WTIntrospector.getClassInfo(WTIntrospector.java:317)
at wt.introspection.ClassInfo.accumulateDescendentInfosDirect(ClassInfo.java:427)
at wt.introspection.ClassInfo.accumulateDescendentInfosDirect(ClassInfo.java:433)
at wt.introspection.ClassInfo.accumulateDescendents(ClassInfo.java:456)
at wt.introspection.ClassInfo.getDescendentInfos(ClassInfo.java:1049)
at wt.introspection.ClassInfo.isSuperclassOf(ClassInfo.java:1773)
at wt.introspection.ClassInfo.removeDuplicateRole(ClassInfo.java:864)
at wt.introspection.ClassInfo.addRole(ClassInfo.java:841)
at wt.introspection.ClassInfo.addRole(ClassInfo.java:825)
at wt.introspection.ClassInfo.readMyRoles(ClassInfo.java:1929)
at wt.introspection.ClassInfo.accumulateOtherRoles(ClassInfo.java:494)
at wt.introspection.ClassInfo.getOtherSideRoles(ClassInfo.java:1219)
at wt.introspection.ClassInfo.addInfoRoles(ClassInfo.java:783)
at wt.introspection.ClassInfo.accumulateOtherRoles(ClassInfo.java:490)
at wt.introspection.ClassInfo.getOtherSideRoles(ClassInfo.java:1219)
at wt.introspection.ClassInfo.addInfoRoles(ClassInfo.java:783)
at wt.introspection.ClassInfo.accumulateOtherRoles(ClassInfo.java:483)
at wt.introspection.ClassInfo.getOtherSideRoles(ClassInfo.java:1219)
at wt.introspection.ClassInfo.addInfoRoles(ClassInfo.java:783)
at wt.introspection.ClassInfo.accumulateOtherRoles(ClassInfo.java:483)
at wt.introspection.ClassInfo.getOtherSideRoles(ClassInfo.java:1219)
at wt.introspection.ClassInfo.getOtherSideRole(ClassInfo.java:1195)
at wt.vc.struct.StandardStructService.<clinit>(StandardStructService.java:435)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at wt.services.ManagerImplementation.create(ManagerImplementation.java:234)
at wt.services.StandardManagerFactory.createImplementations(StandardManagerFactory.java:146)
at wt.services.StandardManagerFactory.<init>(StandardManagerFactory.java:128)
at wt.services.StandardManagerFactory$Singleton.<clinit>(StandardManagerFactory.java:84)
at wt.services.StandardManagerFactory.getInstance(StandardManagerFactory.java:113)
at wt.services.StandardManagerService.createFactory(StandardManagerService.java:373)
at wt.services.StandardManagerService.initialize(StandardManagerService.java:363)
at wt.services.StandardManagerService.newStandardManagerService(StandardManagerService.java:99)
at wt.services.StandardServicesHandler.getFactory(StandardServicesHandler.java:51)
at wt.services.StandardServicesHandler.start(StandardServicesHandler.java:42)
at wt.method.MethodServerMain.run(MethodServerMain.java:410)
at wt.method.MethodServerMain.main(MethodServerMain.java:257)
2013-08-05 11:45:58,329 FATAL [main] wt.method.server.shutdown - Stopping services...
2013-08-05 11:45:58,329 INFO [main] wt.system.out - WARNING: The ManagerService is not initialized! This can be caused by:
2013-08-05 11:45:58,344 INFO [main] wt.system.out - 1) Attempting to invoke a server only method from a remote client
2013-08-05 11:45:58,344 INFO [main] wt.system.out - 2) Attempting to invoke a method on a service from the constructor or static initializer of another service
2013-08-05 11:45:58,344 FATAL [main] wt.method.server.shutdown - MethodServer stopped
This might have happened when you did not complete the steps given in the customization guide. Seems like the info file is missing in this case.
1. go to Windchill\codebase\descendentRegistry.properties (or search for this file)
2. Open the file in notepad++ or any other editor and search for the word 'Pet'.
3. When you find the line, just delete that line.
4. Also you will need to search for all files, if created, for Pet in codebase/com/acme and delete the entire 'acme' folder.
As per my understanding, the Method server checks the entries in descendentRegistry.properties and tries to load all the related support files for each entry.
Since the example was not completely followed, some files were not created for 'Pet' class, and due to these missing files, the Method server gives error and does not boot.
So we basically need to remove unused entry and files and then restart the server.
Hope it helps.
Thanks a lot for the help. I deleted the entire acme folder and the entries from the said file. That solved my problem.
Thank you, it worked for me as well 🙂
Thanks this works as rightly mentioned... Customization guide steps were not followed completely.
Hello, there is a video of training for example from the documentation
https://www.youtube.com/watch?v=-14BSAwteVw&list=PLjm4gmbLQwoeqQSP7xUhCnInGknqTBAZV&index=2