"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
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