[ 
https://issues.apache.org/jira/browse/XMLRPC-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12785806#action_12785806
 ] 

Jochen Wiedmann commented on XMLRPC-179:
----------------------------------------

I don't find the string "type error" in the XML-RPC sources, so I am not sure 
whether I get your problem right. A complete stack trace would be required to 
shed more light on that.

The most likely reason is, that the problem is in the Map contents. The 
types.html page that you are quoting states the following regarding maps:

  A key value pair. The keys are strings. The values may be any valid data 
type, including another map.

Most likely, your values aren't "valid data types" in the sense of the above 
page.


> I can't add Map to client execute method part of parameters
> -----------------------------------------------------------
>
>                 Key: XMLRPC-179
>                 URL: https://issues.apache.org/jira/browse/XMLRPC-179
>             Project: XML-RPC
>          Issue Type: Bug
>    Affects Versions: 3.1.2
>         Environment: java 1.6
> OS: XP, CentOS
>            Reporter: Tomaž Majerhold
>            Priority: Critical
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> I have three parms String, Integer, Map and I'm adding them to a List and 
> invoke 
> code example:
> --------------------
> String username = "bla";
> Integer sessId = 1234;
> Map keyVals = new HashTable();
> keyVals.add("a",23);
> keyVals.add("b",3);
> Object[] pParams = {username, keyVals, sessId};
> Object rez = client.execute("PasswordFile.addUserToAA", pParams );
> error:
> -------
> org.apache.xmlrpc.XmlRpcException: type error
> Allowed types on site http://ws.apache.org/xmlrpc/types.html so there is bug 
> in client class.
> It should be explained if just raw type or generics
> This is so unbelievable, I don't understand any more, this should be trivial
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to