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