It's all about the answers!

Ask a question

Exception: Attempting to get unset feature: Duration


michael white (1634) | asked Aug 19 '10, 4:12 a.m.
Hello,I want to get the 'estimate' and 'CorrectedEstimate',but it is always throw the exception."java.lang.IllegalStateException: Attempting to get unset feature: Duration"


listAll = getAll.testTotal("testReport002");



for(int i=0;i<listAll.size();i++){

IWorkItem wiAll=(IWorkItem) listAll.get(i);
System.out.println( wiAll.getDuration());

try{

IItem item2 = wiAll.getFullState();
if (item instanceof WorkItemImpl) {
WorkItemImpl wii = (WorkItemImpl) item2;

long corrected = wii.getCorrectedEstimate();
long corrected2 = wii.getTimeSpent();
//or wii.getTimeSpent();



thanks for help

One answer



permanent link
leopold leopold (11) | answered Nov 14 '19, 10:45 a.m.

 Actually wii is related to ROMs so, that's why you have to read about how ROM work how to upgrade it etc etc.

Your answer


Register or to post your answer.