<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">1) Don't catch-and-swallow that exception! If you need to catch and read it, after you log it make sure to call `throw();` to re-throw it up the stack so the engine can catch it and send appropriate rejects.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">2) Regarding your exception: Line 1263 isn't from your OnMessage, is it? I doubt it. I suspect that you are missing an OnMessage() call for some other message type. Your app is probably sending a 35=j when this happens. Look at your message log, find the 35=j, and read it to see what message type you're forgetting to handle.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">3) Your message log is the most important thing you have for diagnosing message problems. Not console prints, not the event log, but the *message* logs that record every FIX message that is sent and received. I get the impression that you aren't looking at it. Make sure you are using a FileLogFactory, and look at your message logs!</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 8, 2020 at 8:20 AM xmoon 2000 <<a href="mailto:xmoon2000@googlemail.com">xmoon2000@googlemail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Grant,<br>
<br>
I have this:<br>
<br>
public void OnMessage(QuickFix.FIX44.TradingSessionStatus<br>
message, SessionID sessionID)<br>
{<br>
try<br>
{<br>
MyLog("Trading Message Status");<br>
}<br>
catch (Exception err)<br>
{<br>
MyLog("Trading Message Status issue: "+err.Message+"<br>
"+err.StackTrace);<br>
}<br>
}<br>
<br>
And I get this error early in day, and no error an hour later:<br>
<br>
Cracker Exception: QuickFix.UnsupportedMessageType: Exception of type<br>
'QuickFix.UnsupportedMessageType' was thrown.<br>
at QuickFix.MessageCracker.Crack(Message message, SessionID sessionID)<br>
at OMS1.OrdersInitiator.FromApp(Message msg, SessionID sessionID)<br>
in C:\Projects\OMS1\OMS1\OrdersInitiator.cs:line 1263<br>
OMS1<br>
<br>
On Fri, 2 Oct 2020 at 16:38, Grant Birchmeier <<a href="mailto:gbirchmeier@connamara.com" target="_blank">gbirchmeier@connamara.com</a>> wrote:<br>
><br>
> It's not an admin message, and it's not one of the message types that the engine automatically handles.<br>
><br>
> Unless you've implemented "OnMessage(TradingSessionStatus msg)", I'd expect your app to respond with a 35=j reject (with 380=3/UnsupportedMessageType). If you just want to ignore it, then implement that method with an empty body.<br>
><br>
> If you have observed that your app has been silently ignoring this message in the past, then I cannot explain that. I would first suggest that you might be mistaken :)<br>
><br>
> On Fri, Oct 2, 2020 at 4:10 AM xmoon 2000 <<a href="mailto:xmoon2000@googlemail.com" target="_blank">xmoon2000@googlemail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I always receive a 35=h message from a particular server straight after logon.<br>
>><br>
>> I have not written any code to handle this message - I assume it is<br>
>> handled by QuickFIXn automatically like a heartbeat?<br>
>><br>
>> Today, for the first time, this message caused a Cracker exception. On<br>
>> restarting the connecting, the message did NOT generate a Cracker<br>
>> exception as usual.<br>
>><br>
>> What might have happened to cause the message to create a Cracker exception?<br>
>><br>
>> This message caused exception:<br>
>> 20201002-00:23:51.253 : 8=FIX.4.4 9=67 35=h 49=yyy 34=2<br>
>> 52=20201002-00:23:51.234 56=xxxxxxx 336=0 340=2 10=181<br>
>><br>
>> This did not:<br>
>> 20201002-03:05:29.953 : 8=FIX.4.4 9=67 35=h 49=yyy 34=2<br>
>> 52=20201002-03:05:29.947 56=xxxxxxxt 336=0 340=2 10=200<br>
>> _______________________________________________<br>
>> Quickfixn mailing list<br>
>> <a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
>> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
><br>
><br>
><br>
> --<br>
> Grant Birchmeier<br>
> Connamara Systems, LLC<br>
> Made-To-Measure Trading Solutions.<br>
> Exactly what you need. No more. No less.<br>
> <a href="http://connamara.com" rel="noreferrer" target="_blank">http://connamara.com</a><br>
><br>
> This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC._______________________________________________<br>
> Quickfixn mailing list<br>
> <a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
> <a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div><font size="2"><span style="background-color:rgb(0,0,0)"><span style="background-color:rgb(255,255,255)">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:rgb(255,204,51)"><span style="background-color:rgb(255,204,102)"><span style="background-color:rgb(255,204,153)"><span style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,204,0)">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
<br>
<span style="color:rgb(29,28,29);font-family:Slack-Lato,appleLogo,sans-serif;white-space:pre-wrap;background-color:white"><font size="2">This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC.</font></span>