[Quickfix-developers] QF - Java initiator throws VM error when sending message
Brought to you by:
orenmnero
|
From: CW J. <jav...@ce...> - 2003-04-21 15:57:25
|
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 =3D
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=3DFIX.4.2=019=3D60=0135=3DF=0111=3D333=0138=3D111=0141=3D111=0154=3D1=01=
55=3DTEST=0160=3D20030421-15:42:
44=0110=3D088=01=20
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=3D0x77E73887
Function=3DRaiseException+0x50
Library=3DC:\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
<snip>
I'm sure it's something I'm doing wrong, but I am just not seeing it.
Any help is appreciated.
TIA,
Cedrick
|