I made a test, it seemed like quickfix can't be used in Eclipse plugins.
I run run_executor_java.bat as acceptor, use banzai as initiator.
But I changed banzai.java and banzaiApplication.java, removed the UI
part(as the attachment). banzai has a main() method, So in Eclipse,
it can run as a java application, everything is ok, banzai can send and
receive messages. But when I "new Banzai()" at my Eclipse plugins, I meet
new problem. The problem is not in Banzai(), it occurs at a new message
arrived
from the acceptor. My Eclipse will popup a "Microsoft Visual C++ Runtime
Libray"
dialogbox, tell me "Program C:\Sun\AppServer\jdk\bin\javaw.exe, This
application
has requested the Runtime to terminate it in an unusual way. Please contact
the
application's support team for more information". So I checked
quickfix_jni.dll's
sourcecode. the problem occured at Conversion.h's
"inline jobject newMessage( const FIX::Message& message, JVMObject factory
)"
method, when this method want "JVMClass type ( "Lquickfix/MessageFactory;"
);"
this dialogbox will popup. But when banzai run's in main(), it is all right.
I tryed and tryed, but I can't find why.
BTW, I also searched maillist history, Girish Subramanya posted
http://sourceforge.net/mailarchive/message.php?msg_id=8750336, which
mentioned the same problem, anyone knows has it been resolved?
panyan
20050626
|