how to send Map object by using client library
Hi
I'm trying to extend "HelloJazz" https://jazz.net/learn/LearnItem.jsp?href=content/docs/hello-jazz/index.html to be able to send Map<String, Object&gt; object as well as String. (">" is expressed to "&gt;" in following sentences) To achieve this, I added interface and impl to each package as follows. - common packagehowever I met this error by running these code... com.ibm.team.repository.common.transport.ServiceMethodInvocationError: java.lang.ClassCastException: java.util.HashMap incompatible with org.eclipse.emf.ecore.EObject at com.ibm.team.repository.transport.client.RemoteTeamService.getAppropriateException(RemoteTeamService.java:571) at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:474) at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:184) at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43) ... This means complicated object(such as Map) cannot be sended in raw condition from client library to server side, and some marshal steps are needed ? If so, do we have to write marshaling methods by myself or some methods are prepared for this purpose ? These 2 are my questions. Thanks Ken |
Be the first one to answer this question!
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.