Support Article
Thread dumps occur while retrieving an image from a URL
Summary
Thread dumps occur while retrieving an image from a URL and displaying it in a section.
Error Messages
BlockedCount : 5, BlockedTime : -1, WaitedCount : 251, WaitedTime : -1
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireNanos(AbstractQueuedSynchronizer.java:934)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireNanos(AbstractQueuedSynchronizer.java:1247)
at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.tryLock(ReentrantReadWriteLock.java:1115)
at com.pega.pegarules.session.internal.mgmt.base.RequestorThreadSync.lockAttempt(RequestorThreadSync.java:434)
at com.pega.pegarules.session.internal.mgmt.PRRequestorImpl.lockAttempt(PRRequestorImpl.java:983)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.getLockOnRequestor(PRSessionProviderImpl.java:1366)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:994)
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:841)
at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:331)
Steps to Reproduce
Unknown.
Root Cause
An issue in the custom application code or rules.
Resolution
Perform a following local-change:Write the custom control as below:
<%
ClipboardProperty curProp = tools.getActive();
String UserID=curProp.getStringValue();
String PhotoLink = "https:XXXXXXXXXXXXX/?uid=";
String PhoneToolLink = "https://XXXXXXXXXXXXXXXXXX/users/";
PhotoLink=PhotoLink+UserID;
PhoneToolLink= PhoneToolLink+UserID;
tools.putSaveValue("result",PhotoLink);
tools.putSaveValue("PhonetoolLink",PhoneToolLink);
tools.putSaveValue("UserID",UserID);
%>
<a href="<pega:reference name="$save(PhonetoolLink)"/>" target = "<pega:reference name="$save(UserID)"/>">
<img src="<pega:reference name="$save(result)"/>" alt="Phone tool Icon" style="width:48px;height:64px;">
</a>
<br />
<pega:when test="param.HideUserID=='' || param.HideUserID >= 0">
<pega:reference name="$save(UserID)"/>
</pega:when>
Published March 22, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.