"Manager is shutdown" error when attachment is stored to Jazz using plain java api
![]()
Hi,
I am trying to store the attachment to Jazz using the below code. Earlier, it was working but now i am getting "Manager is shutdown" error (when contentManager.storeContent() is called). Could you please help me resolving this issue? private IContent storeContent(ITeamRepository repo, IProgressMonitor monitor, Map<String, Object> attachment, InputStream is) throws TeamRepositoryException { IContentManager contentManager = repo.contentManager(); String mimeType = (String)attachment.get("mimeType"); IContent content = contentManager.storeContent(mimeType, "UTF-8", LineDelimiter.LINE_DELIMITER_NONE, is, null, monitor); return content; } Regards, Kanagaraj |
One answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Nov 25 '13, 3:04 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The code in this post has worked for me: http://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/
|