|
From: Alex M. <ale...@eu...> - 2007-04-25 11:28:55
|
Hi All,
=20
I'm getting the following exception in my QFJ log when I try to send a
quote request message with multiple legs:
=20
java.lang.NullPointerException
at quickfix.Message.parseGroup(Message.java:515)
at quickfix.Message.parseGroup(Message.java:509)
at quickfix.Message.parseBody(Message.java:483)
at quickfix.Message.fromString(Message.java:389)
at quickfix.MessageUtils.parse(MessageUtils.java:79)
at
quickfix.mina.AbstractIoHandler.messageReceived(AbstractIoHandler.java:1
19)
at
org.apache.mina.common.support.AbstractIoFilterChain$2.messageReceived(A
bstractIoFilterChain.java:188)
at
org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageRece
ived(AbstractIoFilterChain.java:504)
at
org.apache.mina.common.support.AbstractIoFilterChain.access$1000(Abstrac
tIoFilterChain.java:51)
at
org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.message
Received(AbstractIoFilterChain.java:790)
at
org.apache.mina.filter.ThreadPoolFilter.processEvent(ThreadPoolFilter.ja
va:706)
at
org.apache.mina.filter.ThreadPoolFilter$Worker.processEvents(ThreadPoolF
ilter.java:462)
at
org.apache.mina.filter.ThreadPoolFilter$Worker.run(ThreadPoolFilter.java
:417)
=20
I'm using the following code to build my quote request:
=20
QuoteRequest quoteRequest =3D new QuoteRequest();
quoteRequest.set(new QuoteReqID(makeUnique()));
QuoteRequest.NoRelatedSym noRelatedSym =3D new
QuoteRequest.NoRelatedSym();
noRelatedSym.set(new Currency("GBP"));
noRelatedSym.set(new Symbol("GBP/USD"));
QuoteRequest.NoRelatedSym.NoLegs noLegs =3D new
QuoteRequest.NoRelatedSym.NoLegs();
noLegs.set(new LegQty(2000000));
noLegs.set(new LegSettlDate("20070405"));
noRelatedSym.addGroup(noLegs);
noLegs.set(new LegQty(2000000));
noLegs.set(new LegSettlDate("20070508"));
noRelatedSym.addGroup(noLegs);
quoteRequest.addGroup(noRelatedSym);
=20
Thanks in advance for any help...
Eurobase International Limited and its subsidiaries (Eurobase) are =
unable to exercise control over the content of information in E-Mails. =
Any views and opinions expressed may be personal to the sender and are =
not necessarily those of Eurobase. Eurobase will not enter into any =
contractual obligations in respect of any part of its business in any =
E-mail.=20
Privileged / confidential information may be contained in this message =
and /or any attachments. This E-mail is intended for the use of the =
addressee(s) only and may contain confidential information. If you are =
not the / an intended recipient, you are hereby notified that any use or =
dissemination of this communication is strictly prohibited. If you =
receive this transmission in error, please notify us immediately, and =
then delete this E-mail.=20
Neither the sender nor Eurobase accepts any liability whatsoever for any =
defects of any kind either in or arising from this E-mail transmission. =
E-Mail transmission cannot be guaranteed to be secure or error-free, as =
messages can be intercepted, lost, corrupted, destroyed, contain =
viruses, or arrive late or incomplete. Eurobase does not accept any =
responsibility for viruses and it is your responsibility to scan any =
attachments.
Eurobase Systems Limited is the main trading company in the Eurobase =
International Group; registered in England and Wales as company number =
02251162; registered address: Essex House, 2 County Place, Chelmsford, =
Essex CM2 0RE, UK.
|