[Twisted-Python] pb references
Hi I am trying to call a remote method on a client from a server using a reference that has been given to the server by the client. I am trying to do this in the way described in your "References to Client-side objects" documentation. However, I keep getting the following error: "Can't send references to brokers other than their own." and I can't see why. Any help with this error would be greatly appreciated. This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. ********************************************************************************************** BNP Paribas Private Bank London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Securities Services London Branch is authorised by CECEI & AMF and is regulated by the Financial Services Authority for the conduct of its investment business in the United Kingdom. BNP Paribas Fund Services UK Limited is authorised and regulated by the Financial Services Authority
However, I keep getting the following error: "Can't send references to brokers other than their own." and I can't see why.
To get this kind of error, you need to have 3 parties communicating. Let's call them A, B, and C. A creates a referenceable object, and sends it to B. The perpsective broker on B's side, upon receiving what A sent it, creates an object called RemoteReference. A RemoteReference is an object that is the local representative for the Referenceable that was sent from A. This means that you call callRemote using this RemoteReference. Now, B is apparently trying to send this RemoteReference to some third party, C. This is not allowed by twisted, possibly because that would often require forwarding messages from C to A through B, which can be inefficient and unreliable. In short: you seem to be sending an reference you got through pb to another pb peer, which is not allowed. I hope that helps.
participants (2)
-
Micky Latowicki
-
william.lewis@uk.bnpparibas.com