It's all about the answers!

Ask a question

"Manager is shutdown" error when attachment is stored to Jazz using plain java api


Kanagaraj Duraisamy (157) | asked Nov 21 '13, 7:34 a.m.
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



permanent link
Ralph Schoon (63.1k33645) | 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/

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.