Ward Loockx schreef:
Hello,
I'm trying to serialize an Actionscript associative array to Java Map.
When I do my request I get an error
*[RPC Fault faultString="The fill method is not defined for
destination 'search' which matches fill parameters: '[
{
nickname =
}] (class: java.util.ArrayList)'" faultCode="Server.Processing"
faultDetail="null"]*
(Even with a value it doesn't work). Looks like he makes an ArrayList
at serverside... -> but is this possible because ArrayList only can
contain numeric keys (I think?)
This is my data-services destination config
* <destination id="search">
<adapter ref="java-dao" />
<properties>
<source>be.enjoy.SearchServiceAssembler</source>
<scope>application</scope>
<metadata>
<identity property="account" />
</metadata>
<server>
<fill-method>
<name>fill</name>
<params>java.util.Map</params>
</fill-method>
</server>
</properties>
</destination>*
And my method
*
public Collection fill(Map criteria)
{
System.out.println(criteria.toString());
//SearchServiceDAO service = new SearchServiceDAO();
//List results = service.searchCams(criteria);
Vector v = new Vector();
return v;
//return results;
}*
Thx!
Ward
Looks like the array is put in an array @ serverside... any suggestions?
* (Command method=null (0) trxId=2.0)
null
(Typed Object #0 'flex.data.messages.DataMessage')
identity = null
operation = 1
correlationId = ""
clientId = "E10FD859-16F0-3472-4D61-916E0FD454A4"
destination = "search"
messageId = "19D4D897-2125-5944-A1C2-916E30B82FD9"
body = (Array #1)
[0] = ""
[1] = (ECMA Array #2)
""
""
""
""
""
""
""
""
""
"european"
""
""
""
""
""
timeToLive = 0
timestamp = 0
headers = (Object #3)
DSEndpoint = "my-rtmp"
DSId = "300DE9BB-E309-F9EB-87D7-B9869B31683A"
*