Re: [Quickfix-developers] QF - Java initiator throws VM error when sending message
Brought to you by:
orenmnero
|
From: Oren M. <ore...@ya...> - 2003-04-21 16:40:01
|
QF version? You println would not have the Sender and Target comp id's because you are printing before the call to sendToTarget (which is when those fields get set on the message). You can also try explicitly setting the fields on the message to see if you get different results: message.getHeader().set( new SenderCompID("SenderCompID") );message.getHeader().set( new TargetCompID("RXCompID") );Session.sendToTarget( message ); Some older versions would crash when attempting to send to a session that doesn't exist, however this shouldn't be the case if you are getting it from onLogon. Try printing out the SessionID before sending, make sure it isn't null for some reason.
CW Johnson <jav...@ce...> wrote:Ok-
I've tried looking to see what exactly I'm doing wrong, and I just tried
sending the
"basics" from the documentation. Here's the code I used:
org.quickfix.fix42.OrderCancelRequest message =
new org.quickfix.fix42.OrderCancelRequest
(new OrigClOrdID("111"),
new ClOrdID("333"),
new Symbol("TEST"),
new Side(Side.BUY),
new TransactTime());
message.setField(new OrderQty(111));
System.out.println("Sending message to FIX acceptor: " +
message.toString());
Session.sendToTarget(message, this.currSessid);
the variable currSessid is set when the app gets the onLogon method. I
tried this
method to no avail as well:
Session.sendToTarget(message, "SenderCompID", "RXCompID");
It logs on, and the println statement prints this:
Sending message to FIX bus:
8=FIX.4.29=6035=F11=33338=11141=11154=155=TEST60=20030421-15:42:
4410=088
I notice I'm missing Sender and Recipient CompID's... But like I said,
get the SAME results when I specify manually.
Here's my dump:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : unknown exception code occurred at PC=0x77E73887
Function=RaiseException+0x50
Library=C:\WINDOWS\system32\kernel32.dll
Current Java thread:
at org.quickfix.SocketInitiator.doStart(Native Method)
at org.quickfix.SocketInitiator.start(Unknown Source)
at
com.espeed.fix.webgateway.WebGatewayApplication.main(WebGatewayApplicati
on.java:30)
Dynamic libraries:
0x00400000 - 0x00406000 C:\java\jdk140\bin\javaw.exe
I'm sure it's something I'm doing wrong, but I am just not seeing it.
Any help is appreciated.
TIA,
Cedrick
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Quickfix-developers mailing list
Qui...@li...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers
---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo. |