Question

Exception: java.lang.IllegalStateException: Invalid thread name detected in 7.4

Below exception is seen in Pega 7.4, we started seeing this exception after upgrading from 7.1.4

java.lang.IllegalStateException: Invalid thread name detected. See log for details.

at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.validateThreadName(HttpAPI.java:5510) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.establishRuntimeContext(HttpAPI.java:5203) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.initializeContext(HttpAPI.java:1946) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.withLockSetup(HttpAPI.java:2245) ~[prprivate.jar:?]

at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:399) ~[prenginext.jar:?]

at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source) ~[?:?]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1368) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1105) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:959) ~[prprivate.jar:?]

at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:354) ~[prenginext.jar:?]

at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:855) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274) ~[prprivate.jar:?]

at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:251) ~[prprivate.jar:?]

at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278) ~[prpublic.jar:?]

at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223) ~[prpublic.jar:?]

at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(Web

Comments

Keep up to date on this post and subscribe to comments

Pega
September 14, 2019 - 3:31am

Hi,

Can you try to login in a new session and see if the reported exception still persists.

Thank You,

Pega
September 15, 2019 - 8:49am

Hi,

Could you please confirm if the issue is Sporadic?

Thanks

September 15, 2019 - 11:18pm

It will be better if you can share with us the entire log file.

Pega
September 15, 2019 - 11:37pm

Hi

1. Can you try if changing the 'System' name as 'prpc' in the prconfig.xml resolves this? 

2. If it does not, what is the name of the invalid thread here?

Thanks

September 17, 2019 - 8:35am

Hi All,

This issue occurred 2-3 times only but wanted to check on the root cause what was causing the issue.

Thanks,