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

ConcurrentModificationException while running Resource Adapter

SA-45343

Summary



ConcurrentModificationException occurs while running the PRESENCECLEANER_DAEMON Resource Adapter function. The server, later, is unresponsive and displays the error, 'Unable to get managed connection for java:/eis/PRAdapterConnectionFactory'.


Error Messages



SEVERE [com.pega.pegarules.internal.bootstrap.PRBootstrap] (Thread-217 () Problem during method invocation (invokeEngine): com.pega.pegarules.pub.PRRuntimeException: PRRuntimeException
at com.pega.pegarules.session.internal.presence.PresenceSessionStateTrackerDaemon.requeueETierInvocation(PresenceSessionStateTrackerDaemon.java:178)
at com.pega.pegarules.session.internal.presence.PresenceSessionStateTrackerDaemon.run(PresenceSessionStateTrackerDaemon.java:135)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.processAsyncTask(AsyncServant.java:319)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.AsyncServant.invoke(AsyncServant.java:169)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331)
at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274)
at com.pega.pegarules.session.internal.engineinterface.etier.ejb.EngineBean.invokeEngine(EngineBean.java:225)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source) [:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_131]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370) [prbootstrap.jar:7.3.0-77]
at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411) [prbootstrap.jar:7.3.0-77]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224) [prbootstrap-api.jar:7.3.0-77]
at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingException(AppServerBridgeToPega.java:246) [prbootstrap-api.jar:7.3.0-77]
at com.pega.pegarules.internal.etier.ejb.EngineBeanBoot.invokeEngine(EngineBeanBoot.java:168) [prbootstrap-api.jar:7.3.0-77]
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) [:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_131]



Steps to Reproduce



Deploy prpc_j2ee14_jboss61JBM.ear (according to the Deployment Guide on a JBoss 6.4 application server) and wait till the PRESENCECLEANER_DAEMON is executed.


Root Cause



A defect in Pegasystems’ code or rules.

The logs contain ConcurrentModificationException and occurs when a task is executed by sending a map of parameters as an argument in the presence of the Daemon. While executing the task, the map of parameters is modified which results in the exception. Due to this, the connections are not released which leads to the connections getting exhausted.



Resolution



Apply HFix-38230.


Suggest Edit

Published December 17, 2017 - Updated October 8, 2020

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