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

CPM: Unable to remove the thread currently processing

SA-20925

Summary



CPM Application under load throws StaleThreadError in logs.

Error Messages



2016-02-19 11:33:17,628 [   WebContainer : 22] [WorkThread] [  CSSBranch:01.01.01] ( CPMCSR_Body.CPM_Portal.Stream) ERROR hostname|IP operatorID - Error in JSP execution
com.pega.pegarules.pub.PRRuntimeException: Unhandled exception executing JSP: You may not remove the thread currently processing
    at com.pegarules.generated.html_section.ra_stream_cpmportalgadget_3444ec6ebae21689fd059b11da7ce2fd.execute(ra_stream_cpmportalgadget_3444ec6ebae21689fd059b11da7ce2fd.java:736)
    at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3548)
    at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(AutoStreamRuleRuntime.java:129)
    at com.pegarules.generated.html_section.ra_stream_cpmcsr_body_d49b51d0b95d6e066a0e0b27e6dc69dd.execute(ra_stream_cpmcsr_body_d49b51d0b95d6e066a0e0b27e6dc69dd.java:171)
    at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3548)
    at com.pega.pegarules.session.internal.mgmt.autostreams.AutoStreamRuleRuntime.getSectionStream(AutoStreamRuleRuntime.java:129)
    at com.pegarules.generated.html_harness.ra_stream_cpmcsr_portal_15e9213102e89e8404523cc37eea3d69.execute(ra_stream_cpmcsr_portal_15e9213102e89e8404523cc37eea3d69.java:242)
    at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3548)
    at com.pega.pegarules.session.internal.mgmt.Executable.getStream(Executable.java:3409)
    at com.pegarules.generated.activity.ra_action_displayharnesswithclass_b92b223ef7a80d214c50916a5311a691.step4_circum0(ra_action_displayharnesswithclass_b92b223ef7a80d214c50916a5311a691.java:538)
    at com.pegarules.generated.activity.ra_action_displayharnesswithclass_b92b223ef7a80d214c50916a5311a691.perform(ra_action_displayharnesswithclass_b92b223ef7a80d214c50916a5311a691.java:123)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
    at com.pegarules.generated.activity.ra_action_uiactiondisplayharness_ba8ce50cc2dba35495c15532a1e3e3f1.step7_circum0(ra_action_uiactiondisplayharness_ba8ce50cc2dba35495c15532a1e3e3f1.java:687)
    at com.pegarules.generated.activity.ra_action_uiactiondisplayharness_ba8ce50cc2dba35495c15532a1e3e3f1.perform(ra_action_uiactiondisplayharness_ba8ce50cc2dba35495c15532a1e3e3f1.java:184)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
    at com.pegarules.generated.activity.ra_action_showspaceharness_b09faac9c13e1df35e69492151fe7b81.step3_circum0(ra_action_showspaceharness_b09faac9c13e1df35e69492151fe7b81.java:338)
    at com.pegarules.generated.activity.ra_action_showspaceharness_b09faac9c13e1df35e69492151fe7b81.perform(ra_action_showspaceharness_b09faac9c13e1df35e69492151fe7b81.java:106)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
    at com.pegarules.generated.activity.ra_action_showdesktop_67f91d6a879f6b7ee96a0ff27dabf904.step6_circum0(ra_action_showdesktop_67f91d6a879f6b7ee96a0ff27dabf904.java:965)
    at com.pegarules.generated.activity.ra_action_showdesktop_67f91d6a879f6b7ee96a0ff27dabf904.perform(ra_action_showdesktop_67f91d6a879f6b7ee96a0ff27dabf904.java:173)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
    at com.pegarules.generated.activity.ra_action_showdesktoprbs_6353852ff7449e84f9cec293fac64439.step3_circum0(ra_action_showdesktoprbs_6353852ff7449e84f9cec293fac64439.java:380)
    at com.pegarules.generated.activity.ra_action_showdesktoprbs_6353852ff7449e84f9cec293fac64439.perform(ra_action_showdesktoprbs_6353852ff7449e84f9cec293fac64439.java:106)
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3040)
    at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:617)
    at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:584)
    at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:2797)
    at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:422)
    at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
    (more..)
Caused by:
java.lang.IllegalArgumentException: You may not remove the thread currently processing
    at com.pega.pegarules.session.internal.mgmt.base.RequestorPassivation.removeInactiveThread(RequestorPassivation.java:617)
    at com.pega.pegarules.session.internal.mgmt.PRRequestorImpl.removeInactiveThread(PRRequestorImpl.java:700)
    at com.pegarules.generated.html_section.ra_stream_cpmportalgadget_3444ec6ebae21689fd059b11da7ce2fd.execute(ra_stream_cpmportalgadget_3444ec6ebae21689fd059b11da7ce2fd.java:166)
    ... 84 more

Steps to Reproduce



Not Applicable

Root Cause



A defect in Pegasystems’ code or rules

Resolution



Apply Hfix-26459
Suggest Edit

Published March 16, 2016 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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