It's all about the answers!

Ask a question

Class Cast exception when trying to create a work item from


Geoffrey Clemm (30.1k33035) | asked Oct 08 '09, 12:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I'm using RTC-2.0.0.1 client, jbe, and server.

The stack trace in the Error view is:

java.lang.ClassCastException: $Proxy15 incompatible with
com.ibm.team.process.common.ITeamArea
at
com.ibm.team.build.internal.java.ui.workitems.CreateWorkItemFromJUnitTestAction.getProjectAreaHandle(CreateWorkItemFromJUnitTestAction.java:94)
at
com.ibm.team.build.internal.java.ui.workitems.CreateWorkItemFromJUnitTestAction$1.runProtected(CreateWorkItemFromJUnitTestAction.java:57)
at
com.ibm.team.foundation.client.util.FoundationJob.run(FoundationJob.java:68)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

This happens immediately after I select the "create work item" operation
for the junit error in the Junit Tests pane of the build result.

Note: If I just run the JUnit tests from within Eclipse, I can select
the Junit error in Eclipse, and the "create work item" operation works
fine ... so it is only when I select that operation in the build result
do I see this problem.

Any idea what might be happening? Or should I just file a defect ...

Cheers,
Geoff

2 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Oct 08 '09, 12:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
FYI, I was able to eliminate this error, by changing the owner of the
build definition from the project area to a team area.

Cheers,
Geoff

Geoffrey Clemm wrote:
I'm using RTC-2.0.0.1 client, jbe, and server.

The stack trace in the Error view is:

java.lang.ClassCastException: $Proxy15 incompatible with
com.ibm.team.process.common.ITeamArea
at
com.ibm.team.build.internal.java.ui.workitems.CreateWorkItemFromJUnitTestAction.getProjectAreaHandle(CreateWorkItemFromJUnitTestAction.java:94)

at
com.ibm.team.build.internal.java.ui.workitems.CreateWorkItemFromJUnitTestAction$1.runProtected(CreateWorkItemFromJUnitTestAction.java:57)

at
com.ibm.team.foundation.client.util.FoundationJob.run(FoundationJob.java:68)

at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

This happens immediately after I select the "create work item" operation
for the junit error in the Junit Tests pane of the build result.

Note: If I just run the JUnit tests from within Eclipse, I can select
the Junit error in Eclipse, and the "create work item" operation works
fine ... so it is only when I select that operation in the build result
do I see this problem.

Any idea what might be happening? Or should I just file a defect ...

Cheers,
Geoff

permanent link
Patrick Streule (4.9k21) | answered Oct 08 '09, 5:41 a.m.
JAZZ DEVELOPER
FYI, I was able to eliminate this error, by changing the owner of the
build definition from the project area to a team area.

I believe you are seeing
https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/95794

--
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.