[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2939) Seam Remoting Problem - Cannot pass HashMap

Shane Bryzak (JIRA) jira-events at lists.jboss.org
Sat May 3 03:21:18 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-2939?page=all ]

Shane Bryzak closed JBSEAM-2939.
--------------------------------

    Fix Version/s: 2.1.0.BETA1
       Resolution: Done

Actually I was able to reproduce it by declaring the param as the parameterized type HashMap<String,String> instead of just a Map<String,String>.  Anyway, fixed now in SVN.

> Seam Remoting Problem - Cannot pass HashMap
> -------------------------------------------
>
>                 Key: JBSEAM-2939
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2939
>             Project: Seam
>          Issue Type: Bug
>          Components: Remoting
>    Affects Versions: 2.0.0.GA
>         Environment: Windows XP
>            Reporter: P C
>         Assigned To: Shane Bryzak
>             Fix For: 2.1.0.BETA1
>
>
> I have a problem where when I pass a HashMap parameter from client js to the server, the server (SEAM) doesn't seem to be able to convert/decode the HashMap properly.  I have the following exception in seam:
> Caused by: org.jboss.seam.remoting.wrapper.ConversionException: Could not create value of type [java.util.HashMap<java.lang.String, java.lang.String>]
>                       at org.jboss.seam.remoting.wrapper.MapWrapper.convert(MapWrapper.java:101)
>                        .....
> Here what I have done to pass the HashMap in javascript:
> var testM = new Seam.Remoting.Map()
> testM.put("0","0");
> testM.put("1","1");
> Seam.Component.getInstance("event").testMap(testM,callback);
> Someone mentioned a bug like that in the past, but doesn't look like it is resolved (JBSEAM-1202)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list