RE: [Quickfix-developers] QF - Java initiator throws VM error when sending message
Brought to you by:
orenmnero
|
From: CW J. <jav...@ce...> - 2003-04-21 19:23:41
|
I got it working, and I now know what I did wrong.
Env Particulars:
QF version is: 1.4.0
Downloaded and installed ver 1.4.1
Looked my my JBuilder Project config.. Even though I was building with
QF 1.4.0,
when I went to RUN the apps, java.library.path was pointing to QF ver
1.3
Now, all is kosher and running at 1.4.1, and the messages are going
through.
Next time I will check that first..
-cj
=20
-----Original Message-----
From: qui...@li...
[mailto:qui...@li...] On Behalf Of
Oren Miller
Sent: Monday, April 21, 2003 11:40 AM
To: CW Johnson; 'quickfix-developers'
Subject: Re: [Quickfix-developers] QF - Java initiator throws VM error
when sending message
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 =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
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.
|