Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

UsageDaemon throws Stale Thread Error

SA-7567

Summary



UsageDaemon throws StateThreadError "com.pega.pegarules.pub.context.StaleThreadError: Thread has been recycled” 

Error Messages


2015-02-09 01:07:04,493 [fault (self-tuning)'] [  STANDARD] [                    ] (          mgmt.base.ThreadData) ERROR   - Trying to use a recycled thread
com.pega.pegarules.pub.context.StaleThreadError: Thread has been recycled
                at com.pega.pegarules.session.internal.mgmt.base.ThreadData.validateUse(ThreadData.java:618)
                at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.validateUse(PRThreadImpl.java:327)
                at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.getStepStatus(PRThreadImpl.java:834)
                at com.pega.pegarules.pub.PRException.setStatus(PRException.java:321)
                at com.pega.pegarules.pub.PRException.setStatus(PRException.java:307)
                at com.pega.pegarules.pub.PRRuntimeException.<init>(PRRuntimeException.java:118)
                at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1045)
                at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:765)
                at com.pega.pegarules.monitor.internal.UsageDaemonImpl.snapshotAllRequestors(UsageDaemonImpl.java:1102)
                at com.pega.pegarules.monitor.internal.UsageDaemonImpl.processUsageData(UsageDaemonImpl.java:808)
                at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1043)
                at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:765)
                at com.pega.pegarules.monitor.internal.UsageDaemonImpl.processData(UsageDaemonImpl.java:736)
                at com.pega.pegarules.monitor.internal.UsageDaemonImpl.run(UsageDaemonImpl.java:664)
                at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.processAsyncTask(AsyncServant.java:198)
                at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.invoke(AsyncServant.java:148)
                at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:312)
                at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:263)
                at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:221)
(…more)


Steps to Reproduce



Not Applicable

Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. 

Resolution



Apply HFix-20921

Published March 4, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us