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

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

  1. Log in to the application > Designer Studio.
  2. Create a section and add an Image Icon control.
  3. 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

  1. Apply HFix-48358.
  2. Correct the Proxy configuration to use:

    -Dhttps.proxyHost=<proxy host name / ip>
    -Dhttps.proxyPort=port -Djava.net.useSystemProxies=true ..
This is performed because the AWS S3 Bucket uses SSL or HTTPS connection.
 

Published January 20, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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