Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I deleted some datas from the database table "wttypedefinitionmaster" ,"wttypedefinition", and then type management can not be displayed, method server report these errors. Then I flash back the datas, but it's also not work.Can you help deal with it, thank you!
2016-04-13 23:40:58,958 ERROR [ajp-bio-8010-exec-1] com.ptc.core.meta.descriptor.common.impl.DefaultDescriptorFactory wcadmin -
java.lang.NullPointerException
at com.ptc.core.lwc.server.cache.factory.AttributeDefinitionViewFactory.getDefinitionID(AttributeDefinitionViewFactory.java:274)
at com.ptc.core.lwc.server.cache.factory.AttributeDefinitionViewFactory.newAttributeDefintionView(AttributeDefinitionViewFactory.java:202)
at com.ptc.core.lwc.server.cache.AttHelper.translateAttDefsToViews(AttHelper.java:1781)
at com.ptc.core.lwc.server.cache.TypeDefinitionManager.translateTypeDefToView(TypeDefinitionManager.java:4985)
at com.ptc.core.lwc.server.cache.TypeDefinitionManager.retrieveAndCacheType(TypeDefinitionManager.java:925)
at com.ptc.core.lwc.server.cache.TypeDefinitionManager.getTypeDefView(TypeDefinitionManager.java:823)
at com.ptc.core.lwc.server.cache.factory.TypeDefinitionViewFactory.getTypeDefRV(TypeDefinitionViewFactory.java:373)
at com.ptc.core.lwc.server.cache.factory.TypeDefinitionViewFactory.newTypeDefinitionView(TypeDefinitionViewFactory.java:241)
at com.ptc.core.lwc.server.cache.TypeDefinitionManager.translateTypeDefToView(TypeDefinitionManager.java:4965)
at com.ptc.core.lwc.server.cache.TypeDefinitionManager.retrieveAndCacheType(TypeDefinitionManager.java:1139)
at com.ptc.core.lwc.server.cache.TypeDefinitionManager.getTypeDefView(TypeDefinitionManager.java:1425)
at com.ptc.core.lwc.server.StandardTypeDefinitionService.getTypeDefView(StandardTypeDefinitionService.java:443)
at com.ptc.core.lwc.server.StandardTypeDefinitionService.getTypeDefView(StandardTypeDefinitionService.java:1011)
at sun.reflect.GeneratedMethodAccessor287.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at wt.services.ServiceFactory$ServerInvocationHandler.invoke(ServiceFactory.java:399)
at com.sun.proxy.$Proxy9.getTypeDefView(Unknown Source)
at com.ptc.core.lwc.server.LWCLocalizedValuesAugmentor.augment(LWCLocalizedValuesAugmentor.java:151)
at com.ptc.core.meta.descriptor.server.impl.AbstractLocalizedValuesFactory.addToLocalizedValues(AbstractLocalizedValuesFactory.java:664)
at com.ptc.core.meta.descriptor.server.impl.AbstractLocalizedValuesFactory.get(AbstractLocalizedValuesFactory.java:181)
at com.ptc.core.meta.descriptor.common.impl.RetrieveDefinitionDescriptorRemoteWorker.doWork(RetrieveDefinitionDescriptorRemoteWorker.java:61)
at com.ptc.core.command.common.RemoteWorkerHandlerImplementation.handleRemoteWorker(RemoteWorkerHandlerImplementation.java:30)
at com.ptc.core.meta.common.RemoteWorkerHandler.handleRemoteWorker(RemoteWorkerHandler.java:38)
at com.ptc.core.meta.descriptor.common.impl.DefaultDescriptorFactory.get(DefaultDescriptorFactory.java:184)
at com.ptc.netmarkets.search.utils.ObjectTypeDisplayNamesCache.getDisplayName(ObjectTypeDisplayNamesCache.java:196)
at com.ptc.netmarkets.search.utils.ObjectTypeDisplayNamesCache.addTypeToCache(ObjectTypeDisplayNamesCache.java:303)
at com.ptc.netmarkets.search.utils.ObjectTypeDisplayNamesCache.buildTypeNameCache(ObjectTypeDisplayNamesCache.java:270)
at com.ptc.netmarkets.search.utils.ObjectTypeDisplayNamesCache.<clinit>(ObjectTypeDisplayNamesCache.java:87)
at com.ptc.windchill.enterprise.picker.type.TypePickerSelectionHelper.buildJsonObject(TypePickerSelectionHelper.java:351)
at com.ptc.netmarkets.search.utils.GlobalTypesListHelper.writeGlobalTypes(GlobalTypesListHelper.java:89)
at org.apache.jsp.netmarkets.jsp.search.getGlobalTypes_jsp._jspService(getGlobalTypes_jsp.java:79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.ptc.core.components.filter.JCAFilter.doFilter(JCAFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
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:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:301)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:335)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1652)
at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:65)
at java.lang.Thread.run(Thread.java:745)
at org.apache.tomcat.util.threads.TaskThread.run(TaskThread.java:103)
Try clearing the cache once. But I think there are some missing references in some tables. If you have a full backup of database, restoring it is the best option.
First of all,Thank you for your reply.
I have flashed back the data,but it seems to be ineffective. I'm not sure where's the problem now .....