It's all about the answers!

Ask a question

Couple of issues when viewing iteration plans in RTC 2.0


Adrian Spender (36143) | asked Jan 06 '10, 2:19 p.m.
Hi,

We are using the Scrum template on RTC 2.0, with fairly minimal customizations (addition of one work item type, which is set as Plan item type)

I'm seeing an exception when trying to view one team's iteration plan:

!ENTRY com.ibm.team.apt.ide.ui 4 2 2010-01-06 18:48:14.835
!MESSAGE Problems occurred when invoking code from plug-in: "com.ibm.team.apt.ide.ui".
!STACK 0
com.ibm.team.apt.internal.common.scripting.ScriptException: Cannot compare literals of two different enumerations
at com.ibm.team.apt.internal.common.scripting.impl.ScriptTypeFunction.call(ScriptTypeFunction.java:69)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.c87._c4(GenericPlanItemSorter.js:57)
at org.mozilla.javascript.gen.c87.call(GenericPlanItemSorter.js)
at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
at org.mozilla.javascript.gen.c86._c9(EntrySorter.js:59)
at org.mozilla.javascript.gen.c86.call(EntrySorter.js)
at org.mozilla.javascript.NativeArray.isBigger(NativeArray.java:745)
at org.mozilla.javascript.NativeArray.heapify(NativeArray.java:804)
at org.mozilla.javascript.NativeArray.heapsort(NativeArray.java:773)
at org.mozilla.javascript.NativeArray.js_sort(NativeArray.java:702)
at org.mozilla.javascript.NativeArray.execIdCall(NativeArray.java:215)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.c86._c8(EntrySorter.js:54)
at org.mozilla.javascript.gen.c86.call(EntrySorter.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c86.call(EntrySorter.js)
at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1831)
at com.ibm.team.apt.internal.common.scripting.util.JSUtils.callMethod(JSUtils.java:89)
at com.ibm.team.apt.internal.ide.ui.scripting.interfaces.ScriptableSorter$5.run(ScriptableSorter.java:95)
at com.ibm.team.apt.internal.ide.ui.scripting.interfaces.ScriptableSorter$5.run(ScriptableSorter.java:1)
at com.ibm.team.apt.internal.common.scripting.environment.AbstractScriptEnvironment.execute(AbstractScriptEnvironment.java:62)
at com.ibm.team.apt.internal.ide.ui.scripting.interfaces.ScriptableSorter.sort(ScriptableSorter.java:92)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineEntry.doPendingSort(OutlineEntry.java:374)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.executePendingSortRequests(OutlineModel.java:703)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.executePendingSortRequests(OutlineModel.java:700)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.doEndUpdate(OutlineModel.java:593)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.updateModel(OutlineModel.java:380)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.refresh(OutlineModel.java:214)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.setInput(OutlineModel.java:123)
at com.ibm.team.apt.internal.ide.ui.editor.outliner.IterationPlanViewModel.setInput(IterationPlanViewModel.java:66)
at com.ibm.team.apt.internal.ide.ui.editor.OutlinePage$9.doRun(OutlinePage.java:1414)
at com.ibm.team.apt.internal.ide.ui.editor.OutlinePage$ViewModelSafeRunnable.run(OutlinePage.java:2489)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at com.ibm.team.apt.internal.ide.ui.editor.OutlinePage.initializeOutliner(OutlinePage.java:1411)
at com.ibm.team.apt.internal.ide.ui.editor.OutlinePage.setResolvedIterationPlan(OutlinePage.java:1066)
at com.ibm.team.apt.internal.ide.ui.editor.OutlinePage.access$22(OutlinePage.java:1041)
at com.ibm.team.apt.internal.ide.ui.editor.OutlinePage$4$1.run(OutlinePage.java:951)
at com.ibm.team.apt.internal.ide.ui.util.UI$1.run(UI.java:49)
at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:155)
at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:158)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.IllegalArgumentException: Cannot compare literals of two different enumerations
at com.ibm.team.workitem.common.internal.model.ConfigurationItem.compareTo(ConfigurationItem.java:74)
at com.ibm.team.workitem.common.internal.model.ConfigurationItem.compareTo(ConfigurationItem.java:1)
at com.ibm.team.apt.internal.common.plantype.PlanningAttributeType$EnumType.compareValues(PlanningAttributeType.java:114)
at com.ibm.team.apt.internal.common.plantype.PlanningAttributeType.compareValues(PlanningAttributeType.java:52)
at com.ibm.team.apt.internal.client.scripting.facades.PlanningAttributeTypeScriptType.compareValues(PlanningAttributeTypeScriptType.java:53)
at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.apt.internal.common.scripting.impl.ScriptTypeFunction.call(ScriptTypeFunction.java:67)
... 67 more

It is possible that the plan may contain a work item (or more than one) that comes from RTC 1.0 before we upgraded to 2.0. It is also possible that that work item may have some attributes that are now not present in our current process template.

When trying to view the Product backlog plan for the iteration that we use as a Scrum of Scrums view (so it should contain all the work items from all teams for the iteration) I get a different error:

!ENTRY com.ibm.team.apt.client 4 2 2010-01-06 18:48:15.022
!MESSAGE Problems occurred when invoking code from plug-in: "com.ibm.team.apt.client".
!STACK 0
com.ibm.team.apt.internal.common.scripting.ScriptException
at com.ibm.team.apt.internal.common.scripting.impl.ScriptTypeFunction.call(ScriptTypeFunction.java:69)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
at org.mozilla.javascript.gen.c84._c5(TopLevelTypeFilter.js:36)
at org.mozilla.javascript.gen.c84.call(TopLevelTypeFilter.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c84.call(TopLevelTypeFilter.js)
at org.mozilla.javascript.Context.call(Context.java:538)
at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1833)
at org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1803)
at com.ibm.team.apt.internal.ide.ui.scripting.interfaces.ScriptableFilter$5.run(ScriptableFilter.java:79)
at com.ibm.team.apt.internal.ide.ui.scripting.interfaces.ScriptableFilter$5.run(ScriptableFilter.java:1)
at com.ibm.team.apt.internal.common.scripting.environment.AbstractScriptEnvironment.execute(AbstractScriptEnvironment.java:62)
at com.ibm.team.apt.internal.ide.ui.scripting.interfaces.ScriptableFilter.select(ScriptableFilter.java:77)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.calculateFilterState(OutlineModel.java:567)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.filterRecursive(OutlineModel.java:641)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.filterRecursive(OutlineModel.java:638)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.filterRecursive(OutlineModel.java:638)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.filterRecursive(OutlineModel.java:638)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.doEndUpdate(OutlineModel.java:590)
at com.ibm.team.apt.internal.ide.ui.common.model.OutlineModel.updateModel(OutlineModel.java:380)
at com.ibm.team.apt.internal.ide.ui.common.structure.JavaScriptPlanModelTransformer$PlanElementListener$1.run(JavaScriptPlanModelTransformer.java:196)
at com.ibm.team.apt.internal.ide.ui.common.structure.JavaScriptPlanModelTransformer$PlanElementListener$1.run(JavaScriptPlanModelTransformer.java:1)
at com.ibm.team.apt.internal.common.scripting.environment.AbstractScriptEnvironment.execute(AbstractScriptEnvironment.java:62)
at com.ibm.team.apt.internal.ide.ui.common.structure.JavaScriptPlanModelTransformer$PlanElementListener.planElementChanged(JavaScriptPlanModelTransformer.java:194)
at com.ibm.team.apt.internal.client.ResolvedPlan$19.run(ResolvedPlan.java:1578)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at com.ibm.team.apt.internal.client.ResolvedPlan.fireEvent(ResolvedPlan.java:1576)
at com.ibm.team.apt.internal.client.ResolvedPlan.disconnectDeltaBuilder(ResolvedPlan.java:537)
at com.ibm.team.apt.internal.client.ResolvedIterationPlan$5.resolved(ResolvedIterationPlan.java:1016)
at com.ibm.team.apt.internal.client.ResolvedIterationPlan$5.resolved(ResolvedIterationPlan.java:1)
at com.ibm.team.apt.internal.ide.ui.editor.IterationPlanEditor$21$1.run(IterationPlanEditor.java:2324)
at com.ibm.team.apt.internal.ide.ui.util.UI$1.run(UI.java:49)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.NullPointerException
at com.ibm.team.apt.internal.client.ResolvedPlan.isTopLevelItem(ResolvedPlan.java:902)
at com.ibm.team.apt.internal.client.IterationPlanItem.isTopLevelPlanItem(IterationPlanItem.java:210)
at com.ibm.team.apt.internal.client.scripting.facades.PlanItemScriptType.isTopLevelPlanItem(PlanItemScriptType.java:109)
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.apt.internal.common.scripting.impl.ScriptTypeFunction.call(ScriptTypeFunction.java:67)
... 57 more

Can anybody give any ideas as to how to debug these issues e.g. how to try and ascertain what work items may be causing the problem and why?

2 answers



permanent link
Adrian Spender (36143) | answered Jan 26 '10, 6:43 a.m.
Bump. Does anybody have any ideas about this?

permanent link
Patrick Streule (4.9k21) | answered Jan 26 '10, 9:23 a.m.
JAZZ DEVELOPER
Bump. Does anybody have any ideas about this?

You are likely seeing:
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/88029

There is a workaround described in the work item and the defect has been
fixed in 2.0.0.1.

--
Regards,
Patrick
Jazz Work Item Team

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.