Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylar-dev] After submitting a new repository task getting "task data not available error'

Hi guys,

I am developing Mylar connector for CodeBeamer/Javaforge.
I can create a new repository task and submit it to CodeBeamer/Javaforge but after the submit,
when the submitted repository task is displayed as existing task, I get editor with label:

'Task data not available, please synchronize and reopen.'

It is coming from AbstractRepositoryTaskEditor.createFormContent(), the call to getRepositoryData() returns null,
editorInput task data are null.

It looks like it has something to do with offline task storage not being initialized/set properly, so the call in AbstractTaskEditorInput(TaskRepository repository, String handle) constructor:

        this.newTaskData = TasksUiPlugin.getDefault().getTaskDataManager().getTaskData(handle);       
        this.oldTaskData = TasksUiPlugin.getDefault().getTaskDataManager().getOldTaskData(handle);               

sets both to null (handle looks reasonable to me, url-id).

What do I need to implement to make TasksUiPlugin.getDefault().getTaskDataManager().getTaskData() make work properly.

Thanks, Lubos Pochman


Back to the top