|
From: Oren M. <or...@qu...> - 2006-11-10 16:19:06
|
Alvin, try this instead...
new Group(field, delim, new int[] { delim, 0 })
The 0 is there because the C++ method uses the ... argument which
needs a signal to determine when the last value has been reached. 0
is used for this purpose. We should be able to update the jni
library to make this implicit in the future so you don't need to
specify the 0 itself. The trailing 0 also shouldn't cause problems
in QuickFIX/J, let me know if I'm wrong about that Steve.
--oren
On Nov 10, 2006, at 8:52 AM, Alvin Wang wrote:
> I tried to use "new Group(field, delim, new int[] { delim })" that you
> recommended, in QF's Java wrapper, I got an crash as below:
>
> =================================================================
> An unexpected exception has been detected in native code outside
> the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005)
> occurred at
> PC=0x75BF1DA
> Function=[Unknown.]
> Library=C:\dev\quickfix\lib\quickfix_jni.dll
>
> NOTE: We are unable to locate the function name symbol for the error
> just occurred. Please refer to release documentation for
> possible
> reason and solutions.
>
>
> Current Java thread:
> at quickfix.Group.create(Native Method)
> at quickfix.Group.<init>(Unknown Source)
> ......
>
> Dynamic libraries:
> 0x00400000 - 0x00407000 C:\JBuilderX\jdk1.4\bin\javaw.exe
> 0x7C900000 - 0x7C9B0000 C:\WINDOWS\system32\ntdll.dll
> 0x7C800000 - 0x7C8F4000 C:\WINDOWS\system32\kernel32.dll
> 0x77DD0000 - 0x77E6B000 C:\WINDOWS\system32\ADVAPI32.dll
> 0x77E70000 - 0x77F01000 C:\WINDOWS\system32\RPCRT4.dll
> 0x77D40000 - 0x77DD0000 C:\WINDOWS\system32\USER32.dll
> 0x77F10000 - 0x77F57000 C:\WINDOWS\system32\GDI32.dll
> 0x77C10000 - 0x77C68000 C:\WINDOWS\system32\MSVCRT.dll
> 0x76390000 - 0x763AD000 C:\WINDOWS\system32\IMM32.DLL
> 0x629C0000 - 0x629C9000 C:\WINDOWS\system32\LPK.DLL
> 0x74D90000 - 0x74DFB000 C:\WINDOWS\system32\USP10.dll
> 0x08000000 - 0x08136000 C:\JBuilderX\jdk1.4\jre\bin\client
> \jvm.dll
> 0x76B40000 - 0x76B6D000 C:\WINDOWS\system32\WINMM.dll
> 0x10000000 - 0x10007000 C:\JBuilderX\jdk1.4\jre\bin\hpi.dll
> 0x00940000 - 0x0094E000 C:\JBuilderX\jdk1.4\jre\bin\verify.dll
> 0x00950000 - 0x00968000 C:\JBuilderX\jdk1.4\jre\bin\java.dll
> 0x00970000 - 0x0097D000 C:\JBuilderX\jdk1.4\jre\bin\zip.dll
> 0x02C60000 - 0x02C7C000 C:\JBuilderX\jdk1.4\jre\bin\jdwp.dll
> 0x06C80000 - 0x06C85000 C:\JBuilderX\jdk1.4\jre\bin
> \dt_socket.dll
> 0x71AB0000 - 0x71AC7000 C:\WINDOWS\system32\ws2_32.dll
> 0x71AA0000 - 0x71AA8000 C:\WINDOWS\system32\WS2HELP.dll
> 0x71A50000 - 0x71A8F000 C:\WINDOWS\System32\mswsock.dll
> 0x76F20000 - 0x76F47000 C:\WINDOWS\system32\DNSAPI.dll
> 0x76FB0000 - 0x76FB8000 C:\WINDOWS\System32\winrnr.dll
> 0x76F60000 - 0x76F8C000 C:\WINDOWS\system32\WLDAP32.dll
> 0x76FC0000 - 0x76FC6000 C:\WINDOWS\system32\rasadhlp.dll
> 0x662B0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
> 0x71A90000 - 0x71A98000 C:\WINDOWS\System32\wshtcpip.dll
> 0x07520000 - 0x07664000 C:\dev\quickfix\lib\quickfix_jni.dll
> 0x774E0000 - 0x7761D000 C:\WINDOWS\system32\ole32.dll
> 0x77120000 - 0x771AC000 C:\WINDOWS\system32\OLEAUT32.dll
> 0x76080000 - 0x760E5000 C:\WINDOWS\system32\MSVCP60.dll
> 0x07670000 - 0x07778000 C:\dev\quickfix\lib\LIBMYSQL.dll
> 0x71AD0000 - 0x71AD9000 C:\WINDOWS\system32\WSOCK32.dll
> 0x76FD0000 - 0x7704F000 C:\WINDOWS\system32\CLBCATQ.DLL
> 0x77050000 - 0x77115000 C:\WINDOWS\system32\COMRes.dll
> 0x77C00000 - 0x77C08000 C:\WINDOWS\system32\VERSION.dll
> 0x07AA0000 - 0x07AAF000 C:\JBuilderX\jdk1.4\jre\bin\net.dll
> 0x07AB0000 - 0x07AB8000 C:\JBuilderX\jdk1.4\jre\bin\nio.dll
> 0x07FE0000 - 0x07FE5000 C:\JBuilderX\jdk1.4\jre\bin\rmi.dll
> 0x77B40000 - 0x77B62000 C:\WINDOWS\system32\Apphelp.dll
> 0x76C90000 - 0x76CB8000 C:\WINDOWS\system32\imagehlp.dll
> 0x59A60000 - 0x59B01000 C:\WINDOWS\system32\DBGHELP.dll
> 0x76BF0000 - 0x76BFB000 C:\WINDOWS\system32\PSAPI.DLL
>
> Heap at VM Abort:
> Heap
> def new generation total 576K, used 124K [0x10010000, 0x100b0000,
> 0x104f0000)
> eden space 512K, 22% used [0x10010000, 0x1002cfd0, 0x10090000)
> from space 64K, 12% used [0x100a0000, 0x100a20d0, 0x100b0000)
> to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
> tenured generation total 2028K, used 1350K [0x104f0000, 0x106eb000,
> 0x14010000)
> the space 2028K, 66% used [0x104f0000, 0x10641aa0, 0x10641c00,
> 0x106eb000)
> compacting perm gen total 12288K, used 12134K [0x14010000,
> 0x14c10000,
> 0x18010000)
> the space 12288K, 98% used [0x14010000, 0x14be9aa0, 0x14be9c00,
> 0x14c10000)
>
> Local Time = Fri Nov 10 09:45:37 2006
> Elapsed Time = 571
> #
> # The exception above was detected in native code outside the VM
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)
> #
> # An error report file has been saved as hs_err_pid4488.log.
> # Please refer to the file for further information.
> #
>
>
>
>
>
> "Steve Bate"
> <steve@technoetic
> .com>
> To
> Sent by: <quickfixj-
> us...@li....
> quickfixj-users-b net>
>
> ou...@li... cc
> ceforge.net
>
> Subject
> Re: [Quickfixj-users] repeating
> 11/07/2006 08:28 group problem
> PM
>
>
> Please respond to
> quickfixj-users@l
> ists.sourceforge.
> net
>
>
>
>
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>> The reason I do not want to use NewOrderSingle.NoPartyIDs is that my
> order
>> object can be either a NewOrderSingle or NewOrderMultileg. Not
>> sure if I
>> can add a NewOrderSingle.NoPartyIDs object to a NewOrderMultileg
>> object?
>> Could you clarify? Just wonder why there is not an abstract class
>> sitting
>> on the top like GeneralOrder which can enclose some common fields or
>> classes like NoPartyIDs?
>
> The messages correspond directly to the FIX specification.
>
> You don't necessarily need a new build. Have you tried using the
> Group(int field, int delim, int[] order) constructor in 1.0.4?
> The only change I made was to make Group(field, delim) call
> Group(field, delim, new int[] { delim }). Better yet, you'll
> be safer if you include all the tags in the integer array in
> the correct order. However, like Oren said, many FIX engines
> will not enforce the order of the non-delimeter tags.
>
> Steve
>
>
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
>
>
>
>
> **********************************************************************
> *********
> This e-mail message is intended solely for the use of the addressee.
> The message may contain information that is privileged and
> confidential.
> Disclosure to anyone other than the intended recipient is prohibited.
> If you are not the intended recipient, please do not disseminate,
> distribute or copy this communication, by e-mail or otherwise.
> Instead,
> please notify us immediately by return e-mail(including the original
> message with your reply) and then delete and discard all copies of the
> message. We have taken precautions to minimize the risk of
> transmitting
> software viruses but nevertheless advise you to carry out your own
> virus checks on any attachment to this message. We accept
> no liability for any loss or damage caused by software viruses.
> **********************************************************************
> *********
>
>
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
|