|
From: <st...@te...> - 2006-11-16 17:07:12
|
I can't parse that message. The error I see is... quickfix.InvalidMessage: Actual body length=576, Expected body length=578 If I set the length to the correct length and adjust the checksum accordingly, the message parses and formats without error. Steve > 8=FIX.4.49=57835=849=AAAAAAA56=FFTWFIX34=1252=20061115-15:52:57.357 > 347=UTF-837=NONREF198=TWPTB000006146711=F4714453=3448=Fischer Francis > Trees > & > Watts447=C452=3448...@FF...447=C452=11448=DLRWUS31447=B452=1 > 17=TWPTB0000061467132=59730000.00000031=4.9070669=99.291211110150=F39=254=1 > 64=2006112055=[N/A]48=912795YN522=1460=6167=TBILL541=20070111225=20061012 > 873=20060713107=B > 01/11/200715=USD38=59730000.000000423=46=99.291211110 > 381=59306640.40118=59306640.40151=014=59730000.00000030=TRWB75=20061115 > 60=20061115-15:52:566616=20061115-15:51:0310=104 > > > > > > Alvin Wang/FFTW > > 11/14/2006 08:01 To > AM "quickfixj-users" > <qui...@li.... > net>, > <qui...@li.... > net> > cc > > Subject > Re: [Quickfixj-users] > quickfix.Message.toString() > NullPointerException > > > > > > > > > > No. I did not compose a message. I use toString on a received message > > > > > > ----- Original Message ----- > From: "Steve Bate" [st...@te...] > Sent: 11/14/2006 07:45 AM > To: <qui...@li...> > Subject: Re: [Quickfixj-users] quickfix.Message.toString() > NullPointerException > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > If you set a field value to null, that would cause this exception. > > Steve > >> -----Original Message----- >> From: qui...@li... [mailto:quickfixj- >> use...@li...] On Behalf Of Alvin Wang >> Sent: Monday, November 13, 2006 10:18 AM >> To: qui...@li... >> Cc: qui...@li...; quickfixj-users- >> bo...@li... >> Subject: [Quickfixj-users] quickfix.Message.toString() >> NullPointerException >> >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> Hi, >> >> I got the following exception when I tried to run a toString() method on > a >> FIX44 Execution Report message. >> Could you take a look? thanks >> >> Alvin >> >> java.lang.NullPointerException >> >> at quickfix.FieldMap.calculateString(FieldMap.java:457) >> >> at quickfix.Message$Header.calculateString(Message.java:323) >> >> at quickfix.Message.toString(Message.java:132) >> >> >> >> >> > ************************************************************************** >> ***** >> 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. >> > ************************************************************************** >> ***** >> >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > 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 > |