Select to view content in your preferred language

Unknown AMF type '15'

1182
2
02-02-2011 07:46 PM
JeromeAnthony
New Contributor
Hi all,

We have a flex client which sends an 'Esri Graphic' object (Esri Flex API 2.2) to a blazeds server. The balzeds server throws the following exception when desirializing the AMF message.

[BlazeDS][Endpoint.AMF] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/4/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = null
body = null
correlationId = null
faultDetail = null
faultString = "Unknown AMF type '15'."
clientId = null
timeToLive = 0.0
destination = null
timestamp = 1.296710934428E12
extendedData = null
faultCode = "Client.Message.Encoding"
messageId = "1846A3AB-DC0D-B523-777E-93593D47E557"

Any solutions or advice to solve or workaround this is greatly appreciated.

Regards,
Jerome
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
Since a Graphic is a UIComponent you may need to create your own DTO.

Another option may be to extend Graphic and implement IExternalizable:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/IExternalizable.html
0 Kudos
JeromeAnthony
New Contributor
Thanks dpaddock,

We did end up going with our own DTO to get around the problem.

I forgot to mention that we did have this working with the Esri Flex API 1.3 version. Once we upgraded to Esri Flex API 2.2 we could no longer send graphics. The problem seems to be related to the geometry object.

Have also noticed that the new inherited properties have made the graphic object much heavier. By using our own DTO this will also decrease the amount of data on the wire.

Regards,
Jerome
0 Kudos