Article - CS398729

After adding additional unit for the attribute "Default Unit" of Part(WTPart) under "Type and Attribute Management", It reported "HTTP Status 500 - Internal Server Error" when performing search based on Part type selection in Windchill PDMLink

Modified: 10-Aug-2023   


Applies To

  • Windchill PartsLink 12.1

Description

  • After adding an additional unit for the attribute Default Unit of Part(WTPart) under Type and Attribute Management, It reported "HTTP Status 500 - Internal Server Error" when performing a search based on Part type selection
  • The screenshot of adding an additional unit for the attribute Default Unit of Part(WTPart) under Type and Attribute Management:
2023-08-10_15-03-31.jpg
  • On the Search UI(User Interface), it reported the below error:
HTTP Status 500 – Internal Server Error
Type Status Report

Message Index x out of bounds for length x

Description The server encountered an unexpected condition that prevented it from fulfilling the request.
2023-08-10_15-02-29.jpg
  • Method Server log reported the below error:
com.ptc.netmarkets.search.tags.FormatHistorySearchTag xxxx - Index x out of bounds for length x
 wt.system.err xxxx - java.lang.IndexOutOfBoundsException: Index x out of bounds for length x
 wt.system.err xxxx -     at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
 wt.system.err xxxx -     at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
 wt.system.err xxxx -     at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
 wt.system.err xxxx -     at java.base/java.util.Objects.checkIndex(Objects.java:372)
 wt.system.err xxxx -     at java.base/java.util.ArrayList.get(ArrayList.java:459)
 wt.system.err xxxx -     at com.ptc.netmarkets.search.utils.AttributeDisplayBeanHelper.getSortedEnumOptions(AttributeDisplayBeanHelper.java:779)
 wt.system.err xxxx -     at com.ptc.netmarkets.search.utils.AttributeDisplayBeanHelper.addDisplayBeanToCompositeBean(AttributeDisplayBeanHelper.java:620)
 wt.system.err xxxx -     at com.ptc.netmarkets.search.utils.AttributeDisplayBeanHelper.getCompositeAttributeInfoBeans(AttributeDisplayBeanHelper.java:597)
 wt.system.err xxxx -     at com.ptc.netmarkets.search.utils.AttributeInfoBeanManager.getBeans(AttributeInfoBeanManager.java:262)
 wt.system.err xxxx -     at com.ptc.netmarkets.search.tags.FormatHistorySearchTag.doTag(FormatHistorySearchTag.java:139)
 wt.system.err xxxx -     at org.apache.jsp.netmarkets.jsp.search.historySavedSearchDisplay_jsp._jspx_meth_search_005fformatHistorySearch_005f0(historySavedSearchDisplay_jsp.java:1900)
 wt.system.err xxxx -     at org.apache.jsp.netmarkets.jsp.search.historySavedSearchDisplay_jsp._jspService(historySavedSearchDisplay_jsp.java:496)
 wt.system.err xxxx -     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 wt.system.err xxxx -     at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
 wt.system.err xxxx -     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:466)
 wt.system.err xxxx -     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
 wt.system.err xxxx -     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:327)
 wt.system.err xxxx -     at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at com.ptc.core.ui.validation.URLValidationFilter.doFilter(URLValidationFilter.java:86)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at ext.plm.login.CtLoginFilter.doFilter(CtLoginFilter.java:82)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:661)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:425)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:357)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:294)
 wt.system.err xxxx -     at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:171)
 wt.system.err xxxx -     at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316)
 wt.system.err xxxx -     at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1405)
 wt.system.err xxxx -     at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1149)
 wt.system.err xxxx -     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1088)
 wt.system.err xxxx -     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:964)
 wt.system.err xxxx -     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
 wt.system.err xxxx -     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
 wt.system.err xxxx -     at javax.servlet.http.HttpServlet.service(HttpServlet.java:528)
 wt.system.err xxxx -     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
 wt.system.err xxxx -     at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:209)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at wt.licenseusage.licensing.LicenseFilter.doFilter(LicenseFilter.java:47)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at com.ptc.core.ui.validation.URLValidationFilter.doFilter(URLValidationFilter.java:86)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at wt.httpgw.filter.WTContextBeanFilter.doWithWtContextBeanHandler(WTContextBeanFilter.java:104)
 wt.system.err xxxx -     at wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:58)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at wt.servlet.CompressionFilter.doFilter(CompressionFilter.java:301)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:335)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:1677)
 wt.system.err xxxx -     at wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFilter.java:57)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at ext.plm.login.CtLoginFilter.doFilter(CtLoginFilter.java:82)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
 wt.system.err xxxx -     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
 wt.system.err xxxx -     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
 wt.system.err xxxx -     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
 wt.system.err xxxx -     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:492)
 wt.system.err xxxx -     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:130)
 wt.system.err xxxx -     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
 wt.system.err xxxx -     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
 wt.system.err xxxx -     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
 wt.system.err xxxx -     at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:433)
 wt.system.err xxxx -     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
 wt.system.err xxxx -     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
 wt.system.err xxxx -     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1801)
 wt.system.err xxxx -     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 wt.system.err xxxx -     at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
 wt.system.err xxxx -     at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
 wt.system.err xxxx -     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 wt.system.err xxxx -     at java.base/java.lang.Thread.run(Thread.java:834)
This is a printer-friendly version of Article 398729 and may be out of date. For the latest version click CS398729