2013-01-03 60 views
2

我正在使用消息集來解析文件,並且得到以下異常。我無法理解它實際上的含義。請幫助我理解並解決問題。解析消息時出現異常

<ParserException> 
     <File>/build/S000_P/src/MTI/MTIforBroker/MtiImbParser2/MtiImbFIHandler.cpp</File> 
     <Line>1017</Line> 
     <Function>MtiImbFIHandler::endMessageContent</Function> 
     <Type></Type> 
     <Name></Name> 
     <Label></Label> 
     <Catalog>BIPmsgs</Catalog> 
     <Severity>3</Severity> 
     <Number>5288</Number> 
     <Text>MTI. Not all the buffer was used when reading message</Text> 
     <Insert> 
     <Type>2</Type> 
     <Text>0</Text> 
     </Insert> 
     <Insert> 
     <Type>2</Type> 
     <Text>1659</Text> 
     </Insert> 
     </ParserException> 
+0

查看此連結:http://www.mqseries.net/phpBB2/viewtopic.php?t=11050 – Kcvin

回答

0

這種錯誤發生在消息在數據之前設置「結束」時。 例如:
我們已經得到了味精這樣設置:
名稱 - 5 CHAR
SURNAME - 5 CHAR

數據是: MARIOROSSIAAAAA

解析後會引發那種異常,因爲味精集別指望字符串「AAAAA」但僅限於: NAME =「馬里奧」
SURNAME =「羅西」

如果沒有精確的例子是不是不可能性去任何furt她的。

相關問題