Support Article
User Application hangs frequently when rendering external image
SA-71257
Summary
User Application hangs frequently while rendering an external image URL (AWS S3 Bucket) using an Image Icon control.
Error Messages
Thread Dumps in PegaRules log files.
at java.lang.Object.wait(Native Method)
at java.awt.MediaTracker.waitForID(MediaTracker.java:677)
at javax.swing.ImageIcon.loadImage(ImageIcon.java:314)
at javax.swing.ImageIcon.<init>(ImageIcon.java:204)
at javax.swing.ImageIcon.<init>(ImageIcon.java:217)
Steps to Reproduce
- Log in to the application > Designer Studio.
- Create a section and add an Image Icon control.
- Reference this image using an external image URL (Amazon S3 bucket URL).
Root Cause
Issue in Java Swing API when loading external images in which the Thread hangs when the external URL is unavailable or if the connection is slow.
Resolution
- Apply HFix-48358.
- Correct the Proxy configuration to use:
-Dhttps.proxyHost=<proxy host name / ip>
-Dhttps.proxyPort=port -Djava.net.useSystemProxies=true ..
Published January 20, 2019 - 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.