不支持的消息类型-securitylist+fix50sp2

r9f1avp5  于 2021-07-09  发布在  Java
关注(0)|答案(1)|浏览(384)

我想抓住- SecurityList 消息(35=y)
在日志文件中接收消息为:

8=FIXT.1.19=000036635=y49=XXXXXX56=XXXXXX34=352=20190204-10:41:59.758369=2320=1322=R1560=0393=951301=DGCX_PRECIOUS_METALS1300=GOLD_FUTURES893=N146=255=[N/A]48=546822=8167=FUT200=201906541=20190529231=32107=DG-20190529562=1561=115=USD120=USD7555=26555=[N/A]48=546922=8167=FUT200=201904541=20190327231=32107=DG-20190327562=1561=115=USD120=USD7555=26510=180

8=FIXT.1.19=9735=j34=349=XXXXXX52=20190204-10:42:00.29356=XXXXXX45=258=Unsupported Message Type372=y380=310=178

首先-无法在fromapp()方法中捕获此消息。
二次使用 message cracker, 将其破解为,但不使用此方法:

public void onMessage(SecurityList message, SessionID sessionId)
              throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
        log.info("Recieved SecurityList");
    }

xml文件的消息序列如下:

<message name='SecurityList' msgtype='y' msgcat='app'>
   <component name='ApplicationSequenceControl' required='N' />
   <field name='SecurityReportID' required='N' />
   <field name='ClearingBusinessDate' required='N' />
   <field name='SecurityReqID' required='N' />
   <field name='SecurityResponseID' required='N' />
   <field name='SecurityRequestResult' required='N' />
   <field name='TotNoRelatedSym' required='N' />
   <field name='MarketID' required='N' />
   <field name='MarketSegmentID' required='N' />
   <field name='LastFragment' required='N' />
   <component name='SecListGrp' required='N' />
   <field name='SecurityListID' required='N' />
   <field name='SecurityListRefID' required='N' />
   <field name='SecurityListDesc' required='N' />
   <field name='EncodedSecurityListDescLen' required='N' />
   <field name='EncodedSecurityListDesc' required='N' />
   <field name='SecurityListType' required='N' />
   <field name='SecurityListTypeSource' required='N' />
   <field name='TransactTime' required='N' />
  </message>

conf文件:

UseDataDictionary=Y
AppDataDictionary=C:\conf\FIX50SP2.xml

原因可能是什么。

cngwdvgl

cngwdvgl1#

消息是用 Message Cracker ,需要检查 MessageCracker 类正在破解该特定消息。
旧版本可能会错过一些消息。
使用更新版本 quickfix-messages-fix50sp2-2.0.0 jar在哪里 MessageCracker 类正在破解此消息解决了问题。

相关问题