Article - CS422295

WRS request is failing - log shows "java.lang.IllegalStateException: The request object has been recycled and is no longer associated with this facade" in Windchill PDMLink

Modified: 10-Dec-2025   


Applies To

  • Windchill PDMLink 12.1 to 13.1
  • Tomcat 9.0.90 and later 
  • Tomcat 10

Description

  • WRS request is failing
POST servelt/odata/v7/ChangeMgmt/CreateChangeNoticeHierarchy?$expand=ImpementationPlan
  • Accessing "Windchill/servlet/odata/v6/ProdMgmt/GetWindchillMetaInfo()" returns error below: 
    OData library: An exception without message text was thrown
      
  • Log shows 
    ERROR [http-nio-2280-exec-6] com.ptc.odata.windchill.entity.processor.PersistableEntityProcessor 3a6ed2e0-123-4567-8909-ae87f6c3cd28 - java.lang.reflect.UndeclaredThrowableException java.lang.reflect.UndeclaredThrowableException
        at jdk.proxy2/jdk.proxy2.$Proxy424.getActionImport(Unknown Source)
        at org.apache.olingo.commons.core.edm.EdmEntityContainerImpl.createActionImport(EdmEntityContainerImpl.java:779)
        at org.apache.olingo.commons.core.edm.EdmEntityContainerImpl.getActionImport(EdmEntityContainerImpl.java:151)
        at org.apache.olingo.server.core.uri.parser.ResourcePathParser.leadingResourcePathSegment(ResourcePathParser.java:221)
        at org.apache.olingo.server.core.uri.parser.ResourcePathParser.parsePathSegment(ResourcePathParser.java:88)
        at org.apache.olingo.server.core.uri.parser.Parser.parseUri(Parser.java:234)
        at org.apache.olingo.server.core.uri.UriHelperImpl.parseEntityId(UriHelperImpl.java:154)
        at com.ptc.odata.core.entity.processor.EntityIDUtils.getBindingLinkIdsWithConfig(EntityIDUtils.java:305)
        at com.ptc.odata.core.entity.processor.EntityIDUtils.getBindingLinkIds(EntityIDUtils.java:276)
        at com.ptc.odata.core.entity.processor.EntityIDUtils.getBindingLinkId(EntityIDUtils.java:253)
        at com.ptc.odata.windchill.entity.service.ContextEntityDelegate.processAdditionalAttributes(ContextEntityDelegate.java:238)
        at com.ptc.odata.windchill.entity.processor.PersistableEntityProcessor.processAdditionalAttributes(PersistableEntityProcessor.java:734)
        at com.ptc.odata.windchill.entity.processor.ObjectAttributeProcessor.getAdditionalAttributes(ObjectAttributeProcessor.java:485)
        at com.ptc.odata.windchill.entity.processor.ObjectAttributeProcessor.createTypeInstance(ObjectAttributeProcessor.java:234)
        ...
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
        at java.base/java.lang.Thread.run(Thread.java:840)
    Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.ptc.odata.windchill.entity.provider.WcEntityProvider$EdmProviderInvocationHandler.invoke(WcEntityProvider.java:98)
        ... 111 more
    Caused by: java.lang.IllegalStateException: The request object has been recycled and is no longer associated with this facade
        at org.apache.catalina.connector.RequestFacade.checkFacade(RequestFacade.java:855)
        at org.apache.catalina.connector.RequestFacade.getMethod(RequestFacade.java:550)
        at jakarta.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:125)
        at jakarta.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:125)
        at jakarta.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:125)
        at wt.servlet.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:120)
        at jakarta.servlet.http.HttpServletRequestWrapper.getMethod(HttpServletRequestWrapper.java:125)
        at com.ptc.odata.windchill.servlet.WcHttpServletRequest.getMethod(WcHttpServletRequest.java:316)
        at com.ptc.odata.core.entity.service.AbstractEdmProvider.getActionImport(AbstractEdmProvider.java:809)
        ... 116 more
    
    
  • After a CPS update, getting the below errors in Method Server log:
    ERROR [UserDetailsPersistor] wt.servlet.IPRequestTracker  - Exception trying to retrieve individual Requests : The request object has been recycled and is no longer associated with this facade
  • After updating CPS from Windchill 12.1.2.5 to Windchill 12.1.2.14, users are facing "java.lang.reflect.UndeclaredThrowableException" when using NewDownstreamBranch Rest API under PTC BOM Transformation Domain
This is a printer-friendly version of Article 422295 and may be out of date. For the latest version click CS422295