Question

4
Replies
885
Views
Devan Member since 2014 34 posts
Virtusa
Posted: April 18, 2017
Last activity: April 25, 2017
Closed

Read attachment and place in service export

Hi All,

I need to place an attachment im my work object as a physical file in service export.

I have used below as a seperate utility prior to an assignment.

String sErrorMessage = tools.sendFile(strWorkObjectRef, "pyAttachStream", true, "pxAttachName", "textfile.txt", true, null, false);

This is placing the file in the service export, but getting errors in the log and the screen as follows.

log:

(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 java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1341)
at com.pega.jsr166backport.java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:709)
at com.pega.pegarules.priv.FileLockManager$PRFileLock.readUnlock(FileLockManager.java:271)
at com.pega.pegarules.priv.FileLockManager.readUnlock(FileLockManager.java:86)

Screen:

[0411/213414:ERROR:process_info.cc(608)] range at 0xfffaf000, size 0xf84 fully unreadable

Could someone help me in resolving this.

Thanks,

Aruldevan

Moderation Team has archived post
Share this page LinkedIn