Re: [Quickfix-developers] Quickfix as Eclipse plugin
Brought to you by:
orenmnero
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 |