|
From: Alvin W. <AW...@FF...> - 2007-03-08 21:05:37
|
OK, I took the pain to step into QFJ's codes. In Message.java, we have:
public Message(String string) throws InvalidMessage {
fromString(string, null, true);
}
DataDictionary is null, as a result, it cannot parse a message with group
correctly. My question is what is the use of the constructor if it cannot
handle group at the end?
I do not have this problem with QF java wrapper. It has the following:
public Message(String string) throws InvalidMessage {
initFromString(string, true);
}
private void initFromString(String string, boolean validate)
throws InvalidMessage {
create();
header = new Header( this );
trailer = new Trailer( this );
fromString(string, validate);
}
That means QF java wrapper can validate without the dictionary.... (Oren,
maybe you can clarify a bit, i did not go down to C code after this...)
thanks...
"Shepheard, Toby
(London)"
<Toby_Shepheard@m To
l.com> <qui...@li....
Sent by: net>
quickfixj-users-b cc
ou...@li...
ceforge.net Subject
Re: [Quickfixj-users]
InvalidMessage exception
02/23/2007 05:44
AM
Please respond to
quickfixj-users@l
ists.sourceforge.
net
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
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
"Shepheard, Toby
(London)"
<Toby_Shepheard@m
To
l.com>
<qui...@li....
Sent by: net>
quickfixj-users-b
cc
ou...@li...
ceforge.net
Subject
Re: [Quickfixj-users]
InvalidMessage exception
02/21/2007 08:07
AM
Please respond to
quickfixj-users@l
ists.sourceforge.
net
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
============================================================
quickfix.InvalidMessage: Actual body length=452, Expected body
length=518
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=join.php&p=sourceforge&CID=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=join.php&p=sourceforge&CID=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=join.php&p=sourceforge&CID=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=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Quickfixj-users mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
|