|
osdir.com mailing list archive |
|
Subject: 1.9.3 java runtime error - msg#00014List: finance.quickfix.userI'm getting the following when I try to run any of the java examples: run_banzai Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/libquickfix_jni.so.9.0.0: /usr/local/lib/libquickfix.so.5: undefined symbol: _ZTTSt14basic_ifstreamIcSt11char_traitsIcEE at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at Banzai.<clinit>(Unknown Source) I do not have this problem with 1.9.2. Any suggestions? Thanks Dwight Browne This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates
Thread at a glance:
Previous Message by Date: (click to view message preview)Problem running QuickFix 1.9.3 managed wrapper (System.IO.FileNotFoundException)Hi, As the documentation suggests I added project references to quickfix_net.dll and quickfix_net_messages.dll to a C# project. I added the following code in the Main method QuickFix.SessionSettings settings = new QuickFix.SessionSettings("QuickFixConfig.cfg"); Application application = new Application(); QuickFix.MessageStoreFactory messageStoreFactory = new QuickFix.FileStoreFactory("QuickFixConfig.cfg"); QuickFix.MessageFactory messageFactory = new QuickFix42.MessageFactory(); QuickFix.SocketInitiator initiator = new QuickFix.SocketInitiator(application, messageStoreFactory, settings, messageFactory); initiator.start(); Application is an implementation of the QuickFix.Application interface. When I try to run the application I get the following exception. An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Additional information: File or assembly name quickfix_net, or one of its dependencies, was not found. Additional information: Unhandled Exception: System.IO.FileNotFoundException: File or assembly name quickfix_net, or one of its dependencies, was not found.File name: "quickfix_net" at QFTest.Class1.Main(String[] args) === Pre-bind state information ===LOG: DisplayName = quickfix_net, Version=1.0.1773.22158, Culture=neutral, PublicKeyToken=null (Fully-specified)LOG: Appbase = C:\Documents and Settings\bfaruki\My Documents\Visual Studio Projects\Development\QFTest\QFTest\bin\Debug\LOG: Initial PrivatePath = NULLCalling assembly : QFTest, Version=1.0.1783.22060, Culture=neutral, PublicKeyToken=null.=== LOG: Found application configuration file (C:\Documents and Settings\bfaruki\MyDocuments\Visual Studio Projects\Development\QFTest\QFTest\bin\Debug\QFTest.exe.config).LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).LOG: Post-policy reference: quickfix_net, Version=1.0.1773.22158, Culture=neutral, PublicKeyToken=nullLOG: Attempting download of new URL file:///C:/Documents and Settings/bfaruki/My Documents/Visual Studio Projects/Development/QFTest/QFTest/bin/Debug/quickfix_net.DLL. TIA, - Bill Next Message by Date: click to view message previewRe: 1.9.3 java runtime errorQuickFIX 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 Yeah, I believe this is related to a patch that was designed to make QuickFIX compatible with the SunPRO compiler. What version of gcc are you running? Is it a 2.x? Try adding -lstdc++ to your LDFLAGS environment variable. Rerun configure and do a clean build. Let me know if that works and we'll need to look at how to detect under which environments we need to do this. --oren On Nov 18, 2004, at 2:23 PM, dwight.j.browne-Uer8Delw6K1Wk0Htik3J/w@xxxxxxxxxxxxxxxx wrote: I'm getting the following when I try to run any of the java examples: run_banzai Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/libquickfix_jni.so.9.0.0: /usr/local/lib/libquickfix.so.5: undefined symbol: _ZTTSt14basic_ifstreamIcSt11char_traitsIcEE at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at Banzai.<clinit>(Unknown Source) I do not have this problem with 1.9.2. Any suggestions? Thanks Dwight Browne This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 Previous Message by Thread: click to view message previewProblem running QuickFix 1.9.3 managed wrapper (System.IO.FileNotFoundException)Hi, As the documentation suggests I added project references to quickfix_net.dll and quickfix_net_messages.dll to a C# project. I added the following code in the Main method QuickFix.SessionSettings settings = new QuickFix.SessionSettings("QuickFixConfig.cfg"); Application application = new Application(); QuickFix.MessageStoreFactory messageStoreFactory = new QuickFix.FileStoreFactory("QuickFixConfig.cfg"); QuickFix.MessageFactory messageFactory = new QuickFix42.MessageFactory(); QuickFix.SocketInitiator initiator = new QuickFix.SocketInitiator(application, messageStoreFactory, settings, messageFactory); initiator.start(); Application is an implementation of the QuickFix.Application interface. When I try to run the application I get the following exception. An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Additional information: File or assembly name quickfix_net, or one of its dependencies, was not found. Additional information: Unhandled Exception: System.IO.FileNotFoundException: File or assembly name quickfix_net, or one of its dependencies, was not found.File name: "quickfix_net" at QFTest.Class1.Main(String[] args) === Pre-bind state information ===LOG: DisplayName = quickfix_net, Version=1.0.1773.22158, Culture=neutral, PublicKeyToken=null (Fully-specified)LOG: Appbase = C:\Documents and Settings\bfaruki\My Documents\Visual Studio Projects\Development\QFTest\QFTest\bin\Debug\LOG: Initial PrivatePath = NULLCalling assembly : QFTest, Version=1.0.1783.22060, Culture=neutral, PublicKeyToken=null.=== LOG: Found application configuration file (C:\Documents and Settings\bfaruki\MyDocuments\Visual Studio Projects\Development\QFTest\QFTest\bin\Debug\QFTest.exe.config).LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).LOG: Post-policy reference: quickfix_net, Version=1.0.1773.22158, Culture=neutral, PublicKeyToken=nullLOG: Attempting download of new URL file:///C:/Documents and Settings/bfaruki/My Documents/Visual Studio Projects/Development/QFTest/QFTest/bin/Debug/quickfix_net.DLL. TIA, - Bill Next Message by Thread: click to view message previewRe: 1.9.3 java runtime errorQuickFIX 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 Yeah, I believe this is related to a patch that was designed to make QuickFIX compatible with the SunPRO compiler. What version of gcc are you running? Is it a 2.x? Try adding -lstdc++ to your LDFLAGS environment variable. Rerun configure and do a clean build. Let me know if that works and we'll need to look at how to detect under which environments we need to do this. --oren On Nov 18, 2004, at 2:23 PM, dwight.j.browne-Uer8Delw6K1Wk0Htik3J/w@xxxxxxxxxxxxxxxx wrote: I'm getting the following when I try to run any of the java examples: run_banzai Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/lib/libquickfix_jni.so.9.0.0: /usr/local/lib/libquickfix.so.5: undefined symbol: _ZTTSt14basic_ifstreamIcSt11char_traitsIcEE at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at Banzai.<clinit>(Unknown Source) I do not have this problem with 1.9.2. Any suggestions? Thanks Dwight Browne This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
Web Hosting Reviews from OSDir.com Sister Site iBizWebHosting.com
|
|