Re: [Quickfix-users] XmlSerializer causes "Logout" in acceptor app
Brought to you by:
orenmnero
From: Farah, A. <Ami...@it...> - 2007-01-23 21:32:37
|
Good point. However, doesn't look like it. Tried the following (below) and it happily prints out a long xml string in the log file. Then the logout happens immediately afterward. =20 public override void onMessage(QuickFix42.NewOrderSingle fixOrder, SessionID session) { try { Object myobject =3D new Object(); log.Info("create xmlserializer"); XmlSerializer x =3D new XmlSerializer(typeof(Object)); XmlSerializer x =3D new XmlSerializer(typeof(Object)); StringWriter sw =3D new StringWriter(); log.Info("xmlserializer: " + sw.ToString()); } catch(Exception e) { log.Info("caught exception from seializer" + e.Message); } } =20 ________________________________ From: Oren Miller [mailto:or...@qu...]=20 Sent: Tuesday, January 23, 2007 3:50 PM To: Farah, Amir Cc: qui...@li... Subject: Re: [Quickfix-users] XmlSerializer causes "Logout" in acceptor app =20 Are you sure that the serializer isn't throwing an exception? =20 --oren =20 Constructing an XmlSerializer object inside an onMessage() callback causes QuickFIX to generate a "logout". =20 Here is C# example code: =20 class OrderSession : MessageCracker, Application { public void onCreate(SessionID sessID) {} ........ onLogon(), toAdmin(), etc, etc. =20 public override void onMessage(QuickFix42.NewOrderSingle fixOrder, SessionID session) { Object myobject =3D new Object(); XmlSerializer x =3D new XmlSerializer(typeof(Object)); // causes logout } } =20 Anyone else experienced this problem? =20 Thanks, =20 Amir =20 =20 =09 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+- This message is for the named person's use only. This communication is for informational purposes only and has been obtained from sources believed to be reliable, but it is not necessarily complete and its accuracy cannot be guaranteed. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. Moreover, this material should not be construed to contain any recommendation regarding, or opinion concerning, any security. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. =20 Securities products and services provided to Canadian investors are offered by ITG Canada Corp. (member CIPF and IDA), an affiliate of Investment Technology Group, Inc. =20 ITG Inc. and/or its affiliates reserves the right to monitor and archive all electronic communications through its network. =20 ITG Inc. Member NASD, SIPC =09 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+- =09 ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash =09 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE= VDE V_______________________________________________ Quickfix-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-users =20 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- This message is for the named person's use only. This communication is for informational purposes only and has been obtained from sources believed to be reliable, but it is not necessarily complete and its accuracy cannot be guaranteed. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. Moreover, this material should not be construed to contain any recommendation regarding, or opinion concerning, any security. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Securities products and services provided to Canadian investors are offered by ITG Canada Corp. (member CIPF and IDA), an affiliate of Investment Technology Group, Inc. ITG Inc. and/or its affiliates reserves the right to monitor and archive all electronic communications through its network. ITG Inc. Member NASD, SIPC -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |