Ticket #284 (new defect)
UnknownClassAlias: Unknown alias DSK/DSC/DSA
| Reported by: | thijs | Owned by: | nick |
|---|---|---|---|
| Priority: | major | Milestone: | Flex Messaging |
| Component: | Remoting | Version: | |
| Keywords: | Cc: |
Description (last modified by thijs) (diff)
See attached swf that tries to send a AcknowledgeMessageExt through RemoteObject:
import mx.messaging.messages.AcknowledgeMessageExt; public function useRemoteObject():void { employeeRO = new RemoteObject(); employeeRO.destination = "GenericDestination"; employeeRO.setData.addEventListener("result", getListResultHandler); employeeRO.addEventListener("fault", faultHandler); var test:AcknowledgeMessageExt = new AcknowledgeMessageExt(); test.clientId = "123213213"; employeeRO.setData(test); }
Returns this error with r1377:
self.alias = pyamf.get_class_alias(alias) File "/Users/thijstriemstra/Sites/pyamf/pyamf/trunk/pyamf/__init__.py", line 807, in get_class_alias return load_class(klass) File "/Users/thijstriemstra/Sites/pyamf/pyamf/trunk/pyamf/__init__.py", line 778, in load_class raise UnknownClassAlias, "Unknown alias %s" % alias UnknownClassAlias: Unknown alias DSK
My test server:
class GenericDestination: def setData(self, a, b=None): return a services = { 'GenericDestination': GenericDestination() } if __name__ == '__main__': from pyamf.remoting.gateway.wsgi import WSGIGateway from wsgiref import simple_server gw = WSGIGateway(services) httpd = simple_server.WSGIServer( ('localhost', 8000), simple_server.WSGIRequestHandler, ) httpd.set_app(gw) print "Running AMF gateway on http://localhost:8000" try: httpd.serve_forever() except KeyboardInterrupt: pass
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
