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

Caught unhandled error in StaticContentResolver

SA-19222

Summary



Caught unhandled error in StaticContentResolver with IllegalMonitorStateException when the PDF file is opened.

Error Messages



482 [    WebContainer : 0] [          ] [                    ] [                    ] (tent.StaticContentResolverImpl) ERROR   - Caught unhandled error in StaticContentResolver handling request aInput = {}
java.lang.IllegalMonitorStateException
at com.pega.jsr166backport.java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:323)
.
.
.
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)

Steps to Reproduce



Unlock the file that does not hold lock using tools.sendFile method.

Root Cause



The code snippet given below is the root cause of this issue. It tries to unlock the file that does not hold lock.
tools.sendFile(arr, filename1, true, null, false);

Resolution



Perform the following local-change to resolve the issue.
 
Replace the java code given below
tools.sendFile(arr, filename1, true, null, false);

with the code given below
tools.sendFile(arr, filename1, false, null, false);

Published February 9, 2016 - 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?

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