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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.