It's all about the answers!

Ask a question

Problem while returning service data


vinay reddy (1711205) | asked Mar 28 '09, 6:03 a.m.
I could return ecore based items from service but when I try to return a custom type (a java class that I have defined) from the service, I could not succeed and I get the following error.


"errorClass":"java.lang.ClassCastException"
,"errorMessage":"com.ibm.team.af.research.userextension.common.FeasibleSchedule incompatible with org
.eclipse.emf.ecore.EObject"}


Any help? Is there any restriction that every thing needs to be based on ecore?

One answer



permanent link
Matt Lavin (2.7k2) | answered Mar 30 '09, 9:10 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
If you are using the Modeled Rest style services, then yes. Everything
returned from that type of server must be either a primitive type or an
EMF modeled object.

-
Matt Lavin
Jazz Server Team


On Sat, 2009-03-28 at 10:10 +0000, vinaykumarreddyk wrote:
I could return ecore based items from service but when I try to return
a custom type (a java class that I have defined) from the service, I
could not succeed and I get the following error.


"errorClass":"java.lang.ClassCastException"
,"errorMessage":"com.ibm.team.af.research.userextension.common.FeasibleSchedule
incompatible with org
eclipse.emf.ecore.EObject"}


Any help? Is there any restriction that every thing needs to be based
on ecore?

Your answer


Register or to post your answer.