|
From: Shepheard, T. \(London\) <Tob...@ml...> - 2007-02-23 10:45:23
|
Can you show us an example of the message string that you're passing in from the counterparty, along with the reported actual and expected message lengths? It might give a clue as to where in the message the problem is occurring, and in turn help nail where in the code the problem is. >From what you said below, is it correct to infer that this was working for 1.0.4 but broken in 1.0.5? -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Alvin Wang Sent: 22 February 2007 20:14 To: qui...@li... Cc: qui...@li...; qui...@li... Subject: Re: [Quickfixj-users] InvalidMessage exception QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Basically, I received the message from counterparty via FIX as a string, then I use "new Message(String str)". It is correct that that message string contains some repeating group, but that should not be relevant as the message is not built by my code, instead it was received as a string. I am using QuickFIX/J 1.0.5, I just wonder if there is any change in FieldMap.java from 1.0.4 to 1.0.5? Thanks. Alvin =20 "Shepheard, Toby (London)" <Toby_Shepheard@m To=20 l.com> <qui...@li....=20 Sent by: net> quickfixj-users-b cc=20 ou...@li... ceforge.net Subject=20 Re: [Quickfixj-users] InvalidMessage exception 02/21/2007 08:07 AM =20 =20 Please respond to quickfixj-users@l ists.sourceforge. net =20 =20 QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ In general terms it's simply saying that your FIX message isn't constructed properly. I think this can happen when you don't build a group properly, for example adding fields to the body directly rather than as part of a group. Another possibility is that you have a RawData field without a RawDataLength preceding it. It would help to see the code that's building the message header and body, including construction of any groups, if the above doesn't help you fix the problem. Regards, Toby -----Original Message----- From: qui...@li... [mailto:qui...@li...] On Behalf Of Alvin Wang Sent: 20 February 2007 18:13 To: qui...@li... Subject: [Quickfixj-users] InvalidMessage exception QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Hi I got the following exception when calling a Message constructor. Could anyone explain what does this mean? and how to fix it? thanks Alvin =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D quickfix.InvalidMessage: Actual body length=3D452, Expected body length=3D518 at quickfix.Message.validate(Message.java:404) at quickfix.Message.fromString(Message.java:395) at quickfix.Message.<init>(Message.java:90) ************************************************************************ ******* This e-mail message is intended solely for the use of the addressee. The message may contain information that is privileged and confidential. Disclosure to anyone other than the intended recipient is prohibited. If you are not the intended recipient, please do not disseminate, distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail(including the original message with your reply) and then delete and discard all copies of the message. We have taken precautions to minimize the risk of transmitting software viruses but nevertheless advise you to carry out your own virus checks on any attachment to this message. We accept no liability for any loss or damage caused by software viruses. ************************************************************************ ******* ------------------------------------------------------------------------ - 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 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- ------------------------------------------------------------------------ - 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 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users ------------------------------------------------------------------------ - 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 http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDE V _______________________________________________ Quickfixj-users mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfixj-users |