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

Class Cast exception when trying to create a work item from

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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

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

Question asked: Oct 08 '09, 12:33 a.m.

Question was seen: 6,714 times

Last updated: Oct 08 '09, 12:33 a.m.

Confirmation Cancel Confirm