Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

"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

0 votes



One answer

Permanent link
The code in this post has worked for me: http://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Nov 21 '13, 7:34 a.m.

Question was seen: 4,425 times

Last updated: Nov 25 '13, 3:04 a.m.

Confirmation Cancel Confirm