Thread: [Quickfix-developers] Quickfix as Eclipse plugin
Brought to you by:
orenmnero
From: Marco M. <ma...@ma...> - 2005-02-13 11:28:30
|
Hello All. I'm trying to integrate Quickfix in an Eclipse plugin but without any luck so far, it keeps crashing whenever a connection is established. The JNI library seems to be loaded without problems, my guess is that it has something to do with the Eclipse own class loader. Do someone have any hints on how to get Quickfix work in an Eclipse plugin ? -- Marco Maccaferri Consulting, Design and Software Development http://www.maccasoft.com |
From: Steve B. <st...@xp...> - 2005-02-13 14:39:11
|
Hi Marco, Can you be more specific about the crash? Is it complaining about not finding the native library or ???. Steve > -----Original Message----- > From: Marco Maccaferri [mailto:ma...@ma...] > Sent: Sunday, February 13, 2005 5:28 AM > To: qui...@li... > Subject: [Quickfix-developers] Quickfix as Eclipse plugin > > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hello All. > > I'm trying to integrate Quickfix in an Eclipse plugin but without any > luck so far, it keeps crashing whenever a connection is established. The > JNI library seems to be loaded without problems, my guess is that it has > something to do with the Eclipse own class loader. > Do someone have any hints on how to get Quickfix work in an > Eclipse plugin ? > > -- > Marco Maccaferri > Consulting, Design and Software Development > http://www.maccasoft.com > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Marco M. <ma...@ma...> - 2005-02-13 15:37:31
|
Hi. No, it pops-up a dialog 'Microsoft Visual C++ Runtime Error' with '<path_to>\javaw.exe This application has requested the Runtime to terminate it in an unusual way. Please contact...'. I can't find a more detailed log. The jni library seems to load correctly. If the client doesn't connect to the server it keeps retrying the connection without problems, whenever the client connects the error occurs. On 13/02/2005 15.39 Steve Bate wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi Marco, > > Can you be more specific about the crash? Is it complaining > about not finding the native library or ???. > > Steve > >> -----Original Message----- >> From: Marco Maccaferri [mailto:ma...@ma...] >> Sent: Sunday, February 13, 2005 5:28 AM >> To: qui...@li... >> Subject: [Quickfix-developers] Quickfix as Eclipse plugin >> >> >> QuickFIX Documentation: >> http://www.quickfixengine.org/quickfix/doc/html/index.html >> QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ >> QuickFIX Support: http://www.quickfixengine.org/services.html >> >> Hello All. >> >> I'm trying to integrate Quickfix in an Eclipse plugin but without any >> luck so far, it keeps crashing whenever a connection is established. The >> JNI library seems to be loaded without problems, my guess is that it has >> something to do with the Eclipse own class loader. >> Do someone have any hints on how to get Quickfix work in an >> Eclipse plugin ? >> >> -- >> Marco Maccaferri >> Consulting, Design and Software Development >> http://www.maccasoft.com >> >> >> >> ------------------------------------------------------- >> SF email is sponsored by - The IT Product Guide >> Read honest & candid reviews on hundreds of IT Products from real users. >> Discover which products truly live up to the hype. Start reading now. >> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >> _______________________________________________ >> Quickfix-developers mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfix-developers >> > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > -- Marco Maccaferri Consulting, Design and Software Development http://www.maccasoft.com |
From: Steve B. <st...@xp...> - 2005-02-13 16:26:05
|
Does anybody know of published FIX engine performance benchmarks (not the results, but the actual benchmark definitions)? I've seen performance numbers from various FIX engine vendors but they don't give much details about the actual tests, the hardware used (processor type and speed, memory, ...) or if they were logging messages to disk versus memory, etc. Steve |
From: Scott H. <sco...@fo...> - 2005-02-13 18:05:45
|
Marco's problem sounds a lot like what happened to me when I needed to run under WebStart, which employs a different ClassLoader that JNI's usual FindClass method is not aware of. Coupled with QF's current exception handling under JNI, the resulting failures were difficult to debug even with CallStack support compiled in. I have just now added Bug #58 to the bugtracker, and uploaded a ZIP file attachment with my fix. These fixes improve JNI support generally, not just for WebStart or other weird ClassLoader situtations. Here's an overview of what I did: - new quickfix.RuntimeConfig java class - modified src/java/JVM.cpp to optionally use alternate ClassLoader - modified src/C++/CallStack.* and Exception.h to be usable from src/java - added fatalError() function which shuts down the JVM cleanly on coredump - added CallStack wrappers to JNI code I'll be happy to discuss these changes and would love to see them merged into CVS. Scott P.S. for some reason I cannot read from CVS today. Is it not still :pserver:ano...@cv...:/cvsroot/quickfix ? On Sun, 13 Feb 2005, Marco Maccaferri wrote: > Hi. > > No, it pops-up a dialog 'Microsoft Visual C++ Runtime Error' with > '<path_to>\javaw.exe This application has requested the Runtime to > terminate it in an unusual way. Please contact...'. I can't find a more > detailed log. > > The jni library seems to load correctly. If the client doesn't connect > to the server it keeps retrying the connection without problems, > whenever the client connects the error occurs. > > On 13/02/2005 15.39 Steve Bate wrote: > > > Hi Marco, > > > > Can you be more specific about the crash? Is it complaining > > about not finding the native library or ???. > > > > Steve > > > >> -----Original Message----- > >> From: Marco Maccaferri [mailto:ma...@ma...] > >> Sent: Sunday, February 13, 2005 5:28 AM > >> To: qui...@li... > >> Subject: [Quickfix-developers] Quickfix as Eclipse plugin > >> > >> Hello All. > >> > >> I'm trying to integrate Quickfix in an Eclipse plugin but without any > >> luck so far, it keeps crashing whenever a connection is established. The > >> JNI library seems to be loaded without problems, my guess is that it has > >> something to do with the Eclipse own class loader. > >> Do someone have any hints on how to get Quickfix work in an > >> Eclipse plugin ? > >> > >> -- > >> Marco Maccaferri > >> Consulting, Design and Software Development > >> http://www.maccasoft.com |
From: Marco M. <ma...@ma...> - 2005-02-14 08:47:17
|
Scott, your patch seems to work, I'll do more tests as the plugin development proceed. One thing: the RuntimeConfig.java file seems to be missing from the archive attached to the bug report. Many thanks for your help. On 13/02/2005 19.05 Scott Harrington wrote: > Marco's problem sounds a lot like what happened to me when I needed to run > under WebStart, which employs a different ClassLoader that JNI's usual > FindClass method is not aware of. Coupled with QF's current exception > handling under JNI, the resulting failures were difficult to debug even > with CallStack support compiled in. > > I have just now added Bug #58 to the bugtracker, and uploaded a ZIP file > attachment with my fix. These fixes improve JNI support generally, not > just for WebStart or other weird ClassLoader situtations. Here's an > overview of what I did: > > - new quickfix.RuntimeConfig java class > - modified src/java/JVM.cpp to optionally use alternate ClassLoader > - modified src/C++/CallStack.* and Exception.h to be usable from src/java > - added fatalError() function which shuts down the JVM cleanly on coredump > - added CallStack wrappers to JNI code > > I'll be happy to discuss these changes and would love to see them merged > into CVS. > > Scott > > P.S. for some reason I cannot read from CVS today. Is it not still > :pserver:ano...@cv...:/cvsroot/quickfix ? > > > On Sun, 13 Feb 2005, Marco Maccaferri wrote: > >> Hi. >> >> No, it pops-up a dialog 'Microsoft Visual C++ Runtime Error' with >> '<path_to>\javaw.exe This application has requested the Runtime to >> terminate it in an unusual way. Please contact...'. I can't find a more >> detailed log. >> >> The jni library seems to load correctly. If the client doesn't connect >> to the server it keeps retrying the connection without problems, >> whenever the client connects the error occurs. >> >> On 13/02/2005 15.39 Steve Bate wrote: >> >> > Hi Marco, >> > >> > Can you be more specific about the crash? Is it complaining >> > about not finding the native library or ???. >> > >> > Steve >> > >> >> -----Original Message----- >> >> From: Marco Maccaferri [mailto:ma...@ma...] >> >> Sent: Sunday, February 13, 2005 5:28 AM >> >> To: qui...@li... >> >> Subject: [Quickfix-developers] Quickfix as Eclipse plugin >> >> >> >> Hello All. >> >> >> >> I'm trying to integrate Quickfix in an Eclipse plugin but without any >> >> luck so far, it keeps crashing whenever a connection is established. The >> >> JNI library seems to be loaded without problems, my guess is that it has >> >> something to do with the Eclipse own class loader. >> >> Do someone have any hints on how to get Quickfix work in an >> >> Eclipse plugin ? >> >> >> >> -- >> >> Marco Maccaferri >> >> Consulting, Design and Software Development >> >> http://www.maccasoft.com > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > -- Marco Maccaferri Consulting, Design and Software Development http://www.maccasoft.com |
From: Scott H. <sco...@fo...> - 2005-02-14 13:28:57
Attachments:
RuntimeConfig.java
|
Oops, I forgot the most important file. I've attached it here, and also uploaded a fixed ZIP file to the bugtracker. On Mon, 14 Feb 2005, Marco Maccaferri wrote: > Scott, > > your patch seems to work, I'll do more tests as the plugin development > proceed. > > One thing: the RuntimeConfig.java file seems to be missing from the > archive attached to the bug report. > > Many thanks for your help. > > > On 13/02/2005 19.05 Scott Harrington wrote: > > > Marco's problem sounds a lot like what happened to me when I needed to run > > under WebStart, which employs a different ClassLoader that JNI's usual > > FindClass method is not aware of. Coupled with QF's current exception > > handling under JNI, the resulting failures were difficult to debug even > > with CallStack support compiled in. > > > > I have just now added Bug #58 to the bugtracker, and uploaded a ZIP file > > attachment with my fix. These fixes improve JNI support generally, not > > just for WebStart or other weird ClassLoader situtations. Here's an > > overview of what I did: > > > > - new quickfix.RuntimeConfig java class > > - modified src/java/JVM.cpp to optionally use alternate ClassLoader > > - modified src/C++/CallStack.* and Exception.h to be usable from src/java > > - added fatalError() function which shuts down the JVM cleanly on coredump > > - added CallStack wrappers to JNI code > > > > I'll be happy to discuss these changes and would love to see them merged > > into CVS. > > > > Scott > > > > P.S. for some reason I cannot read from CVS today. Is it not still > > :pserver:ano...@cv...:/cvsroot/quickfix ? > > > > > > On Sun, 13 Feb 2005, Marco Maccaferri wrote: > > > >> Hi. > >> > >> No, it pops-up a dialog 'Microsoft Visual C++ Runtime Error' with > >> '<path_to>\javaw.exe This application has requested the Runtime to > >> terminate it in an unusual way. Please contact...'. I can't find a more > >> detailed log. > >> > >> The jni library seems to load correctly. If the client doesn't connect > >> to the server it keeps retrying the connection without problems, > >> whenever the client connects the error occurs. > >> > >> On 13/02/2005 15.39 Steve Bate wrote: > >> > >> > Hi Marco, > >> > > >> > Can you be more specific about the crash? Is it complaining > >> > about not finding the native library or ???. > >> > > >> > Steve > >> > > >> >> -----Original Message----- > >> >> From: Marco Maccaferri [mailto:ma...@ma...] > >> >> Sent: Sunday, February 13, 2005 5:28 AM > >> >> To: qui...@li... > >> >> Subject: [Quickfix-developers] Quickfix as Eclipse plugin > >> >> > >> >> Hello All. > >> >> > >> >> I'm trying to integrate Quickfix in an Eclipse plugin but without any > >> >> luck so far, it keeps crashing whenever a connection is established. The > >> >> JNI library seems to be loaded without problems, my guess is that it has > >> >> something to do with the Eclipse own class loader. > >> >> Do someone have any hints on how to get Quickfix work in an > >> >> Eclipse plugin ? > >> >> > >> >> -- > >> >> Marco Maccaferri > >> >> Consulting, Design and Software Development > >> >> http://www.maccasoft.com |
From: Joerg T. <Joe...@ma...> - 2005-02-14 16:19:21
|
Scott Harrington wrote: > Oops, I forgot the most important file. I've attached it here, and also > uploaded a fixed ZIP file to the bugtracker. Thanks, Scott for this patch. I will have a look at it and check it in as soon as I got some time. Marco, could you please confirm that the now complete version (including RuntimeConfig) works fine? Just update the bugtracker. Thanks, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |
From: Clive M. <cl...@va...> - 2005-02-14 16:31:32
|
On Monday 14 Feb 2005 16:19, Joerg Thoennes wrote: > Scott Harrington wrote: > > Oops, I forgot the most important file. I've attached it here, and also > > uploaded a fixed ZIP file to the bugtracker. > > Thanks, Scott for this patch. I will have a look at it and check it in as > soon as I got some time. Marco, could you please confirm that the now > complete version (including RuntimeConfig) works fine? Just update the > bugtracker. Yes, good patch Scott. I've been testing with a JBoss MBean deployment, minus the kludge of a ClassLoader hack I was using. Regards Clive -- Clive Messer <cl...@va...> |
From: Marco M. <ma...@ma...> - 2005-02-14 17:04:19
|
Joerg, yes the complete version with the RuntimeConfig works fine under=20 Windows, I haven't had the time to recompile and test under Linux. On 14/02/2005 17.19 Joerg Thoennes wrote: > Scott Harrington wrote: >> Oops, I forgot the most important file. I've attached it here, and al= so=20 >> uploaded a fixed ZIP file to the bugtracker. >=20 > Thanks, Scott for this patch. I will have a look at it and check it in = as soon as I got=20 > some time. Marco, could you please confirm that the now complete versio= n (including=20 > RuntimeConfig) works fine? Just update the bugtracker. >=20 > Thanks, J=F6rg >=20 --=20 Marco Maccaferri Consulting, Design and Software Development http://www.maccasoft.com |
From: Joerg T. <Joe...@ma...> - 2005-02-13 18:21:40
|
Hi Marco, > No, it pops-up a dialog 'Microsoft Visual C++ Runtime Error' with > '<path_to>\javaw.exe This application has requested the Runtime to > terminate it in an unusual way. Please contact...'. I can't find a more > detailed log. > > The jni library seems to load correctly. If the client doesn't connect > to the server it keeps retrying the connection without problems, > whenever the client connects the error occurs. Please tell us which QF version you are using. Some versions had the problem that if the configuration file was incomplete, an uncatched exception could pop up the stack and lead to a crash. Esp. check your host and port settings, e.g. whether port is already used on this machine. In addition, the crash log of the JVM would be helpful. Thanks, Jörg -- Joerg Thoennes http://macd.com Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen |