You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(13) |
Jun
(21) |
Jul
(14) |
Aug
(29) |
Sep
(39) |
Oct
(47) |
Nov
(70) |
Dec
(27) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(43) |
Feb
(50) |
Mar
(90) |
Apr
(96) |
May
(84) |
Jun
(40) |
Jul
(58) |
Aug
(55) |
Sep
(55) |
Oct
(52) |
Nov
(38) |
Dec
(75) |
| 2008 |
Jan
(49) |
Feb
(72) |
Mar
(49) |
Apr
(55) |
May
(21) |
Jun
(31) |
Jul
(47) |
Aug
(59) |
Sep
(59) |
Oct
(77) |
Nov
(51) |
Dec
(54) |
| 2009 |
Jan
(52) |
Feb
(57) |
Mar
(17) |
Apr
(27) |
May
(44) |
Jun
(46) |
Jul
(69) |
Aug
(38) |
Sep
(39) |
Oct
(45) |
Nov
(38) |
Dec
(37) |
| 2010 |
Jan
(49) |
Feb
(35) |
Mar
(21) |
Apr
(33) |
May
(52) |
Jun
(28) |
Jul
(39) |
Aug
(34) |
Sep
(21) |
Oct
(82) |
Nov
(36) |
Dec
(20) |
| 2011 |
Jan
(28) |
Feb
(64) |
Mar
(93) |
Apr
(75) |
May
(151) |
Jun
(77) |
Jul
(35) |
Aug
(53) |
Sep
(56) |
Oct
(36) |
Nov
(94) |
Dec
(59) |
| 2012 |
Jan
(105) |
Feb
(43) |
Mar
(68) |
Apr
(91) |
May
(45) |
Jun
(18) |
Jul
(103) |
Aug
(77) |
Sep
(45) |
Oct
(59) |
Nov
(58) |
Dec
(43) |
| 2013 |
Jan
(48) |
Feb
(65) |
Mar
(63) |
Apr
(22) |
May
(41) |
Jun
(60) |
Jul
(43) |
Aug
(17) |
Sep
(20) |
Oct
(20) |
Nov
(42) |
Dec
(43) |
| 2014 |
Jan
(54) |
Feb
(34) |
Mar
(34) |
Apr
(20) |
May
(31) |
Jun
(39) |
Jul
(66) |
Aug
(22) |
Sep
(52) |
Oct
(22) |
Nov
(67) |
Dec
(70) |
| 2015 |
Jan
(18) |
Feb
(5) |
Mar
(40) |
Apr
(32) |
May
(62) |
Jun
(28) |
Jul
(86) |
Aug
(44) |
Sep
(61) |
Oct
(65) |
Nov
(8) |
Dec
(19) |
| 2016 |
Jan
(50) |
Feb
(22) |
Mar
(38) |
Apr
(55) |
May
(30) |
Jun
(42) |
Jul
(11) |
Aug
(9) |
Sep
(4) |
Oct
(51) |
Nov
(38) |
Dec
(31) |
| 2017 |
Jan
(40) |
Feb
(40) |
Mar
(23) |
Apr
(35) |
May
(121) |
Jun
(55) |
Jul
(37) |
Aug
(16) |
Sep
(27) |
Oct
(109) |
Nov
(67) |
Dec
(23) |
| 2018 |
Jan
(52) |
Feb
(6) |
Mar
(23) |
Apr
(28) |
May
(32) |
Jun
(20) |
Jul
(20) |
Aug
(22) |
Sep
(8) |
Oct
(33) |
Nov
(32) |
Dec
(13) |
| 2019 |
Jan
(16) |
Feb
(29) |
Mar
(17) |
Apr
(16) |
May
(1) |
Jun
(2) |
Jul
(25) |
Aug
(50) |
Sep
(17) |
Oct
(29) |
Nov
(16) |
Dec
(7) |
| 2020 |
Jan
|
Feb
|
Mar
(29) |
Apr
(64) |
May
(25) |
Jun
(49) |
Jul
(15) |
Aug
(10) |
Sep
(37) |
Oct
(20) |
Nov
(19) |
Dec
(9) |
| 2021 |
Jan
(33) |
Feb
(10) |
Mar
(67) |
Apr
(40) |
May
(70) |
Jun
(33) |
Jul
(14) |
Aug
(10) |
Sep
|
Oct
(7) |
Nov
(6) |
Dec
(16) |
| 2022 |
Jan
(27) |
Feb
(2) |
Mar
(5) |
Apr
(3) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(6) |
Oct
(2) |
Nov
|
Dec
(10) |
| 2023 |
Jan
(1) |
Feb
(2) |
Mar
(21) |
Apr
(3) |
May
(15) |
Jun
(3) |
Jul
(4) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
(1) |
| 2024 |
Jan
(7) |
Feb
(2) |
Mar
(8) |
Apr
(11) |
May
(6) |
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2025 |
Jan
(10) |
Feb
(4) |
Mar
(9) |
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Grant B. <gbi...@co...> - 2020-04-01 14:32:09
|
Yes, I told you: Go look at my answer to your SO question. On Wed, Apr 1, 2020 at 9:23 AM Fuad Azhar <fua...@gm...> wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: > http://www.quickfixj.org/support/ > > > Yes i create question in here and in stackoverflow...if anyone can help me > how to fix it i very appreciate it... > > Best regards > > Fuad > > On Wed, Apr 1, 2020, 21:19 Grant Birchmeier <gbi...@co... > wrote: > >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >> http://www.quickfixj.org/support/ >> >> >> I just saw your StackOverflow question where you provided more >> information. >> >> https://stackoverflow.com/q/60969300/650475 >> >> FieldNotFound is not your real problem, but a fake problem created by >> your misguided configuration. You cannot configure your way out of having >> a bad data dictionary. Please see my StackOverflow answer to your question. >> >> >> On Wed, Apr 1, 2020 at 8:37 AM Grant Birchmeier < >> gbi...@co...> wrote: >> >>> None of these configs will solve your problem. They might even make >>> your problem harder to find and fix. Delete them. >>> >>> ValidateUserDefinedFields=N >>> ValidateIncomingMessage=N >>> ValidateUnorderedGroupFields=N >>> >>> >>> Your FieldNotFound error has nothing to do with how you are constructing >>> messages. This is an error that occurs when you are *receiving* messages >>> that were sent by your counterparty. >>> >>> FieldNotFound means you are trying to read a field that isn't there (or >>> maybe it's in a group but you are attempting to read it from the top-level >>> body). Did you look at TestMarketdataRequest.java line 38? >>> >>> On Wed, Apr 1, 2020 at 5:47 AM Fuadazhar73 <fua...@gm...> >>> wrote: >>> >>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> >>>> Support: http://www.quickfixj.org/support/ >>>> >>>> >>>> First i have problem with my fix about >>>> >>>> Out of order repeating group members >>>> and for the solution i want to try add in my initiator config >>>> ValidateUserDefinedFields=N >>>> ValidateIncomingMessage=N >>>> ValidateUnorderedGroupFields=N >>>> >>>> but when i want to hit my broker for market data request i got this >>>> error >>>> >>>> quickfix.FieldNotFound: Field was not found in message, field=55 >>>> at quickfix.FieldMap.getField(FieldMap.java:223) >>>> at quickfix.FieldMap.getString(FieldMap.java:237) >>>> at >>>> >>>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.fromApp(TestMarketdataRequest.java:38) >>>> at quickfix.Session.fromCallback(Session.java:1847) >>>> at quickfix.Session.verify(Session.java:1791) >>>> at quickfix.Session.verify(Session.java:1862) >>>> at quickfix.Session.next(Session.java:1047) >>>> at quickfix.Session.next(Session.java:1204) >>>> at >>>> >>>> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:163) >>>> at >>>> >>>> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:113) >>>> at >>>> >>>> quickfix.mina.SingleThreadedEventHandlingStrategy.lambda$blockInThread$1(SingleThreadedEventHandlingStrategy.java:145) >>>> at >>>> >>>> quickfix.mina.SingleThreadedEventHandlingStrategy$ThreadAdapter$RunnableWrapper.run(SingleThreadedEventHandlingStrategy.java:267) >>>> at java.lang.Thread.run(Thread.java:748) >>>> >>>> i use this code for make marketdatarequest >>>> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new >>>> quickfix.fix42.MarketDataRequest.NoRelatedSym(); >>>> group1.set(new Symbol("ALL")); >>>> marketDataRequest.addGroup(group1); >>>> Session.sendToTarget(marketDataRequest, sessionID); >>>> >>>> so how to fix my problem ? and the next question is how to get value >>>> from >>>> field like symbol, avgprice,etc >>>> i have code like this >>>> >>>> MDReqID mdreqid = new MDReqID(); >>>> SendingTime sendingtime = new SendingTime(); >>>> NoMDEntries nomdentries = new NoMDEntries(); >>>> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries >>>> group >>>> = new >>>> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries(); >>>> MDUpdateAction mdupdateaction = new MDUpdateAction(); >>>> DeleteReason deletereason = new DeleteReason(); >>>> MDEntryType mdentrytype = new MDEntryType(); >>>> MDEntryID mdentryid = new MDEntryID(); >>>> Symbol symbol = new Symbol(); >>>> MDEntryOriginator mdentryoriginator = new >>>> MDEntryOriginator(); >>>> MDEntryPx mdentrypx = new MDEntryPx(); >>>> Currency currency = new Currency(); >>>> MDEntrySize mdentrysize = new MDEntrySize(); >>>> ExpireDate expiredate = new ExpireDate(); >>>> ExpireTime expiretime = new ExpireTime(); >>>> NumberOfOrders numberoforders = new NumberOfOrders(); >>>> MDEntryPositionNo mdentrypositionno = new >>>> MDEntryPositionNo(); >>>> >>>> message.getField(nomdentries); >>>> message.getField(sendingtime); >>>> >>>> message.getGroup(1, group); >>>> >>>> int list = nomdentries.getValue(); >>>> for (int i = 0; i < list; i++) >>>> { >>>> message.getGroup(i + 1, group); >>>> group.get(mdupdateaction); >>>> if (mdupdateaction.getValue() == '2') >>>> System.out.println("Enter"); >>>> group.get(deletereason); >>>> group.get(mdentrytype); >>>> group.get(mdentryid); >>>> group.get(symbol); >>>> group.get(mdentryoriginator); >>>> if (mdupdateaction.getValue() == '0') >>>> group.get(mdentrypx); >>>> group.get(currency); >>>> if (mdupdateaction.getValue() == '0') >>>> group.get(mdentrysize); >>>> } >>>> >>>> System.out.printf("Got Symbol {0} Price {1}", >>>> symbol.getValue(), mdentrypx.getValue()); >>>> >>>> >>>> best regards, >>>> >>>> Fuad >>>> >>>> >>>> >>>> >>>> -- >>>> Sent from: http://quickfix-j.364392.n2.nabble.com/ >>>> >>>> >>>> _______________________________________________ >>>> Quickfixj-users mailing list >>>> Qui...@li... >>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>> >>> >>> >>> -- >>> Grant Birchmeier >>> *Connamara Systems, LLC* >>> *Made-To-Measure Trading Solutions.* >>> Exactly what you need. No more. No less. >>> http://connamara.com >>> >> >> >> -- >> Grant Birchmeier >> *Connamara Systems, LLC* >> *Made-To-Measure Trading Solutions.* >> Exactly what you need. No more. No less. >> http://connamara.com >> >> This email, along with any attachments, is confidential. If you believe >> you received this message in error, please contact the sender immediately >> and delete all copies of the message. Thank you from Connamara Systems, LLC. >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >> > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > -- Grant Birchmeier *Connamara Systems, LLC* *Made-To-Measure Trading Solutions.* Exactly what you need. No more. No less. http://connamara.com -- This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC. |
|
From: Fuad A. <fua...@gm...> - 2020-04-01 14:23:23
|
Yes i create question in here and in stackoverflow...if anyone can help me how to fix it i very appreciate it... Best regards Fuad On Wed, Apr 1, 2020, 21:19 Grant Birchmeier <gbi...@co... wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: > http://www.quickfixj.org/support/ > > > I just saw your StackOverflow question where you provided more information. > > https://stackoverflow.com/q/60969300/650475 > > FieldNotFound is not your real problem, but a fake problem created by your > misguided configuration. You cannot configure your way out of having a bad > data dictionary. Please see my StackOverflow answer to your question. > > > On Wed, Apr 1, 2020 at 8:37 AM Grant Birchmeier <gbi...@co...> > wrote: > >> None of these configs will solve your problem. They might even make your >> problem harder to find and fix. Delete them. >> >> ValidateUserDefinedFields=N >> ValidateIncomingMessage=N >> ValidateUnorderedGroupFields=N >> >> >> Your FieldNotFound error has nothing to do with how you are constructing >> messages. This is an error that occurs when you are *receiving* messages >> that were sent by your counterparty. >> >> FieldNotFound means you are trying to read a field that isn't there (or >> maybe it's in a group but you are attempting to read it from the top-level >> body). Did you look at TestMarketdataRequest.java line 38? >> >> On Wed, Apr 1, 2020 at 5:47 AM Fuadazhar73 <fua...@gm...> wrote: >> >>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >>> http://www.quickfixj.org/support/ >>> >>> >>> First i have problem with my fix about >>> >>> Out of order repeating group members >>> and for the solution i want to try add in my initiator config >>> ValidateUserDefinedFields=N >>> ValidateIncomingMessage=N >>> ValidateUnorderedGroupFields=N >>> >>> but when i want to hit my broker for market data request i got this error >>> >>> quickfix.FieldNotFound: Field was not found in message, field=55 >>> at quickfix.FieldMap.getField(FieldMap.java:223) >>> at quickfix.FieldMap.getString(FieldMap.java:237) >>> at >>> >>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.fromApp(TestMarketdataRequest.java:38) >>> at quickfix.Session.fromCallback(Session.java:1847) >>> at quickfix.Session.verify(Session.java:1791) >>> at quickfix.Session.verify(Session.java:1862) >>> at quickfix.Session.next(Session.java:1047) >>> at quickfix.Session.next(Session.java:1204) >>> at >>> >>> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:163) >>> at >>> >>> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:113) >>> at >>> >>> quickfix.mina.SingleThreadedEventHandlingStrategy.lambda$blockInThread$1(SingleThreadedEventHandlingStrategy.java:145) >>> at >>> >>> quickfix.mina.SingleThreadedEventHandlingStrategy$ThreadAdapter$RunnableWrapper.run(SingleThreadedEventHandlingStrategy.java:267) >>> at java.lang.Thread.run(Thread.java:748) >>> >>> i use this code for make marketdatarequest >>> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new >>> quickfix.fix42.MarketDataRequest.NoRelatedSym(); >>> group1.set(new Symbol("ALL")); >>> marketDataRequest.addGroup(group1); >>> Session.sendToTarget(marketDataRequest, sessionID); >>> >>> so how to fix my problem ? and the next question is how to get value from >>> field like symbol, avgprice,etc >>> i have code like this >>> >>> MDReqID mdreqid = new MDReqID(); >>> SendingTime sendingtime = new SendingTime(); >>> NoMDEntries nomdentries = new NoMDEntries(); >>> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries >>> group >>> = new >>> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries(); >>> MDUpdateAction mdupdateaction = new MDUpdateAction(); >>> DeleteReason deletereason = new DeleteReason(); >>> MDEntryType mdentrytype = new MDEntryType(); >>> MDEntryID mdentryid = new MDEntryID(); >>> Symbol symbol = new Symbol(); >>> MDEntryOriginator mdentryoriginator = new >>> MDEntryOriginator(); >>> MDEntryPx mdentrypx = new MDEntryPx(); >>> Currency currency = new Currency(); >>> MDEntrySize mdentrysize = new MDEntrySize(); >>> ExpireDate expiredate = new ExpireDate(); >>> ExpireTime expiretime = new ExpireTime(); >>> NumberOfOrders numberoforders = new NumberOfOrders(); >>> MDEntryPositionNo mdentrypositionno = new >>> MDEntryPositionNo(); >>> >>> message.getField(nomdentries); >>> message.getField(sendingtime); >>> >>> message.getGroup(1, group); >>> >>> int list = nomdentries.getValue(); >>> for (int i = 0; i < list; i++) >>> { >>> message.getGroup(i + 1, group); >>> group.get(mdupdateaction); >>> if (mdupdateaction.getValue() == '2') >>> System.out.println("Enter"); >>> group.get(deletereason); >>> group.get(mdentrytype); >>> group.get(mdentryid); >>> group.get(symbol); >>> group.get(mdentryoriginator); >>> if (mdupdateaction.getValue() == '0') >>> group.get(mdentrypx); >>> group.get(currency); >>> if (mdupdateaction.getValue() == '0') >>> group.get(mdentrysize); >>> } >>> >>> System.out.printf("Got Symbol {0} Price {1}", >>> symbol.getValue(), mdentrypx.getValue()); >>> >>> >>> best regards, >>> >>> Fuad >>> >>> >>> >>> >>> -- >>> Sent from: http://quickfix-j.364392.n2.nabble.com/ >>> >>> >>> _______________________________________________ >>> Quickfixj-users mailing list >>> Qui...@li... >>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>> >> >> >> -- >> Grant Birchmeier >> *Connamara Systems, LLC* >> *Made-To-Measure Trading Solutions.* >> Exactly what you need. No more. No less. >> http://connamara.com >> > > > -- > Grant Birchmeier > *Connamara Systems, LLC* > *Made-To-Measure Trading Solutions.* > Exactly what you need. No more. No less. > http://connamara.com > > This email, along with any attachments, is confidential. If you believe > you received this message in error, please contact the sender immediately > and delete all copies of the message. Thank you from Connamara Systems, LLC. > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |
|
From: Grant B. <gbi...@co...> - 2020-04-01 14:17:33
|
I just saw your StackOverflow question where you provided more information. https://stackoverflow.com/q/60969300/650475 FieldNotFound is not your real problem, but a fake problem created by your misguided configuration. You cannot configure your way out of having a bad data dictionary. Please see my StackOverflow answer to your question. On Wed, Apr 1, 2020 at 8:37 AM Grant Birchmeier <gbi...@co...> wrote: > None of these configs will solve your problem. They might even make your > problem harder to find and fix. Delete them. > > ValidateUserDefinedFields=N > ValidateIncomingMessage=N > ValidateUnorderedGroupFields=N > > > Your FieldNotFound error has nothing to do with how you are constructing > messages. This is an error that occurs when you are *receiving* messages > that were sent by your counterparty. > > FieldNotFound means you are trying to read a field that isn't there (or > maybe it's in a group but you are attempting to read it from the top-level > body). Did you look at TestMarketdataRequest.java line 38? > > On Wed, Apr 1, 2020 at 5:47 AM Fuadazhar73 <fua...@gm...> wrote: > >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >> http://www.quickfixj.org/support/ >> >> >> First i have problem with my fix about >> >> Out of order repeating group members >> and for the solution i want to try add in my initiator config >> ValidateUserDefinedFields=N >> ValidateIncomingMessage=N >> ValidateUnorderedGroupFields=N >> >> but when i want to hit my broker for market data request i got this error >> >> quickfix.FieldNotFound: Field was not found in message, field=55 >> at quickfix.FieldMap.getField(FieldMap.java:223) >> at quickfix.FieldMap.getString(FieldMap.java:237) >> at >> >> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.fromApp(TestMarketdataRequest.java:38) >> at quickfix.Session.fromCallback(Session.java:1847) >> at quickfix.Session.verify(Session.java:1791) >> at quickfix.Session.verify(Session.java:1862) >> at quickfix.Session.next(Session.java:1047) >> at quickfix.Session.next(Session.java:1204) >> at >> >> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:163) >> at >> >> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:113) >> at >> >> quickfix.mina.SingleThreadedEventHandlingStrategy.lambda$blockInThread$1(SingleThreadedEventHandlingStrategy.java:145) >> at >> >> quickfix.mina.SingleThreadedEventHandlingStrategy$ThreadAdapter$RunnableWrapper.run(SingleThreadedEventHandlingStrategy.java:267) >> at java.lang.Thread.run(Thread.java:748) >> >> i use this code for make marketdatarequest >> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new >> quickfix.fix42.MarketDataRequest.NoRelatedSym(); >> group1.set(new Symbol("ALL")); >> marketDataRequest.addGroup(group1); >> Session.sendToTarget(marketDataRequest, sessionID); >> >> so how to fix my problem ? and the next question is how to get value from >> field like symbol, avgprice,etc >> i have code like this >> >> MDReqID mdreqid = new MDReqID(); >> SendingTime sendingtime = new SendingTime(); >> NoMDEntries nomdentries = new NoMDEntries(); >> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries >> group >> = new >> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries(); >> MDUpdateAction mdupdateaction = new MDUpdateAction(); >> DeleteReason deletereason = new DeleteReason(); >> MDEntryType mdentrytype = new MDEntryType(); >> MDEntryID mdentryid = new MDEntryID(); >> Symbol symbol = new Symbol(); >> MDEntryOriginator mdentryoriginator = new >> MDEntryOriginator(); >> MDEntryPx mdentrypx = new MDEntryPx(); >> Currency currency = new Currency(); >> MDEntrySize mdentrysize = new MDEntrySize(); >> ExpireDate expiredate = new ExpireDate(); >> ExpireTime expiretime = new ExpireTime(); >> NumberOfOrders numberoforders = new NumberOfOrders(); >> MDEntryPositionNo mdentrypositionno = new >> MDEntryPositionNo(); >> >> message.getField(nomdentries); >> message.getField(sendingtime); >> >> message.getGroup(1, group); >> >> int list = nomdentries.getValue(); >> for (int i = 0; i < list; i++) >> { >> message.getGroup(i + 1, group); >> group.get(mdupdateaction); >> if (mdupdateaction.getValue() == '2') >> System.out.println("Enter"); >> group.get(deletereason); >> group.get(mdentrytype); >> group.get(mdentryid); >> group.get(symbol); >> group.get(mdentryoriginator); >> if (mdupdateaction.getValue() == '0') >> group.get(mdentrypx); >> group.get(currency); >> if (mdupdateaction.getValue() == '0') >> group.get(mdentrysize); >> } >> >> System.out.printf("Got Symbol {0} Price {1}", >> symbol.getValue(), mdentrypx.getValue()); >> >> >> best regards, >> >> Fuad >> >> >> >> >> -- >> Sent from: http://quickfix-j.364392.n2.nabble.com/ >> >> >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >> > > > -- > Grant Birchmeier > *Connamara Systems, LLC* > *Made-To-Measure Trading Solutions.* > Exactly what you need. No more. No less. > http://connamara.com > -- Grant Birchmeier *Connamara Systems, LLC* *Made-To-Measure Trading Solutions.* Exactly what you need. No more. No less. http://connamara.com -- This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC. |
|
From: Grant B. <gbi...@co...> - 2020-04-01 13:37:50
|
None of these configs will solve your problem. They might even make your problem harder to find and fix. Delete them. ValidateUserDefinedFields=N ValidateIncomingMessage=N ValidateUnorderedGroupFields=N Your FieldNotFound error has nothing to do with how you are constructing messages. This is an error that occurs when you are *receiving* messages that were sent by your counterparty. FieldNotFound means you are trying to read a field that isn't there (or maybe it's in a group but you are attempting to read it from the top-level body). Did you look at TestMarketdataRequest.java line 38? On Wed, Apr 1, 2020 at 5:47 AM Fuadazhar73 <fua...@gm...> wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: > http://www.quickfixj.org/support/ > > > First i have problem with my fix about > > Out of order repeating group members > and for the solution i want to try add in my initiator config > ValidateUserDefinedFields=N > ValidateIncomingMessage=N > ValidateUnorderedGroupFields=N > > but when i want to hit my broker for market data request i got this error > > quickfix.FieldNotFound: Field was not found in message, field=55 > at quickfix.FieldMap.getField(FieldMap.java:223) > at quickfix.FieldMap.getString(FieldMap.java:237) > at > > com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.fromApp(TestMarketdataRequest.java:38) > at quickfix.Session.fromCallback(Session.java:1847) > at quickfix.Session.verify(Session.java:1791) > at quickfix.Session.verify(Session.java:1862) > at quickfix.Session.next(Session.java:1047) > at quickfix.Session.next(Session.java:1204) > at > > quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:163) > at > > quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:113) > at > > quickfix.mina.SingleThreadedEventHandlingStrategy.lambda$blockInThread$1(SingleThreadedEventHandlingStrategy.java:145) > at > > quickfix.mina.SingleThreadedEventHandlingStrategy$ThreadAdapter$RunnableWrapper.run(SingleThreadedEventHandlingStrategy.java:267) > at java.lang.Thread.run(Thread.java:748) > > i use this code for make marketdatarequest > quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new > quickfix.fix42.MarketDataRequest.NoRelatedSym(); > group1.set(new Symbol("ALL")); > marketDataRequest.addGroup(group1); > Session.sendToTarget(marketDataRequest, sessionID); > > so how to fix my problem ? and the next question is how to get value from > field like symbol, avgprice,etc > i have code like this > > MDReqID mdreqid = new MDReqID(); > SendingTime sendingtime = new SendingTime(); > NoMDEntries nomdentries = new NoMDEntries(); > quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries > group > = new > quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries(); > MDUpdateAction mdupdateaction = new MDUpdateAction(); > DeleteReason deletereason = new DeleteReason(); > MDEntryType mdentrytype = new MDEntryType(); > MDEntryID mdentryid = new MDEntryID(); > Symbol symbol = new Symbol(); > MDEntryOriginator mdentryoriginator = new > MDEntryOriginator(); > MDEntryPx mdentrypx = new MDEntryPx(); > Currency currency = new Currency(); > MDEntrySize mdentrysize = new MDEntrySize(); > ExpireDate expiredate = new ExpireDate(); > ExpireTime expiretime = new ExpireTime(); > NumberOfOrders numberoforders = new NumberOfOrders(); > MDEntryPositionNo mdentrypositionno = new > MDEntryPositionNo(); > > message.getField(nomdentries); > message.getField(sendingtime); > > message.getGroup(1, group); > > int list = nomdentries.getValue(); > for (int i = 0; i < list; i++) > { > message.getGroup(i + 1, group); > group.get(mdupdateaction); > if (mdupdateaction.getValue() == '2') > System.out.println("Enter"); > group.get(deletereason); > group.get(mdentrytype); > group.get(mdentryid); > group.get(symbol); > group.get(mdentryoriginator); > if (mdupdateaction.getValue() == '0') > group.get(mdentrypx); > group.get(currency); > if (mdupdateaction.getValue() == '0') > group.get(mdentrysize); > } > > System.out.printf("Got Symbol {0} Price {1}", > symbol.getValue(), mdentrypx.getValue()); > > > best regards, > > Fuad > > > > > -- > Sent from: http://quickfix-j.364392.n2.nabble.com/ > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > -- Grant Birchmeier *Connamara Systems, LLC* *Made-To-Measure Trading Solutions.* Exactly what you need. No more. No less. http://connamara.com -- This email, along with any attachments, is confidential. If you believe you received this message in error, please contact the sender immediately and delete all copies of the message. Thank you from Connamara Systems, LLC. |
|
From: Fuad A. <fua...@gm...> - 2020-04-01 12:30:12
|
and i also have to try using this code
String symbol = message.getString(Symbol.FIELD);
System.out.println(" FromApp " + message);
String sendingtime = message.getString(SendingTime.FIELD);
// String seqNo = message.getString(MsgSeqNum.FIELD);
double bid = message.getDouble(MDEntryPx.FIELD);
double ask = message.getDouble(MDEntryPx.FIELD);
System.out.println(" Symbol " + symbol + " sendingtime "
+sendingtime);
Pada tanggal Rab, 1 Apr 2020 pukul 17.49 Fuadazhar73 <fua...@gm...>
menulis:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support:
> http://www.quickfixj.org/support/
>
>
> First i have problem with my fix about
>
> Out of order repeating group members
> and for the solution i want to try add in my initiator config
> ValidateUserDefinedFields=N
> ValidateIncomingMessage=N
> ValidateUnorderedGroupFields=N
>
> but when i want to hit my broker for market data request i got this error
>
> quickfix.FieldNotFound: Field was not found in message, field=55
> at quickfix.FieldMap.getField(FieldMap.java:223)
> at quickfix.FieldMap.getString(FieldMap.java:237)
> at
>
> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.fromApp(TestMarketdataRequest.java:38)
> at quickfix.Session.fromCallback(Session.java:1847)
> at quickfix.Session.verify(Session.java:1791)
> at quickfix.Session.verify(Session.java:1862)
> at quickfix.Session.next(Session.java:1047)
> at quickfix.Session.next(Session.java:1204)
> at
>
> quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:163)
> at
>
> quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:113)
> at
>
> quickfix.mina.SingleThreadedEventHandlingStrategy.lambda$blockInThread$1(SingleThreadedEventHandlingStrategy.java:145)
> at
>
> quickfix.mina.SingleThreadedEventHandlingStrategy$ThreadAdapter$RunnableWrapper.run(SingleThreadedEventHandlingStrategy.java:267)
> at java.lang.Thread.run(Thread.java:748)
>
> i use this code for make marketdatarequest
> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new
> quickfix.fix42.MarketDataRequest.NoRelatedSym();
> group1.set(new Symbol("ALL"));
> marketDataRequest.addGroup(group1);
> Session.sendToTarget(marketDataRequest, sessionID);
>
> so how to fix my problem ? and the next question is how to get value from
> field like symbol, avgprice,etc
> i have code like this
>
> MDReqID mdreqid = new MDReqID();
> SendingTime sendingtime = new SendingTime();
> NoMDEntries nomdentries = new NoMDEntries();
> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries
> group
> = new
> quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries();
> MDUpdateAction mdupdateaction = new MDUpdateAction();
> DeleteReason deletereason = new DeleteReason();
> MDEntryType mdentrytype = new MDEntryType();
> MDEntryID mdentryid = new MDEntryID();
> Symbol symbol = new Symbol();
> MDEntryOriginator mdentryoriginator = new
> MDEntryOriginator();
> MDEntryPx mdentrypx = new MDEntryPx();
> Currency currency = new Currency();
> MDEntrySize mdentrysize = new MDEntrySize();
> ExpireDate expiredate = new ExpireDate();
> ExpireTime expiretime = new ExpireTime();
> NumberOfOrders numberoforders = new NumberOfOrders();
> MDEntryPositionNo mdentrypositionno = new
> MDEntryPositionNo();
>
> message.getField(nomdentries);
> message.getField(sendingtime);
>
> message.getGroup(1, group);
>
> int list = nomdentries.getValue();
> for (int i = 0; i < list; i++)
> {
> message.getGroup(i + 1, group);
> group.get(mdupdateaction);
> if (mdupdateaction.getValue() == '2')
> System.out.println("Enter");
> group.get(deletereason);
> group.get(mdentrytype);
> group.get(mdentryid);
> group.get(symbol);
> group.get(mdentryoriginator);
> if (mdupdateaction.getValue() == '0')
> group.get(mdentrypx);
> group.get(currency);
> if (mdupdateaction.getValue() == '0')
> group.get(mdentrysize);
> }
>
> System.out.printf("Got Symbol {0} Price {1}",
> symbol.getValue(), mdentrypx.getValue());
>
>
> best regards,
>
> Fuad
>
>
>
>
> --
> Sent from: http://quickfix-j.364392.n2.nabble.com/
>
>
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
|
|
From: Fuadazhar73 <fua...@gm...> - 2020-04-01 10:47:06
|
First i have problem with my fix about
Out of order repeating group members
and for the solution i want to try add in my initiator config
ValidateUserDefinedFields=N
ValidateIncomingMessage=N
ValidateUnorderedGroupFields=N
but when i want to hit my broker for market data request i got this error
quickfix.FieldNotFound: Field was not found in message, field=55
at quickfix.FieldMap.getField(FieldMap.java:223)
at quickfix.FieldMap.getString(FieldMap.java:237)
at
com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.fromApp(TestMarketdataRequest.java:38)
at quickfix.Session.fromCallback(Session.java:1847)
at quickfix.Session.verify(Session.java:1791)
at quickfix.Session.verify(Session.java:1862)
at quickfix.Session.next(Session.java:1047)
at quickfix.Session.next(Session.java:1204)
at
quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:163)
at
quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:113)
at
quickfix.mina.SingleThreadedEventHandlingStrategy.lambda$blockInThread$1(SingleThreadedEventHandlingStrategy.java:145)
at
quickfix.mina.SingleThreadedEventHandlingStrategy$ThreadAdapter$RunnableWrapper.run(SingleThreadedEventHandlingStrategy.java:267)
at java.lang.Thread.run(Thread.java:748)
i use this code for make marketdatarequest
quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new
quickfix.fix42.MarketDataRequest.NoRelatedSym();
group1.set(new Symbol("ALL"));
marketDataRequest.addGroup(group1);
Session.sendToTarget(marketDataRequest, sessionID);
so how to fix my problem ? and the next question is how to get value from
field like symbol, avgprice,etc
i have code like this
MDReqID mdreqid = new MDReqID();
SendingTime sendingtime = new SendingTime();
NoMDEntries nomdentries = new NoMDEntries();
quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries group
= new
quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries();
MDUpdateAction mdupdateaction = new MDUpdateAction();
DeleteReason deletereason = new DeleteReason();
MDEntryType mdentrytype = new MDEntryType();
MDEntryID mdentryid = new MDEntryID();
Symbol symbol = new Symbol();
MDEntryOriginator mdentryoriginator = new
MDEntryOriginator();
MDEntryPx mdentrypx = new MDEntryPx();
Currency currency = new Currency();
MDEntrySize mdentrysize = new MDEntrySize();
ExpireDate expiredate = new ExpireDate();
ExpireTime expiretime = new ExpireTime();
NumberOfOrders numberoforders = new NumberOfOrders();
MDEntryPositionNo mdentrypositionno = new
MDEntryPositionNo();
message.getField(nomdentries);
message.getField(sendingtime);
message.getGroup(1, group);
int list = nomdentries.getValue();
for (int i = 0; i < list; i++)
{
message.getGroup(i + 1, group);
group.get(mdupdateaction);
if (mdupdateaction.getValue() == '2')
System.out.println("Enter");
group.get(deletereason);
group.get(mdentrytype);
group.get(mdentryid);
group.get(symbol);
group.get(mdentryoriginator);
if (mdupdateaction.getValue() == '0')
group.get(mdentrypx);
group.get(currency);
if (mdupdateaction.getValue() == '0')
group.get(mdentrysize);
}
System.out.printf("Got Symbol {0} Price {1}",
symbol.getValue(), mdentrypx.getValue());
best regards,
Fuad
--
Sent from: http://quickfix-j.364392.n2.nabble.com/
|
|
From: Fuad A. <fua...@gm...> - 2020-04-01 07:18:22
|
hi christoph i have problem when i can hit my broker and subscribe for the
price.
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at
org.apache.mina.transport.socket.nio.NioProcessor.write(NioProcessor.java:384)
at
org.apache.mina.transport.socket.nio.NioProcessor.write(NioProcessor.java:47)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.writeBuffer(AbstractPollingIoProcessor.java:1107)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.flushNow(AbstractPollingIoProcessor.java:994)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.flush(AbstractPollingIoProcessor.java:921)
at
org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:688)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
i want to now why my quickfixj cannot write message log again after i
request the price.and the second is why when i want subcribe for the price
i got message like
8=FIX.4.2^A9=142^A35=3^A34=46^A49=MDValueTrade2UAT1^A52=20200401-07:09:49.726^A56=Fastmatch1^A45=57^A58=Out
of order repeating group members,field=269^A371=269^A372=X^A10=017^A and my
broker not send the price again to me.
best regards
Fuad
Pada tanggal Sel, 31 Mar 2020 pukul 20.01 Christoph John <
chr...@ma...> menulis:
> No problem, just make sure that you go through the documentation before
> asking any questions. Then ask questions based on that. :)
>
> Cheers,
> Chris.
>
>
> On 31.03.20 14:42, Fuad Azhar wrote:
>
> Oh I see I will try using new methods for hit our broker... Many thanks
> for your advice Christoph.. I am so sorry if my question very basic using
> quickfixj .
>
> Best regards
>
> Fuad
>
> On Tue, Mar 31, 2020, 19:38 Christoph John <chr...@ma... wrote:
>
>> Did you go through this?
>> https://github.com/quickfix-j/quickfixj#sending-messages
>>
>> I would not advise to send messages out of the onLogon() callback.
>>
>> Chris.
>>
>> On 31.03.20 14:29, Fuad Azhar wrote:
>>
>> wait this is about quickfixj...
>>
>> Successfully called onCreate for sessionId :
>> FIX.4.2:MDValueTrade2UAT1->Fastmatch1
>> Data Server IP 169.33.100.15
>> Data Server Port 17543
>> Login MDValueTrade2UAT1 Fastmatch1
>> Logon
>> 8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146
>> errorquickfix.SessionNotFound: missing sender or target company ID
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111
>>
>> i can logon to mybroker now. but when i want hit my broker for market
>> data request i got error like this errorquickfix.SessionNotFound: missing
>> sender or target company ID
>>
>> when i logon i want to hit my broker using this code.
>>
>> public void onLogon(SessionID sessionID) {
>> // TODO Auto-generated method stub
>> TestMarketdataRequest.sessionID = sessionID;
>> Session s = Session.lookupSession(sessionID);
>> UUID uuid = UUID.randomUUID();
>> String randomUUIDString = uuid.toString();
>> Message message = new Message();
>> quickfix.fix42.MarketDataRequest.NoMDEntryTypes group =
>> new quickfix.fix42.MarketDataRequest.NoMDEntryTypes();
>> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 =
>> new quickfix.fix42.MarketDataRequest.NoRelatedSym();
>> MarketDataRequest marketdatarequest = new MarketDataRequest();
>> Header header = marketdatarequest.getHeader();
>> header.setField(new BeginString("FIX.4.2"));
>> header.setField(new SenderCompID("MDValueTrade2UAT1"));
>> header.setField(new TargetCompID("Fastmatch1"));
>> header.setField(new MsgType("V"));
>> message.setField(new MDReqID(randomUUIDString));
>> message.setField(new SubscriptionRequestType((char) 1));
>> message.setField(new MarketDepth(1));
>> message.setField(new NoMDEntryTypes(1));
>> group.setField(new MDEntryType((char) 1));
>> message.addGroup(group);
>> group1.setField(new Symbol("ALL"));
>> message.addGroup(group1);
>> try
>> {
>> Session.sendToTarget(message);
>> System.out.println("message" + message);
>> }catch (Exception ex)
>> {
>> System.out.println("error" + ex);
>> }
>> }
>>
>> so what wrong with my code for market data request format ?
>>
>> Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John <
>> chr...@ma...> menulis:
>>
>>> I still see no QFJ related classes in the stack trace so why do you
>>> think it is a QFJ problem? Is it a Java problem when you try to cast
>>> something to String which cannot be cast to String? ;)
>>>
>>> Please make sure you read the documentation on how to create a QFJ
>>> application: https://github.com/quickfix-j/quickfixj#basics
>>>
>>> Chris.
>>>
>>> On 31.03.20 14:08, Fuad Azhar wrote:
>>>
>>> sorry christoph now the problem is about quickfixj application
>>>
>>> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar
>>> initiator.config
>>> Application: TestMarketdataRequest
>>> Config File initiator.config
>>> FIX Port xxxxx
>>> FIX IP xxx.xxx.xxx.xxx
>>> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1
>>> java.lang.ClassCastException:
>>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be
>>> cast to quickfix.Application
>>> at
>>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141)
>>> at
>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>>> at
>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>>
>>> why to this error for initiator start ?
>>>
>>> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <
>>> fua...@gm...> menulis:
>>>
>>>> ok sorry for that... but i have try out the banzai example for read
>>>> file for input stream initiator config. but the code cannot read my file
>>>> config. how to set proper config file for initiator.config for make session
>>>> from quickfixj
>>>>
>>>>
>>>> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <
>>>> chr...@ma...> menulis:
>>>>
>>>>> Don't get me wrong but I don't have time to debug your code. ;)
>>>>> I am pretty sure that this Exception is not thrown out of QFJ code.
>>>>>
>>>>> Cheers,
>>>>> Chris.
>>>>>
>>>>>
>>>>> On 31.03.20 08:06, Fuad Azhar wrote:
>>>>>
>>>>> your solution run well but i have another error. for read config file.
>>>>> my error is
>>>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
>>>>> at
>>>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>>>>> at
>>>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>>>>
>>>>> and my config file code is here
>>>>>
>>>>> public TestMarketdataRequest(String configFile) {
>>>>> try {
>>>>> System.out.println(" Config File " + configFile);
>>>>> Properties props = new Properties();
>>>>> try {
>>>>> props.load(new FileInputStream(configFile));
>>>>> } catch (IOException e) {
>>>>> e.printStackTrace();
>>>>> }
>>>>> SenderCompID = props.getProperty("SenderCompID");
>>>>> TargetCompID = props.getProperty("TargetCompID");
>>>>> symbols = props.getProperty("Symbols");
>>>>> System.out.println(" FIX Port " +
>>>>> props.getProperty("SocketConnectPort"));
>>>>> System.out.println(" FIX IP " +
>>>>> props.getProperty("SocketConnectHost"));
>>>>> System.out.println(" SenderCompID " + SenderCompID + "
>>>>> TargetCompID " + TargetCompID);
>>>>> SessionSettings settings = new SessionSettings(configFile);
>>>>> MessageStoreFactory messageStoreFactory = new
>>>>> FileStoreFactory(settings);
>>>>> LogFactory logFactory = new FileLogFactory(settings);
>>>>> MessageFactory messageFactory = new
>>>>> DefaultMessageFactory();
>>>>> Initiator initiator = new SocketInitiator((Application)
>>>>> this, messageStoreFactory, settings, logFactory, messageFactory);
>>>>> initiator.start();
>>>>>
>>>>> and this is the args[0]
>>>>> public static void main(String[] args){
>>>>> String configFile = args[0];
>>>>> new TestMarketdataRequest(configFile);
>>>>> }
>>>>> and my error is in this code
>>>>>
>>>>> public class FastmatchMDRequest {
>>>>>
>>>>>
>>>>>
>>>>> public FastmatchMDRequest(String args[]){
>>>>> System.out.println("Application: TestMarketdataRequest ");
>>>>> new TestMarketdataRequest(args[0]);
>>>>> }
>>>>>
>>>>>
>>>>> public static void main(String args[]){
>>>>> new FastmatchMDRequest(args);
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> }
>>>>> }
>>>>> what is the problem from this ? i have add my config file as my
>>>>> resources and build it in one jar.
>>>>>
>>>>> best regards,
>>>>>
>>>>> Fuad
>>>>>
>>>>>
>>>>>
>>> --
>>> Christoph John
>>> Software Engineering
>>> T +49 241 557...@ma...
>>>
>>> MACD GmbH
>>> Oppenhoffallee 103
>>> 52066 Aachen, Germanywww.macd.com
>>>
>>> Amtsgericht Aachen: HRB 8151
>>> Ust.-Id: DE 813021663
>>> Geschäftsführer: George Macdonald
>>>
>>>
>> --
>> Christoph John
>> Software Engineering
>> T +49 241 557...@ma...
>>
>> MACD GmbH
>> Oppenhoffallee 103
>> 52066 Aachen, Germanywww.macd.com
>>
>> Amtsgericht Aachen: HRB 8151
>> Ust.-Id: DE 813021663
>> Geschäftsführer: George Macdonald
>>
>>
> --
> Christoph John
> Software Engineering
> T +49 241 557...@ma...
>
> MACD GmbH
> Oppenhoffallee 103
> 52066 Aachen, Germanywww.macd.com
>
> Amtsgericht Aachen: HRB 8151
> Ust.-Id: DE 813021663
> Geschäftsführer: George Macdonald
>
>
|
|
From: Fuad A. <fua...@gm...> - 2020-04-01 04:07:55
|
hi good morning Christoph i have question about repeating groups.
i have two repeating group for
quickfix.fix42.MarketDataRequest.NoMDEntryTypes group = new
quickfix.fix42.MarketDataRequest.NoMDEntryTypes();
quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = new
quickfix.fix42.MarketDataRequest.NoRelatedSym();
group.set(new MDEntryType('1'));
marketDataRequest.addGroup(group);
group1.set(new Symbol("ALL"));
marketDataRequest.addGroup(group1);
but my tag for 146 and tag 55 for NoRelatedSym and Symbol cannot convert to
my fix message here my message log
8=FIX.4.2^A9=118^A35=V^A34=3^A49=MDValueTrade2UAT1^A52=20200401-04:00:04.262^A56=Fastmatch1^A262=VT_020^A263=^A^A264=1^A146=1^A55=ALL^A267=1^A269=1^A10=175^A
also i have add value of tag 263 but my quickfix message cannot convert the
value
i have add like this marketDataRequest.setField(new
SubscriptionRequestType('1')); so where is the problem from my code ?
Pada tanggal Sel, 31 Mar 2020 pukul 20.01 Christoph John <
chr...@ma...> menulis:
> No problem, just make sure that you go through the documentation before
> asking any questions. Then ask questions based on that. :)
>
> Cheers,
> Chris.
>
>
> On 31.03.20 14:42, Fuad Azhar wrote:
>
> Oh I see I will try using new methods for hit our broker... Many thanks
> for your advice Christoph.. I am so sorry if my question very basic using
> quickfixj .
>
> Best regards
>
> Fuad
>
> On Tue, Mar 31, 2020, 19:38 Christoph John <chr...@ma... wrote:
>
>> Did you go through this?
>> https://github.com/quickfix-j/quickfixj#sending-messages
>>
>> I would not advise to send messages out of the onLogon() callback.
>>
>> Chris.
>>
>> On 31.03.20 14:29, Fuad Azhar wrote:
>>
>> wait this is about quickfixj...
>>
>> Successfully called onCreate for sessionId :
>> FIX.4.2:MDValueTrade2UAT1->Fastmatch1
>> Data Server IP 169.33.100.15
>> Data Server Port 17543
>> Login MDValueTrade2UAT1 Fastmatch1
>> Logon
>> 8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146
>> errorquickfix.SessionNotFound: missing sender or target company ID
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104
>> Successfully called fromAdmin for sessionId :
>> 8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111
>>
>> i can logon to mybroker now. but when i want hit my broker for market
>> data request i got error like this errorquickfix.SessionNotFound: missing
>> sender or target company ID
>>
>> when i logon i want to hit my broker using this code.
>>
>> public void onLogon(SessionID sessionID) {
>> // TODO Auto-generated method stub
>> TestMarketdataRequest.sessionID = sessionID;
>> Session s = Session.lookupSession(sessionID);
>> UUID uuid = UUID.randomUUID();
>> String randomUUIDString = uuid.toString();
>> Message message = new Message();
>> quickfix.fix42.MarketDataRequest.NoMDEntryTypes group =
>> new quickfix.fix42.MarketDataRequest.NoMDEntryTypes();
>> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 =
>> new quickfix.fix42.MarketDataRequest.NoRelatedSym();
>> MarketDataRequest marketdatarequest = new MarketDataRequest();
>> Header header = marketdatarequest.getHeader();
>> header.setField(new BeginString("FIX.4.2"));
>> header.setField(new SenderCompID("MDValueTrade2UAT1"));
>> header.setField(new TargetCompID("Fastmatch1"));
>> header.setField(new MsgType("V"));
>> message.setField(new MDReqID(randomUUIDString));
>> message.setField(new SubscriptionRequestType((char) 1));
>> message.setField(new MarketDepth(1));
>> message.setField(new NoMDEntryTypes(1));
>> group.setField(new MDEntryType((char) 1));
>> message.addGroup(group);
>> group1.setField(new Symbol("ALL"));
>> message.addGroup(group1);
>> try
>> {
>> Session.sendToTarget(message);
>> System.out.println("message" + message);
>> }catch (Exception ex)
>> {
>> System.out.println("error" + ex);
>> }
>> }
>>
>> so what wrong with my code for market data request format ?
>>
>> Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John <
>> chr...@ma...> menulis:
>>
>>> I still see no QFJ related classes in the stack trace so why do you
>>> think it is a QFJ problem? Is it a Java problem when you try to cast
>>> something to String which cannot be cast to String? ;)
>>>
>>> Please make sure you read the documentation on how to create a QFJ
>>> application: https://github.com/quickfix-j/quickfixj#basics
>>>
>>> Chris.
>>>
>>> On 31.03.20 14:08, Fuad Azhar wrote:
>>>
>>> sorry christoph now the problem is about quickfixj application
>>>
>>> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar
>>> initiator.config
>>> Application: TestMarketdataRequest
>>> Config File initiator.config
>>> FIX Port xxxxx
>>> FIX IP xxx.xxx.xxx.xxx
>>> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1
>>> java.lang.ClassCastException:
>>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be
>>> cast to quickfix.Application
>>> at
>>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141)
>>> at
>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>>> at
>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>>
>>> why to this error for initiator start ?
>>>
>>> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <
>>> fua...@gm...> menulis:
>>>
>>>> ok sorry for that... but i have try out the banzai example for read
>>>> file for input stream initiator config. but the code cannot read my file
>>>> config. how to set proper config file for initiator.config for make session
>>>> from quickfixj
>>>>
>>>>
>>>> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <
>>>> chr...@ma...> menulis:
>>>>
>>>>> Don't get me wrong but I don't have time to debug your code. ;)
>>>>> I am pretty sure that this Exception is not thrown out of QFJ code.
>>>>>
>>>>> Cheers,
>>>>> Chris.
>>>>>
>>>>>
>>>>> On 31.03.20 08:06, Fuad Azhar wrote:
>>>>>
>>>>> your solution run well but i have another error. for read config file.
>>>>> my error is
>>>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
>>>>> at
>>>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>>>>> at
>>>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>>>>
>>>>> and my config file code is here
>>>>>
>>>>> public TestMarketdataRequest(String configFile) {
>>>>> try {
>>>>> System.out.println(" Config File " + configFile);
>>>>> Properties props = new Properties();
>>>>> try {
>>>>> props.load(new FileInputStream(configFile));
>>>>> } catch (IOException e) {
>>>>> e.printStackTrace();
>>>>> }
>>>>> SenderCompID = props.getProperty("SenderCompID");
>>>>> TargetCompID = props.getProperty("TargetCompID");
>>>>> symbols = props.getProperty("Symbols");
>>>>> System.out.println(" FIX Port " +
>>>>> props.getProperty("SocketConnectPort"));
>>>>> System.out.println(" FIX IP " +
>>>>> props.getProperty("SocketConnectHost"));
>>>>> System.out.println(" SenderCompID " + SenderCompID + "
>>>>> TargetCompID " + TargetCompID);
>>>>> SessionSettings settings = new SessionSettings(configFile);
>>>>> MessageStoreFactory messageStoreFactory = new
>>>>> FileStoreFactory(settings);
>>>>> LogFactory logFactory = new FileLogFactory(settings);
>>>>> MessageFactory messageFactory = new
>>>>> DefaultMessageFactory();
>>>>> Initiator initiator = new SocketInitiator((Application)
>>>>> this, messageStoreFactory, settings, logFactory, messageFactory);
>>>>> initiator.start();
>>>>>
>>>>> and this is the args[0]
>>>>> public static void main(String[] args){
>>>>> String configFile = args[0];
>>>>> new TestMarketdataRequest(configFile);
>>>>> }
>>>>> and my error is in this code
>>>>>
>>>>> public class FastmatchMDRequest {
>>>>>
>>>>>
>>>>>
>>>>> public FastmatchMDRequest(String args[]){
>>>>> System.out.println("Application: TestMarketdataRequest ");
>>>>> new TestMarketdataRequest(args[0]);
>>>>> }
>>>>>
>>>>>
>>>>> public static void main(String args[]){
>>>>> new FastmatchMDRequest(args);
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> }
>>>>> }
>>>>> what is the problem from this ? i have add my config file as my
>>>>> resources and build it in one jar.
>>>>>
>>>>> best regards,
>>>>>
>>>>> Fuad
>>>>>
>>>>>
>>>>>
>>> --
>>> Christoph John
>>> Software Engineering
>>> T +49 241 557...@ma...
>>>
>>> MACD GmbH
>>> Oppenhoffallee 103
>>> 52066 Aachen, Germanywww.macd.com
>>>
>>> Amtsgericht Aachen: HRB 8151
>>> Ust.-Id: DE 813021663
>>> Geschäftsführer: George Macdonald
>>>
>>>
>> --
>> Christoph John
>> Software Engineering
>> T +49 241 557...@ma...
>>
>> MACD GmbH
>> Oppenhoffallee 103
>> 52066 Aachen, Germanywww.macd.com
>>
>> Amtsgericht Aachen: HRB 8151
>> Ust.-Id: DE 813021663
>> Geschäftsführer: George Macdonald
>>
>>
> --
> Christoph John
> Software Engineering
> T +49 241 557...@ma...
>
> MACD GmbH
> Oppenhoffallee 103
> 52066 Aachen, Germanywww.macd.com
>
> Amtsgericht Aachen: HRB 8151
> Ust.-Id: DE 813021663
> Geschäftsführer: George Macdonald
>
>
|
|
From: Christoph J. <chr...@ma...> - 2020-03-31 13:01:49
|
No problem, just make sure that you go through the documentation before asking any questions. Then ask questions based on that. :) Cheers, Chris. On 31.03.20 14:42, Fuad Azhar wrote: > Oh I see I will try using new methods for hit our broker... Many thanks for your advice > Christoph.. I am so sorry if my question very basic using quickfixj . > > Best regards > > Fuad > > On Tue, Mar 31, 2020, 19:38 Christoph John <chr...@ma... > <mailto:chr...@ma...> wrote: > > Did you go through this? https://github.com/quickfix-j/quickfixj#sending-messages > > I would not advise to send messages out of the onLogon() callback. > > Chris. > > On 31.03.20 14:29, Fuad Azhar wrote: >> wait this is about quickfixj... >> >> Successfully called onCreate for sessionId : FIX.4.2:MDValueTrade2UAT1->Fastmatch1 >> Data Server IP 169.33.100.15 >> Data Server Port 17543 >> Login MDValueTrade2UAT1 Fastmatch1 >> Logon >> 8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168 >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146 >> errorquickfix.SessionNotFound: missing sender or target company ID >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094 >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101 >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103 >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102 >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104 >> Successfully called fromAdmin for sessionId : >> 8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111 >> >> i can logon to mybroker now. but when i want hit my broker for market data request i got >> error like this errorquickfix.SessionNotFound: missing sender or target company ID >> >> when i logon i want to hit my broker using this code. >> >> public void onLogon(SessionID sessionID) { >> // TODO Auto-generated method stub >> TestMarketdataRequest.sessionID = sessionID; >> Session s = Session.lookupSession(sessionID); >> UUID uuid = UUID.randomUUID(); >> String randomUUIDString = uuid.toString(); >> Message message = new Message(); >> quickfix.fix42.MarketDataRequest.NoMDEntryTypes group = >> new quickfix.fix42.MarketDataRequest.NoMDEntryTypes(); >> quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = >> new quickfix.fix42.MarketDataRequest.NoRelatedSym(); >> MarketDataRequest marketdatarequest = new MarketDataRequest(); >> Header header = marketdatarequest.getHeader(); >> header.setField(new BeginString("FIX.4.2")); >> header.setField(new SenderCompID("MDValueTrade2UAT1")); >> header.setField(new TargetCompID("Fastmatch1")); >> header.setField(new MsgType("V")); >> message.setField(new MDReqID(randomUUIDString)); >> message.setField(new SubscriptionRequestType((char) 1)); >> message.setField(new MarketDepth(1)); >> message.setField(new NoMDEntryTypes(1)); >> group.setField(new MDEntryType((char) 1)); >> message.addGroup(group); >> group1.setField(new Symbol("ALL")); >> message.addGroup(group1); >> try >> { >> Session.sendToTarget(message); >> System.out.println("message" + message); >> }catch (Exception ex) >> { >> System.out.println("error" + ex); >> } >> } >> >> so what wrong with my code for market data request format ? >> >> Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John <chr...@ma... >> <mailto:chr...@ma...>> menulis: >> >> I still see no QFJ related classes in the stack trace so why do you think it is a QFJ >> problem? Is it a Java problem when you try to cast something to String which cannot be >> cast to String? ;) >> >> Please make sure you read the documentation on how to create a QFJ application: >> https://github.com/quickfix-j/quickfixj#basics >> >> Chris. >> >> On 31.03.20 14:08, Fuad Azhar wrote: >>> sorry christoph now the problem is about quickfixj application >>> >>> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar initiator.config >>> Application: TestMarketdataRequest >>> Config File initiator.config >>> FIX Port xxxxx >>> FIX IP xxx.xxx.xxx.xxx >>> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1 >>> java.lang.ClassCastException: >>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be cast to >>> quickfix.Application >>> at >>> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141) >>> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>> >>> why to this error for initiator start ? >>> >>> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <fua...@gm... >>> <mailto:fua...@gm...>> menulis: >>> >>> ok sorry for that... but i have try out the banzai example for read file for input >>> stream initiator config. but the code cannot read my file config. how to set proper >>> config file for initiator.config for make session from quickfixj >>> >>> >>> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <chr...@ma... >>> <mailto:chr...@ma...>> menulis: >>> >>> Don't get me wrong but I don't have time to debug your code. ;) >>> I am pretty sure that this Exception is not thrown out of QFJ code. >>> >>> Cheers, >>> Chris. >>> >>> >>> On 31.03.20 08:06, Fuad Azhar wrote: >>>> your solution run well but i have another error. for read config file. >>>> my error is >>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >>>> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>>> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>>> >>>> and my config file code is here >>>> >>>> public TestMarketdataRequest(String configFile) { >>>> try { >>>> System.out.println(" Config File " + configFile); >>>> Properties props = new Properties(); >>>> try { >>>> props.load(new FileInputStream(configFile)); >>>> } catch (IOException e) { >>>> e.printStackTrace(); >>>> } >>>> SenderCompID = props.getProperty("SenderCompID"); >>>> TargetCompID = props.getProperty("TargetCompID"); >>>> symbols = props.getProperty("Symbols"); >>>> System.out.println(" FIX Port " + >>>> props.getProperty("SocketConnectPort")); >>>> System.out.println(" FIX IP " + >>>> props.getProperty("SocketConnectHost")); >>>> System.out.println(" SenderCompID " + SenderCompID + " TargetCompID >>>> " + TargetCompID); >>>> SessionSettings settings = new SessionSettings(configFile); >>>> MessageStoreFactory messageStoreFactory = new >>>> FileStoreFactory(settings); >>>> LogFactory logFactory = new FileLogFactory(settings); >>>> MessageFactory messageFactory = new DefaultMessageFactory(); >>>> Initiator initiator = new SocketInitiator((Application) this, >>>> messageStoreFactory, settings, logFactory, messageFactory); >>>> initiator.start(); >>>> >>>> and this is the args[0] >>>> public static void main(String[] args){ >>>> String configFile = args[0]; >>>> new TestMarketdataRequest(configFile); >>>> } >>>> and my error is in this code >>>> >>>> public class FastmatchMDRequest { >>>> >>>> >>>> >>>> public FastmatchMDRequest(String args[]){ >>>> System.out.println("Application: TestMarketdataRequest "); >>>> new TestMarketdataRequest(args[0]); >>>> } >>>> >>>> >>>> public static void main(String args[]){ >>>> new FastmatchMDRequest(args); >>>> >>>> >>>> >>>> >>>> } >>>> } >>>> what is the problem from this ? i have add my config file as my resources and >>>> build it in one jar. >>>> >>>> best regards, >>>> >>>> Fuad >>> >> >> -- >> Christoph John >> Software Engineering >> T +49 241 557080-28 >> chr...@ma... <mailto:chr...@ma...> >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germany >> www.macd.com <http://www.macd.com> >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald >> > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... <mailto:chr...@ma...> > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com <http://www.macd.com> > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Fuad A. <fua...@gm...> - 2020-03-31 12:53:10
|
And for save the price from my broker it is possible save the price in file.text? So I want to get value symbols transactiontime and the price. On Tue, Mar 31, 2020, 19:38 Christoph John <chr...@ma... wrote: > Did you go through this? > https://github.com/quickfix-j/quickfixj#sending-messages > > I would not advise to send messages out of the onLogon() callback. > > Chris. > > On 31.03.20 14:29, Fuad Azhar wrote: > > wait this is about quickfixj... > > Successfully called onCreate for sessionId : > FIX.4.2:MDValueTrade2UAT1->Fastmatch1 > Data Server IP 169.33.100.15 > Data Server Port 17543 > Login MDValueTrade2UAT1 Fastmatch1 > Logon > 8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146 > errorquickfix.SessionNotFound: missing sender or target company ID > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111 > > i can logon to mybroker now. but when i want hit my broker for market data > request i got error like this errorquickfix.SessionNotFound: missing sender > or target company ID > > when i logon i want to hit my broker using this code. > > public void onLogon(SessionID sessionID) { > // TODO Auto-generated method stub > TestMarketdataRequest.sessionID = sessionID; > Session s = Session.lookupSession(sessionID); > UUID uuid = UUID.randomUUID(); > String randomUUIDString = uuid.toString(); > Message message = new Message(); > quickfix.fix42.MarketDataRequest.NoMDEntryTypes group = > new quickfix.fix42.MarketDataRequest.NoMDEntryTypes(); > quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = > new quickfix.fix42.MarketDataRequest.NoRelatedSym(); > MarketDataRequest marketdatarequest = new MarketDataRequest(); > Header header = marketdatarequest.getHeader(); > header.setField(new BeginString("FIX.4.2")); > header.setField(new SenderCompID("MDValueTrade2UAT1")); > header.setField(new TargetCompID("Fastmatch1")); > header.setField(new MsgType("V")); > message.setField(new MDReqID(randomUUIDString)); > message.setField(new SubscriptionRequestType((char) 1)); > message.setField(new MarketDepth(1)); > message.setField(new NoMDEntryTypes(1)); > group.setField(new MDEntryType((char) 1)); > message.addGroup(group); > group1.setField(new Symbol("ALL")); > message.addGroup(group1); > try > { > Session.sendToTarget(message); > System.out.println("message" + message); > }catch (Exception ex) > { > System.out.println("error" + ex); > } > } > > so what wrong with my code for market data request format ? > > Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John < > chr...@ma...> menulis: > >> I still see no QFJ related classes in the stack trace so why do you think >> it is a QFJ problem? Is it a Java problem when you try to cast something to >> String which cannot be cast to String? ;) >> >> Please make sure you read the documentation on how to create a QFJ >> application: https://github.com/quickfix-j/quickfixj#basics >> >> Chris. >> >> On 31.03.20 14:08, Fuad Azhar wrote: >> >> sorry christoph now the problem is about quickfixj application >> >> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar >> initiator.config >> Application: TestMarketdataRequest >> Config File initiator.config >> FIX Port xxxxx >> FIX IP xxx.xxx.xxx.xxx >> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1 >> java.lang.ClassCastException: >> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be >> cast to quickfix.Application >> at >> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141) >> at >> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >> at >> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >> >> why to this error for initiator start ? >> >> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar < >> fua...@gm...> menulis: >> >>> ok sorry for that... but i have try out the banzai example for read file >>> for input stream initiator config. but the code cannot read my file config. >>> how to set proper config file for initiator.config for make session from >>> quickfixj >>> >>> >>> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John < >>> chr...@ma...> menulis: >>> >>>> Don't get me wrong but I don't have time to debug your code. ;) >>>> I am pretty sure that this Exception is not thrown out of QFJ code. >>>> >>>> Cheers, >>>> Chris. >>>> >>>> >>>> On 31.03.20 08:06, Fuad Azhar wrote: >>>> >>>> your solution run well but i have another error. for read config file. >>>> my error is >>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >>>> at >>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>>> at >>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>>> >>>> and my config file code is here >>>> >>>> public TestMarketdataRequest(String configFile) { >>>> try { >>>> System.out.println(" Config File " + configFile); >>>> Properties props = new Properties(); >>>> try { >>>> props.load(new FileInputStream(configFile)); >>>> } catch (IOException e) { >>>> e.printStackTrace(); >>>> } >>>> SenderCompID = props.getProperty("SenderCompID"); >>>> TargetCompID = props.getProperty("TargetCompID"); >>>> symbols = props.getProperty("Symbols"); >>>> System.out.println(" FIX Port " + >>>> props.getProperty("SocketConnectPort")); >>>> System.out.println(" FIX IP " + >>>> props.getProperty("SocketConnectHost")); >>>> System.out.println(" SenderCompID " + SenderCompID + " >>>> TargetCompID " + TargetCompID); >>>> SessionSettings settings = new SessionSettings(configFile); >>>> MessageStoreFactory messageStoreFactory = new >>>> FileStoreFactory(settings); >>>> LogFactory logFactory = new FileLogFactory(settings); >>>> MessageFactory messageFactory = new DefaultMessageFactory(); >>>> Initiator initiator = new SocketInitiator((Application) >>>> this, messageStoreFactory, settings, logFactory, messageFactory); >>>> initiator.start(); >>>> >>>> and this is the args[0] >>>> public static void main(String[] args){ >>>> String configFile = args[0]; >>>> new TestMarketdataRequest(configFile); >>>> } >>>> and my error is in this code >>>> >>>> public class FastmatchMDRequest { >>>> >>>> >>>> >>>> public FastmatchMDRequest(String args[]){ >>>> System.out.println("Application: TestMarketdataRequest "); >>>> new TestMarketdataRequest(args[0]); >>>> } >>>> >>>> >>>> public static void main(String args[]){ >>>> new FastmatchMDRequest(args); >>>> >>>> >>>> >>>> >>>> } >>>> } >>>> what is the problem from this ? i have add my config file as my >>>> resources and build it in one jar. >>>> >>>> best regards, >>>> >>>> Fuad >>>> >>>> >>>> >> -- >> Christoph John >> Software Engineering >> T +49 241 557...@ma... >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germanywww.macd.com >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald >> >> > -- > Christoph John > Software Engineering > T +49 241 557...@ma... > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germanywww.macd.com > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > > |
|
From: Fuad A. <fua...@gm...> - 2020-03-31 12:42:27
|
Oh I see I will try using new methods for hit our broker... Many thanks for your advice Christoph.. I am so sorry if my question very basic using quickfixj . Best regards Fuad On Tue, Mar 31, 2020, 19:38 Christoph John <chr...@ma... wrote: > Did you go through this? > https://github.com/quickfix-j/quickfixj#sending-messages > > I would not advise to send messages out of the onLogon() callback. > > Chris. > > On 31.03.20 14:29, Fuad Azhar wrote: > > wait this is about quickfixj... > > Successfully called onCreate for sessionId : > FIX.4.2:MDValueTrade2UAT1->Fastmatch1 > Data Server IP 169.33.100.15 > Data Server Port 17543 > Login MDValueTrade2UAT1 Fastmatch1 > Logon > 8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146 > errorquickfix.SessionNotFound: missing sender or target company ID > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111 > > i can logon to mybroker now. but when i want hit my broker for market data > request i got error like this errorquickfix.SessionNotFound: missing sender > or target company ID > > when i logon i want to hit my broker using this code. > > public void onLogon(SessionID sessionID) { > // TODO Auto-generated method stub > TestMarketdataRequest.sessionID = sessionID; > Session s = Session.lookupSession(sessionID); > UUID uuid = UUID.randomUUID(); > String randomUUIDString = uuid.toString(); > Message message = new Message(); > quickfix.fix42.MarketDataRequest.NoMDEntryTypes group = > new quickfix.fix42.MarketDataRequest.NoMDEntryTypes(); > quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = > new quickfix.fix42.MarketDataRequest.NoRelatedSym(); > MarketDataRequest marketdatarequest = new MarketDataRequest(); > Header header = marketdatarequest.getHeader(); > header.setField(new BeginString("FIX.4.2")); > header.setField(new SenderCompID("MDValueTrade2UAT1")); > header.setField(new TargetCompID("Fastmatch1")); > header.setField(new MsgType("V")); > message.setField(new MDReqID(randomUUIDString)); > message.setField(new SubscriptionRequestType((char) 1)); > message.setField(new MarketDepth(1)); > message.setField(new NoMDEntryTypes(1)); > group.setField(new MDEntryType((char) 1)); > message.addGroup(group); > group1.setField(new Symbol("ALL")); > message.addGroup(group1); > try > { > Session.sendToTarget(message); > System.out.println("message" + message); > }catch (Exception ex) > { > System.out.println("error" + ex); > } > } > > so what wrong with my code for market data request format ? > > Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John < > chr...@ma...> menulis: > >> I still see no QFJ related classes in the stack trace so why do you think >> it is a QFJ problem? Is it a Java problem when you try to cast something to >> String which cannot be cast to String? ;) >> >> Please make sure you read the documentation on how to create a QFJ >> application: https://github.com/quickfix-j/quickfixj#basics >> >> Chris. >> >> On 31.03.20 14:08, Fuad Azhar wrote: >> >> sorry christoph now the problem is about quickfixj application >> >> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar >> initiator.config >> Application: TestMarketdataRequest >> Config File initiator.config >> FIX Port xxxxx >> FIX IP xxx.xxx.xxx.xxx >> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1 >> java.lang.ClassCastException: >> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be >> cast to quickfix.Application >> at >> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141) >> at >> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >> at >> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >> >> why to this error for initiator start ? >> >> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar < >> fua...@gm...> menulis: >> >>> ok sorry for that... but i have try out the banzai example for read file >>> for input stream initiator config. but the code cannot read my file config. >>> how to set proper config file for initiator.config for make session from >>> quickfixj >>> >>> >>> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John < >>> chr...@ma...> menulis: >>> >>>> Don't get me wrong but I don't have time to debug your code. ;) >>>> I am pretty sure that this Exception is not thrown out of QFJ code. >>>> >>>> Cheers, >>>> Chris. >>>> >>>> >>>> On 31.03.20 08:06, Fuad Azhar wrote: >>>> >>>> your solution run well but i have another error. for read config file. >>>> my error is >>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >>>> at >>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>>> at >>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>>> >>>> and my config file code is here >>>> >>>> public TestMarketdataRequest(String configFile) { >>>> try { >>>> System.out.println(" Config File " + configFile); >>>> Properties props = new Properties(); >>>> try { >>>> props.load(new FileInputStream(configFile)); >>>> } catch (IOException e) { >>>> e.printStackTrace(); >>>> } >>>> SenderCompID = props.getProperty("SenderCompID"); >>>> TargetCompID = props.getProperty("TargetCompID"); >>>> symbols = props.getProperty("Symbols"); >>>> System.out.println(" FIX Port " + >>>> props.getProperty("SocketConnectPort")); >>>> System.out.println(" FIX IP " + >>>> props.getProperty("SocketConnectHost")); >>>> System.out.println(" SenderCompID " + SenderCompID + " >>>> TargetCompID " + TargetCompID); >>>> SessionSettings settings = new SessionSettings(configFile); >>>> MessageStoreFactory messageStoreFactory = new >>>> FileStoreFactory(settings); >>>> LogFactory logFactory = new FileLogFactory(settings); >>>> MessageFactory messageFactory = new DefaultMessageFactory(); >>>> Initiator initiator = new SocketInitiator((Application) >>>> this, messageStoreFactory, settings, logFactory, messageFactory); >>>> initiator.start(); >>>> >>>> and this is the args[0] >>>> public static void main(String[] args){ >>>> String configFile = args[0]; >>>> new TestMarketdataRequest(configFile); >>>> } >>>> and my error is in this code >>>> >>>> public class FastmatchMDRequest { >>>> >>>> >>>> >>>> public FastmatchMDRequest(String args[]){ >>>> System.out.println("Application: TestMarketdataRequest "); >>>> new TestMarketdataRequest(args[0]); >>>> } >>>> >>>> >>>> public static void main(String args[]){ >>>> new FastmatchMDRequest(args); >>>> >>>> >>>> >>>> >>>> } >>>> } >>>> what is the problem from this ? i have add my config file as my >>>> resources and build it in one jar. >>>> >>>> best regards, >>>> >>>> Fuad >>>> >>>> >>>> >> -- >> Christoph John >> Software Engineering >> T +49 241 557...@ma... >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germanywww.macd.com >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald >> >> > -- > Christoph John > Software Engineering > T +49 241 557...@ma... > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germanywww.macd.com > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > > |
|
From: Christoph J. <chr...@ma...> - 2020-03-31 12:38:35
|
Did you go through this? https://github.com/quickfix-j/quickfixj#sending-messages I would not advise to send messages out of the onLogon() callback. Chris. On 31.03.20 14:29, Fuad Azhar wrote: > wait this is about quickfixj... > > Successfully called onCreate for sessionId : FIX.4.2:MDValueTrade2UAT1->Fastmatch1 > Data Server IP 169.33.100.15 > Data Server Port 17543 > Login MDValueTrade2UAT1 Fastmatch1 > Logon > 8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146 > errorquickfix.SessionNotFound: missing sender or target company ID > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104 > Successfully called fromAdmin for sessionId : > 8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111 > > i can logon to mybroker now. but when i want hit my broker for market data request i got error > like this errorquickfix.SessionNotFound: missing sender or target company ID > > when i logon i want to hit my broker using this code. > > public void onLogon(SessionID sessionID) { > // TODO Auto-generated method stub > TestMarketdataRequest.sessionID = sessionID; > Session s = Session.lookupSession(sessionID); > UUID uuid = UUID.randomUUID(); > String randomUUIDString = uuid.toString(); > Message message = new Message(); > quickfix.fix42.MarketDataRequest.NoMDEntryTypes group = > new quickfix.fix42.MarketDataRequest.NoMDEntryTypes(); > quickfix.fix42.MarketDataRequest.NoRelatedSym group1 = > new quickfix.fix42.MarketDataRequest.NoRelatedSym(); > MarketDataRequest marketdatarequest = new MarketDataRequest(); > Header header = marketdatarequest.getHeader(); > header.setField(new BeginString("FIX.4.2")); > header.setField(new SenderCompID("MDValueTrade2UAT1")); > header.setField(new TargetCompID("Fastmatch1")); > header.setField(new MsgType("V")); > message.setField(new MDReqID(randomUUIDString)); > message.setField(new SubscriptionRequestType((char) 1)); > message.setField(new MarketDepth(1)); > message.setField(new NoMDEntryTypes(1)); > group.setField(new MDEntryType((char) 1)); > message.addGroup(group); > group1.setField(new Symbol("ALL")); > message.addGroup(group1); > try > { > Session.sendToTarget(message); > System.out.println("message" + message); > }catch (Exception ex) > { > System.out.println("error" + ex); > } > } > > so what wrong with my code for market data request format ? > > Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John <chr...@ma... > <mailto:chr...@ma...>> menulis: > > I still see no QFJ related classes in the stack trace so why do you think it is a QFJ problem? > Is it a Java problem when you try to cast something to String which cannot be cast to String? ;) > > Please make sure you read the documentation on how to create a QFJ application: > https://github.com/quickfix-j/quickfixj#basics > > Chris. > > On 31.03.20 14:08, Fuad Azhar wrote: >> sorry christoph now the problem is about quickfixj application >> >> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar initiator.config >> Application: TestMarketdataRequest >> Config File initiator.config >> FIX Port xxxxx >> FIX IP xxx.xxx.xxx.xxx >> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1 >> java.lang.ClassCastException: com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest >> cannot be cast to quickfix.Application >> at >> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141) >> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >> >> why to this error for initiator start ? >> >> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <fua...@gm... >> <mailto:fua...@gm...>> menulis: >> >> ok sorry for that... but i have try out the banzai example for read file for input stream >> initiator config. but the code cannot read my file config. how to set proper config file >> for initiator.config for make session from quickfixj >> >> >> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <chr...@ma... >> <mailto:chr...@ma...>> menulis: >> >> Don't get me wrong but I don't have time to debug your code. ;) >> I am pretty sure that this Exception is not thrown out of QFJ code. >> >> Cheers, >> Chris. >> >> >> On 31.03.20 08:06, Fuad Azhar wrote: >>> your solution run well but i have another error. for read config file. >>> my error is >>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >>> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>> >>> and my config file code is here >>> >>> public TestMarketdataRequest(String configFile) { >>> try { >>> System.out.println(" Config File " + configFile); >>> Properties props = new Properties(); >>> try { >>> props.load(new FileInputStream(configFile)); >>> } catch (IOException e) { >>> e.printStackTrace(); >>> } >>> SenderCompID = props.getProperty("SenderCompID"); >>> TargetCompID = props.getProperty("TargetCompID"); >>> symbols = props.getProperty("Symbols"); >>> System.out.println(" FIX Port " + props.getProperty("SocketConnectPort")); >>> System.out.println(" FIX IP " + props.getProperty("SocketConnectHost")); >>> System.out.println(" SenderCompID " + SenderCompID + " TargetCompID " + >>> TargetCompID); >>> SessionSettings settings = new SessionSettings(configFile); >>> MessageStoreFactory messageStoreFactory = new FileStoreFactory(settings); >>> LogFactory logFactory = new FileLogFactory(settings); >>> MessageFactory messageFactory = new DefaultMessageFactory(); >>> Initiator initiator = new SocketInitiator((Application) this, >>> messageStoreFactory, settings, logFactory, messageFactory); >>> initiator.start(); >>> >>> and this is the args[0] >>> public static void main(String[] args){ >>> String configFile = args[0]; >>> new TestMarketdataRequest(configFile); >>> } >>> and my error is in this code >>> >>> public class FastmatchMDRequest { >>> >>> >>> >>> public FastmatchMDRequest(String args[]){ >>> System.out.println("Application: TestMarketdataRequest "); >>> new TestMarketdataRequest(args[0]); >>> } >>> >>> >>> public static void main(String args[]){ >>> new FastmatchMDRequest(args); >>> >>> >>> >>> >>> } >>> } >>> what is the problem from this ? i have add my config file as my resources and build >>> it in one jar. >>> >>> best regards, >>> >>> Fuad >> > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... <mailto:chr...@ma...> > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com <http://www.macd.com> > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Fuad A. <fua...@gm...> - 2020-03-31 12:29:52
|
wait this is about quickfixj...
Successfully called onCreate for sessionId :
FIX.4.2:MDValueTrade2UAT1->Fastmatch1
Data Server IP 169.33.100.15
Data Server Port 17543
Login MDValueTrade2UAT1 Fastmatch1
Logon
8=FIX.4.29=11735=A34=149=MDValueTrade2UAT152=20200331-12:23:55.29156=Fastmatch149=MDValueTrade2UAT156=Fastmatch198=0108=3010=168
Successfully called fromAdmin for sessionId :
8=FIX.4.29=8235=A34=149=Fastmatch152=20200331-12:23:55.36756=MDValueTrade2UAT198=0108=3010=146
errorquickfix.SessionNotFound: missing sender or target company ID
Successfully called fromAdmin for sessionId :
8=FIX.4.29=7035=034=249=Fastmatch152=20200331-12:24:25.37056=MDValueTrade2UAT110=094
Successfully called fromAdmin for sessionId :
8=FIX.4.29=7035=034=349=Fastmatch152=20200331-12:24:55.37356=MDValueTrade2UAT110=101
Successfully called fromAdmin for sessionId :
8=FIX.4.29=7035=034=449=Fastmatch152=20200331-12:25:25.37656=MDValueTrade2UAT110=103
Successfully called fromAdmin for sessionId :
8=FIX.4.29=7035=034=549=Fastmatch152=20200331-12:25:55.38056=MDValueTrade2UAT110=102
Successfully called fromAdmin for sessionId :
8=FIX.4.29=7035=034=649=Fastmatch152=20200331-12:26:25.38356=MDValueTrade2UAT110=104
Successfully called fromAdmin for sessionId :
8=FIX.4.29=7035=034=749=Fastmatch152=20200331-12:26:55.38656=MDValueTrade2UAT110=111
i can logon to mybroker now. but when i want hit my broker for market data
request i got error like this errorquickfix.SessionNotFound: missing sender
or target company ID
when i logon i want to hit my broker using this code.
public void onLogon(SessionID sessionID) {
// TODO Auto-generated method stub
TestMarketdataRequest.sessionID = sessionID;
Session s = Session.lookupSession(sessionID);
UUID uuid = UUID.randomUUID();
String randomUUIDString = uuid.toString();
Message message = new Message();
quickfix.fix42.MarketDataRequest.NoMDEntryTypes group =
new quickfix.fix42.MarketDataRequest.NoMDEntryTypes();
quickfix.fix42.MarketDataRequest.NoRelatedSym group1 =
new quickfix.fix42.MarketDataRequest.NoRelatedSym();
MarketDataRequest marketdatarequest = new MarketDataRequest();
Header header = marketdatarequest.getHeader();
header.setField(new BeginString("FIX.4.2"));
header.setField(new SenderCompID("MDValueTrade2UAT1"));
header.setField(new TargetCompID("Fastmatch1"));
header.setField(new MsgType("V"));
message.setField(new MDReqID(randomUUIDString));
message.setField(new SubscriptionRequestType((char) 1));
message.setField(new MarketDepth(1));
message.setField(new NoMDEntryTypes(1));
group.setField(new MDEntryType((char) 1));
message.addGroup(group);
group1.setField(new Symbol("ALL"));
message.addGroup(group1);
try
{
Session.sendToTarget(message);
System.out.println("message" + message);
}catch (Exception ex)
{
System.out.println("error" + ex);
}
}
so what wrong with my code for market data request format ?
Pada tanggal Sel, 31 Mar 2020 pukul 19.16 Christoph John <
chr...@ma...> menulis:
> I still see no QFJ related classes in the stack trace so why do you think
> it is a QFJ problem? Is it a Java problem when you try to cast something to
> String which cannot be cast to String? ;)
>
> Please make sure you read the documentation on how to create a QFJ
> application: https://github.com/quickfix-j/quickfixj#basics
>
> Chris.
>
> On 31.03.20 14:08, Fuad Azhar wrote:
>
> sorry christoph now the problem is about quickfixj application
>
> java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar
> initiator.config
> Application: TestMarketdataRequest
> Config File initiator.config
> FIX Port xxxxx
> FIX IP xxx.xxx.xxx.xxx
> SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1
> java.lang.ClassCastException:
> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be
> cast to quickfix.Application
> at
> com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141)
> at
> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
> at
> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>
> why to this error for initiator start ?
>
> Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <
> fua...@gm...> menulis:
>
>> ok sorry for that... but i have try out the banzai example for read file
>> for input stream initiator config. but the code cannot read my file config.
>> how to set proper config file for initiator.config for make session from
>> quickfixj
>>
>>
>> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <
>> chr...@ma...> menulis:
>>
>>> Don't get me wrong but I don't have time to debug your code. ;)
>>> I am pretty sure that this Exception is not thrown out of QFJ code.
>>>
>>> Cheers,
>>> Chris.
>>>
>>>
>>> On 31.03.20 08:06, Fuad Azhar wrote:
>>>
>>> your solution run well but i have another error. for read config file.
>>> my error is
>>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
>>> at
>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>>> at
>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>>
>>> and my config file code is here
>>>
>>> public TestMarketdataRequest(String configFile) {
>>> try {
>>> System.out.println(" Config File " + configFile);
>>> Properties props = new Properties();
>>> try {
>>> props.load(new FileInputStream(configFile));
>>> } catch (IOException e) {
>>> e.printStackTrace();
>>> }
>>> SenderCompID = props.getProperty("SenderCompID");
>>> TargetCompID = props.getProperty("TargetCompID");
>>> symbols = props.getProperty("Symbols");
>>> System.out.println(" FIX Port " +
>>> props.getProperty("SocketConnectPort"));
>>> System.out.println(" FIX IP " +
>>> props.getProperty("SocketConnectHost"));
>>> System.out.println(" SenderCompID " + SenderCompID + "
>>> TargetCompID " + TargetCompID);
>>> SessionSettings settings = new SessionSettings(configFile);
>>> MessageStoreFactory messageStoreFactory = new
>>> FileStoreFactory(settings);
>>> LogFactory logFactory = new FileLogFactory(settings);
>>> MessageFactory messageFactory = new DefaultMessageFactory();
>>> Initiator initiator = new SocketInitiator((Application)
>>> this, messageStoreFactory, settings, logFactory, messageFactory);
>>> initiator.start();
>>>
>>> and this is the args[0]
>>> public static void main(String[] args){
>>> String configFile = args[0];
>>> new TestMarketdataRequest(configFile);
>>> }
>>> and my error is in this code
>>>
>>> public class FastmatchMDRequest {
>>>
>>>
>>>
>>> public FastmatchMDRequest(String args[]){
>>> System.out.println("Application: TestMarketdataRequest ");
>>> new TestMarketdataRequest(args[0]);
>>> }
>>>
>>>
>>> public static void main(String args[]){
>>> new FastmatchMDRequest(args);
>>>
>>>
>>>
>>>
>>> }
>>> }
>>> what is the problem from this ? i have add my config file as my
>>> resources and build it in one jar.
>>>
>>> best regards,
>>>
>>> Fuad
>>>
>>>
>>>
> --
> Christoph John
> Software Engineering
> T +49 241 557...@ma...
>
> MACD GmbH
> Oppenhoffallee 103
> 52066 Aachen, Germanywww.macd.com
>
> Amtsgericht Aachen: HRB 8151
> Ust.-Id: DE 813021663
> Geschäftsführer: George Macdonald
>
>
|
|
From: Christoph J. <chr...@ma...> - 2020-03-31 12:17:00
|
I still see no QFJ related classes in the stack trace so why do you think it is a QFJ problem? Is it a Java problem when you try to cast something to String which cannot be cast to String? ;) Please make sure you read the documentation on how to create a QFJ application: https://github.com/quickfix-j/quickfixj#basics Chris. On 31.03.20 14:08, Fuad Azhar wrote: > sorry christoph now the problem is about quickfixj application > > java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar initiator.config > Application: TestMarketdataRequest > Config File initiator.config > FIX Port xxxxx > FIX IP xxx.xxx.xxx.xxx > SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1 > java.lang.ClassCastException: com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest > cannot be cast to quickfix.Application > at > com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141) > at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) > at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) > > why to this error for initiator start ? > > Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <fua...@gm... > <mailto:fua...@gm...>> menulis: > > ok sorry for that... but i have try out the banzai example for read file for input stream > initiator config. but the code cannot read my file config. how to set proper config file for > initiator.config for make session from quickfixj > > > Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <chr...@ma... > <mailto:chr...@ma...>> menulis: > > Don't get me wrong but I don't have time to debug your code. ;) > I am pretty sure that this Exception is not thrown out of QFJ code. > > Cheers, > Chris. > > > On 31.03.20 08:06, Fuad Azhar wrote: >> your solution run well but i have another error. for read config file. >> my error is >> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 >> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >> >> and my config file code is here >> >> public TestMarketdataRequest(String configFile) { >> try { >> System.out.println(" Config File " + configFile); >> Properties props = new Properties(); >> try { >> props.load(new FileInputStream(configFile)); >> } catch (IOException e) { >> e.printStackTrace(); >> } >> SenderCompID = props.getProperty("SenderCompID"); >> TargetCompID = props.getProperty("TargetCompID"); >> symbols = props.getProperty("Symbols"); >> System.out.println(" FIX Port " + props.getProperty("SocketConnectPort")); >> System.out.println(" FIX IP " + props.getProperty("SocketConnectHost")); >> System.out.println(" SenderCompID " + SenderCompID + " TargetCompID " + >> TargetCompID); >> SessionSettings settings = new SessionSettings(configFile); >> MessageStoreFactory messageStoreFactory = new FileStoreFactory(settings); >> LogFactory logFactory = new FileLogFactory(settings); >> MessageFactory messageFactory = new DefaultMessageFactory(); >> Initiator initiator = new SocketInitiator((Application) this, >> messageStoreFactory, settings, logFactory, messageFactory); >> initiator.start(); >> >> and this is the args[0] >> public static void main(String[] args){ >> String configFile = args[0]; >> new TestMarketdataRequest(configFile); >> } >> and my error is in this code >> >> public class FastmatchMDRequest { >> >> >> >> public FastmatchMDRequest(String args[]){ >> System.out.println("Application: TestMarketdataRequest "); >> new TestMarketdataRequest(args[0]); >> } >> >> >> public static void main(String args[]){ >> new FastmatchMDRequest(args); >> >> >> >> >> } >> } >> what is the problem from this ? i have add my config file as my resources and build it in >> one jar. >> >> best regards, >> >> Fuad > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Fuad A. <fua...@gm...> - 2020-03-31 12:09:06
|
sorry christoph now the problem is about quickfixj application
java -jar fastmatchmarketdata-0.0.1-SNAPSHOT-jar-with-dependencies.jar
initiator.config
Application: TestMarketdataRequest
Config File initiator.config
FIX Port xxxxx
FIX IP xxx.xxx.xxx.xxx
SenderCompID MDValueTrade2UAT1 TargetCompID Fastmatch1
java.lang.ClassCastException:
com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest cannot be
cast to quickfix.Application
at
com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest.<init>(TestMarketdataRequest.java:141)
at
com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
at
com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
why to this error for initiator start ?
Pada tanggal Sel, 31 Mar 2020 pukul 17.12 Fuad Azhar <fua...@gm...>
menulis:
> ok sorry for that... but i have try out the banzai example for read file
> for input stream initiator config. but the code cannot read my file config.
> how to set proper config file for initiator.config for make session from
> quickfixj
>
>
> Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <
> chr...@ma...> menulis:
>
>> Don't get me wrong but I don't have time to debug your code. ;)
>> I am pretty sure that this Exception is not thrown out of QFJ code.
>>
>> Cheers,
>> Chris.
>>
>>
>> On 31.03.20 08:06, Fuad Azhar wrote:
>>
>> your solution run well but i have another error. for read config file.
>> my error is
>> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
>> at
>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>> at
>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>
>> and my config file code is here
>>
>> public TestMarketdataRequest(String configFile) {
>> try {
>> System.out.println(" Config File " + configFile);
>> Properties props = new Properties();
>> try {
>> props.load(new FileInputStream(configFile));
>> } catch (IOException e) {
>> e.printStackTrace();
>> }
>> SenderCompID = props.getProperty("SenderCompID");
>> TargetCompID = props.getProperty("TargetCompID");
>> symbols = props.getProperty("Symbols");
>> System.out.println(" FIX Port " +
>> props.getProperty("SocketConnectPort"));
>> System.out.println(" FIX IP " +
>> props.getProperty("SocketConnectHost"));
>> System.out.println(" SenderCompID " + SenderCompID + "
>> TargetCompID " + TargetCompID);
>> SessionSettings settings = new SessionSettings(configFile);
>> MessageStoreFactory messageStoreFactory = new
>> FileStoreFactory(settings);
>> LogFactory logFactory = new FileLogFactory(settings);
>> MessageFactory messageFactory = new DefaultMessageFactory();
>> Initiator initiator = new SocketInitiator((Application) this,
>> messageStoreFactory, settings, logFactory, messageFactory);
>> initiator.start();
>>
>> and this is the args[0]
>> public static void main(String[] args){
>> String configFile = args[0];
>> new TestMarketdataRequest(configFile);
>> }
>> and my error is in this code
>>
>> public class FastmatchMDRequest {
>>
>>
>>
>> public FastmatchMDRequest(String args[]){
>> System.out.println("Application: TestMarketdataRequest ");
>> new TestMarketdataRequest(args[0]);
>> }
>>
>>
>> public static void main(String args[]){
>> new FastmatchMDRequest(args);
>>
>>
>>
>>
>> }
>> }
>> what is the problem from this ? i have add my config file as my resources
>> and build it in one jar.
>>
>> best regards,
>>
>> Fuad
>>
>>
>>
|
|
From: Fuad A. <fua...@gm...> - 2020-03-31 10:12:20
|
ok sorry for that... but i have try out the banzai example for read file
for input stream initiator config. but the code cannot read my file config.
how to set proper config file for initiator.config for make session from
quickfixj
Pada tanggal Sel, 31 Mar 2020 pukul 16.27 Christoph John <
chr...@ma...> menulis:
> Don't get me wrong but I don't have time to debug your code. ;)
> I am pretty sure that this Exception is not thrown out of QFJ code.
>
> Cheers,
> Chris.
>
>
> On 31.03.20 08:06, Fuad Azhar wrote:
>
> your solution run well but i have another error. for read config file.
> my error is
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
> at
> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
> at
> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>
> and my config file code is here
>
> public TestMarketdataRequest(String configFile) {
> try {
> System.out.println(" Config File " + configFile);
> Properties props = new Properties();
> try {
> props.load(new FileInputStream(configFile));
> } catch (IOException e) {
> e.printStackTrace();
> }
> SenderCompID = props.getProperty("SenderCompID");
> TargetCompID = props.getProperty("TargetCompID");
> symbols = props.getProperty("Symbols");
> System.out.println(" FIX Port " +
> props.getProperty("SocketConnectPort"));
> System.out.println(" FIX IP " +
> props.getProperty("SocketConnectHost"));
> System.out.println(" SenderCompID " + SenderCompID + "
> TargetCompID " + TargetCompID);
> SessionSettings settings = new SessionSettings(configFile);
> MessageStoreFactory messageStoreFactory = new
> FileStoreFactory(settings);
> LogFactory logFactory = new FileLogFactory(settings);
> MessageFactory messageFactory = new DefaultMessageFactory();
> Initiator initiator = new SocketInitiator((Application) this,
> messageStoreFactory, settings, logFactory, messageFactory);
> initiator.start();
>
> and this is the args[0]
> public static void main(String[] args){
> String configFile = args[0];
> new TestMarketdataRequest(configFile);
> }
> and my error is in this code
>
> public class FastmatchMDRequest {
>
>
>
> public FastmatchMDRequest(String args[]){
> System.out.println("Application: TestMarketdataRequest ");
> new TestMarketdataRequest(args[0]);
> }
>
>
> public static void main(String args[]){
> new FastmatchMDRequest(args);
>
>
>
>
> }
> }
> what is the problem from this ? i have add my config file as my resources
> and build it in one jar.
>
> best regards,
>
> Fuad
>
>
>
|
|
From: Christoph J. <chr...@ma...> - 2020-03-31 09:27:39
|
Don't get me wrong but I don't have time to debug your code. ;)
I am pretty sure that this Exception is not thrown out of QFJ code.
Cheers,
Chris.
On 31.03.20 08:06, Fuad Azhar wrote:
> your solution run well but i have another error. for read config file.
> my error is
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>
> and my config file code is here
>
> public TestMarketdataRequest(String configFile) {
> try {
> System.out.println(" Config File " + configFile);
> Properties props = new Properties();
> try {
> props.load(new FileInputStream(configFile));
> } catch (IOException e) {
> e.printStackTrace();
> }
> SenderCompID = props.getProperty("SenderCompID");
> TargetCompID = props.getProperty("TargetCompID");
> symbols = props.getProperty("Symbols");
> System.out.println(" FIX Port " + props.getProperty("SocketConnectPort"));
> System.out.println(" FIX IP " + props.getProperty("SocketConnectHost"));
> System.out.println(" SenderCompID " + SenderCompID + " TargetCompID " + TargetCompID);
> SessionSettings settings = new SessionSettings(configFile);
> MessageStoreFactory messageStoreFactory = new FileStoreFactory(settings);
> LogFactory logFactory = new FileLogFactory(settings);
> MessageFactory messageFactory = new DefaultMessageFactory();
> Initiator initiator = new SocketInitiator((Application) this, messageStoreFactory,
> settings, logFactory, messageFactory);
> initiator.start();
>
> and this is the args[0]
> public static void main(String[] args){
> String configFile = args[0];
> new TestMarketdataRequest(configFile);
> }
> and my error is in this code
>
> public class FastmatchMDRequest {
>
>
>
> public FastmatchMDRequest(String args[]){
> System.out.println("Application: TestMarketdataRequest ");
> new TestMarketdataRequest(args[0]);
> }
>
>
> public static void main(String args[]){
> new FastmatchMDRequest(args);
>
>
>
>
> }
> }
> what is the problem from this ? i have add my config file as my resources and build it in one jar.
>
> best regards,
>
> Fuad
|
|
From: Fuad A. <fua...@gm...> - 2020-03-31 06:06:58
|
your solution run well but i have another error. for read config file.
my error is
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at
com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
at
com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
and my config file code is here
public TestMarketdataRequest(String configFile) {
try {
System.out.println(" Config File " + configFile);
Properties props = new Properties();
try {
props.load(new FileInputStream(configFile));
} catch (IOException e) {
e.printStackTrace();
}
SenderCompID = props.getProperty("SenderCompID");
TargetCompID = props.getProperty("TargetCompID");
symbols = props.getProperty("Symbols");
System.out.println(" FIX Port " +
props.getProperty("SocketConnectPort"));
System.out.println(" FIX IP " +
props.getProperty("SocketConnectHost"));
System.out.println(" SenderCompID " + SenderCompID + "
TargetCompID " + TargetCompID);
SessionSettings settings = new SessionSettings(configFile);
MessageStoreFactory messageStoreFactory = new
FileStoreFactory(settings);
LogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
Initiator initiator = new SocketInitiator((Application) this,
messageStoreFactory, settings, logFactory, messageFactory);
initiator.start();
and this is the args[0]
public static void main(String[] args){
String configFile = args[0];
new TestMarketdataRequest(configFile);
}
and my error is in this code
public class FastmatchMDRequest {
public FastmatchMDRequest(String args[]){
System.out.println("Application: TestMarketdataRequest ");
new TestMarketdataRequest(args[0]);
}
public static void main(String args[]){
new FastmatchMDRequest(args);
}
}
what is the problem from this ? i have add my config file as my resources
and build it in one jar.
best regards,
Fuad
Pada tanggal Sen, 30 Mar 2020 pukul 21.13 Fuad Azhar <fua...@gm...>
menulis:
> Oh I see... Thanks for discuss Christoph... I will try it tomorrow morning
> on Indonesia time... I will update the result... Many thanks for you...
>
> On Mon, Mar 30, 2020, 20:50 Christoph John <chr...@ma... wrote:
>
>> When there is no match, then the class is not in the JAR and that is
>> because you get a ClassNotFound.
>>
>> Here is how you can package all your dependencies in an executable JAR:
>>
>> https://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven
>>
>>
>>
>>
>> On 30.03.20 15:39, Fuad Azhar wrote:
>>
>> here my screenshot for eclipse
>> i have add all libraries. but when i create jar and grep it using your
>> command line i got this one
>>
>> fuad@fuad-Inspiron-3476:~/Documents/fastmatchmarketdata/target$ jar tfv
>> fastmatchmarketdata-0.0.1-SNAPSHOT.jar | grep MessageStoreFactory
>> for this one there is not any answer but when i only check all of jar
>> there is any like this example :
>> fuad@fuad-Inspiron-3476:~/Documents/fastmatchmarketdata/target$ jar tfv
>> fastmatchmarketdata-0.0.1-SNAPSHOT.jar
>> 249 Mon Mar 30 19:59:50 WIB 2020 META-INF/MANIFEST.MF
>> 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/
>> 0 Mon Mar 30 19:56:34 WIB 2020 com/
>> 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/
>> 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/fastmatch/
>> 0 Mon Mar 30 19:56:34 WIB 2020
>> com/dxtr/fastmatch/marketdatarequestapps/
>> 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/
>> 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/fastmatch/
>> 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/maven/
>> 0 Mon Mar 30 19:59:50 WIB 2020
>> META-INF/maven/com.dxtr.marketdatarequest/
>> 0 Mon Mar 30 19:59:50 WIB 2020
>> META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/
>> 1098 Mon Mar 30 19:58:34 WIB 2020
>> com/dxtr/fastmatch/marketdatarequestapps/TestMarketdataRequest$1.class
>> 11666 Mon Mar 30 19:58:34 WIB 2020
>> com/dxtr/fastmatch/marketdatarequestapps/TestMarketdataRequest.class
>> 749 Mon Mar 30 19:58:34 WIB 2020
>> com/dxtr/fastmatch/FastmatchMDRequest.class
>> 130005 Mon Mar 30 19:56:34 WIB 2020
>> com/dxtr/marketdatarequest/fastmatch/FIX42.XML
>> 354 Mon Mar 30 19:56:34 WIB 2020
>> com/dxtr/marketdatarequest/fastmatch/initiator.config
>> 354 Mon Mar 30 19:56:34 WIB 2020
>> com/dxtr/marketdatarequest/fastmatch/initiator.cfg
>> 120 Mon Mar 30 19:59:08 WIB 2020
>> META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/pom.properties
>> 6469 Mon Mar 30 19:56:24 WIB 2020
>> META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/pom.xml
>>
>> i also attach my maven depedencies with have i add. so how to fix my
>> problem ?
>>
>> Pada tanggal Sen, 30 Mar 2020 pukul 20.28 Christoph John <
>> chr...@ma...> menulis:
>>
>>> Are you sure your JAR contains all needed libraries?
>>> Could you do a "jar tfv <jarfile> | grep MessageStoreFactory" on your
>>> JAR file? Is there any output?
>>>
>>>
>>>
>>> On 30.03.20 15:13, Fuad Azhar wrote:
>>>
>>> first i build my apps in my local laptop my local environment is OpenJDK
>>> Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08) in local
>>> i use eclipse for build this java apps jar
>>> after that i scp my jar to our staging server. and my staging server use
>>> aws server and i run my apps using java -jar xxxx.jar but when i run it i
>>> got error like that.
>>> so how to solved the problem ? thanks for your help christoph.john
>>>
>>> Pada tanggal Sen, 30 Mar 2020 pukul 20.01 Christoph John <
>>> chr...@ma...> menulis:
>>>
>>>> This has to be something special to your runtime environment and does
>>>> not look like a QuickFIX/J.
>>>>
>>>> How do you run your application? Do you start it from the command line
>>>> or do you deploy your application to some application server?
>>>>
>>>>
>>>> On 30.03.20 14:45, Fuad Azhar wrote:
>>>>
>>>> i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and
>>>> all of required but when i run i got that error again and again... how to
>>>> fix it
>>>>
>>>> Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John <
>>>> chr...@ma...> menulis:
>>>>
>>>>> I guess the solution is the same as before, but probably you need to
>>>>> include another JAR file. I guess quickfixj-core.
>>>>>
>>>>>
>>>>> On 30.03.20 13:34, Fuad Azhar wrote:
>>>>>
>>>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>>>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>>>>
>>>>>
>>>>> Hi thanks for answer that my problem about JNI... now i have different
>>>>> error from my apps.
>>>>> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my
>>>>> apps i have problem like this one
>>>>>
>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>> quickfix/MessageStoreFactory
>>>>> at
>>>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>>>>> at
>>>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>>>>> Caused by: java.lang.ClassNotFoundException:
>>>>> quickfix.MessageStoreFactory
>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>>>>> at
>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>>>>> ... 2 more
>>>>>
>>>>> how to solved my problem ?
>>>>>
>>>>> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley <
>>>>> an...@fi...> menulis:
>>>>>
>>>>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>>>>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J>
>>>>>> Support: http://www.quickfixj.org/support/
>>>>>>
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Take a look
>>>>>>
>>>>>> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips
>>>>>>
>>>>>> Thanks
>>>>>> Aidan
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> Christoph John
>>>> Software Engineering
>>>> T +49 241 557...@ma...
>>>>
>>>> MACD GmbH
>>>> Oppenhoffallee 103
>>>> 52066 Aachen, Germanywww.macd.com
>>>>
>>>> Amtsgericht Aachen: HRB 8151
>>>> Ust.-Id: DE 813021663
>>>> Geschäftsführer: George Macdonald
>>>>
>>>>
>>> --
>>> Christoph John
>>> Software Engineering
>>> T +49 241 557...@ma...
>>>
>>> MACD GmbH
>>> Oppenhoffallee 103
>>> 52066 Aachen, Germanywww.macd.com
>>>
>>> Amtsgericht Aachen: HRB 8151
>>> Ust.-Id: DE 813021663
>>> Geschäftsführer: George Macdonald
>>>
>>>
>> --
>> Christoph John
>> Software Engineering
>> T +49 241 557...@ma...
>>
>> MACD GmbH
>> Oppenhoffallee 103
>> 52066 Aachen, Germanywww.macd.com
>>
>> Amtsgericht Aachen: HRB 8151
>> Ust.-Id: DE 813021663
>> Geschäftsführer: George Macdonald
>>
>>
|
|
From: Fuad A. <fua...@gm...> - 2020-03-30 14:13:50
|
Oh I see... Thanks for discuss Christoph... I will try it tomorrow morning on Indonesia time... I will update the result... Many thanks for you... On Mon, Mar 30, 2020, 20:50 Christoph John <chr...@ma... wrote: > When there is no match, then the class is not in the JAR and that is > because you get a ClassNotFound. > > Here is how you can package all your dependencies in an executable JAR: > > https://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven > > > > > On 30.03.20 15:39, Fuad Azhar wrote: > > here my screenshot for eclipse > i have add all libraries. but when i create jar and grep it using your > command line i got this one > > fuad@fuad-Inspiron-3476:~/Documents/fastmatchmarketdata/target$ jar tfv > fastmatchmarketdata-0.0.1-SNAPSHOT.jar | grep MessageStoreFactory > for this one there is not any answer but when i only check all of jar > there is any like this example : > fuad@fuad-Inspiron-3476:~/Documents/fastmatchmarketdata/target$ jar tfv > fastmatchmarketdata-0.0.1-SNAPSHOT.jar > 249 Mon Mar 30 19:59:50 WIB 2020 META-INF/MANIFEST.MF > 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/fastmatch/ > 0 Mon Mar 30 19:56:34 WIB 2020 > com/dxtr/fastmatch/marketdatarequestapps/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/fastmatch/ > 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/maven/ > 0 Mon Mar 30 19:59:50 WIB 2020 > META-INF/maven/com.dxtr.marketdatarequest/ > 0 Mon Mar 30 19:59:50 WIB 2020 > META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/ > 1098 Mon Mar 30 19:58:34 WIB 2020 > com/dxtr/fastmatch/marketdatarequestapps/TestMarketdataRequest$1.class > 11666 Mon Mar 30 19:58:34 WIB 2020 > com/dxtr/fastmatch/marketdatarequestapps/TestMarketdataRequest.class > 749 Mon Mar 30 19:58:34 WIB 2020 > com/dxtr/fastmatch/FastmatchMDRequest.class > 130005 Mon Mar 30 19:56:34 WIB 2020 > com/dxtr/marketdatarequest/fastmatch/FIX42.XML > 354 Mon Mar 30 19:56:34 WIB 2020 > com/dxtr/marketdatarequest/fastmatch/initiator.config > 354 Mon Mar 30 19:56:34 WIB 2020 > com/dxtr/marketdatarequest/fastmatch/initiator.cfg > 120 Mon Mar 30 19:59:08 WIB 2020 > META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/pom.properties > 6469 Mon Mar 30 19:56:24 WIB 2020 > META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/pom.xml > > i also attach my maven depedencies with have i add. so how to fix my > problem ? > > Pada tanggal Sen, 30 Mar 2020 pukul 20.28 Christoph John < > chr...@ma...> menulis: > >> Are you sure your JAR contains all needed libraries? >> Could you do a "jar tfv <jarfile> | grep MessageStoreFactory" on your JAR >> file? Is there any output? >> >> >> >> On 30.03.20 15:13, Fuad Azhar wrote: >> >> first i build my apps in my local laptop my local environment is OpenJDK >> Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08) in local >> i use eclipse for build this java apps jar >> after that i scp my jar to our staging server. and my staging server use >> aws server and i run my apps using java -jar xxxx.jar but when i run it i >> got error like that. >> so how to solved the problem ? thanks for your help christoph.john >> >> Pada tanggal Sen, 30 Mar 2020 pukul 20.01 Christoph John < >> chr...@ma...> menulis: >> >>> This has to be something special to your runtime environment and does >>> not look like a QuickFIX/J. >>> >>> How do you run your application? Do you start it from the command line >>> or do you deploy your application to some application server? >>> >>> >>> On 30.03.20 14:45, Fuad Azhar wrote: >>> >>> i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and all >>> of required but when i run i got that error again and again... how to fix >>> it >>> >>> Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John < >>> chr...@ma...> menulis: >>> >>>> I guess the solution is the same as before, but probably you need to >>>> include another JAR file. I guess quickfixj-core. >>>> >>>> >>>> On 30.03.20 13:34, Fuad Azhar wrote: >>>> >>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>> QuickFIX/J Support: http://www.quickfixj.org/support/ >>>> >>>> >>>> Hi thanks for answer that my problem about JNI... now i have different >>>> error from my apps. >>>> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my >>>> apps i have problem like this one >>>> >>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> quickfix/MessageStoreFactory >>>> at >>>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>>> at >>>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>>> Caused by: java.lang.ClassNotFoundException: >>>> quickfix.MessageStoreFactory >>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:418) >>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:351) >>>> ... 2 more >>>> >>>> how to solved my problem ? >>>> >>>> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley < >>>> an...@fi...> menulis: >>>> >>>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> >>>>> Support: http://www.quickfixj.org/support/ >>>>> >>>>> >>>>> Hi, >>>>> >>>>> Take a look >>>>> >>>>> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips >>>>> >>>>> Thanks >>>>> Aidan >>>>> >>>> >>>> >>> -- >>> Christoph John >>> Software Engineering >>> T +49 241 557...@ma... >>> >>> MACD GmbH >>> Oppenhoffallee 103 >>> 52066 Aachen, Germanywww.macd.com >>> >>> Amtsgericht Aachen: HRB 8151 >>> Ust.-Id: DE 813021663 >>> Geschäftsführer: George Macdonald >>> >>> >> -- >> Christoph John >> Software Engineering >> T +49 241 557...@ma... >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germanywww.macd.com >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald >> >> > -- > Christoph John > Software Engineering > T +49 241 557...@ma... > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germanywww.macd.com > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > > |
|
From: Christoph J. <chr...@ma...> - 2020-03-30 13:50:17
|
When there is no match, then the class is not in the JAR and that is because you get a ClassNotFound. Here is how you can package all your dependencies in an executable JAR: https://stackoverflow.com/questions/574594/how-can-i-create-an-executable-jar-with-dependencies-using-maven On 30.03.20 15:39, Fuad Azhar wrote: > here my screenshot for eclipse > i have add all libraries. but when i create jar and grep it using your command line i got this one > > fuad@fuad-Inspiron-3476:~/Documents/fastmatchmarketdata/target$ jar tfv > fastmatchmarketdata-0.0.1-SNAPSHOT.jar | grep MessageStoreFactory > for this one there is not any answer but when i only check all of jar there is any like this example : > fuad@fuad-Inspiron-3476:~/Documents/fastmatchmarketdata/target$ jar tfv > fastmatchmarketdata-0.0.1-SNAPSHOT.jar > 249 Mon Mar 30 19:59:50 WIB 2020 META-INF/MANIFEST.MF > 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/fastmatch/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/fastmatch/marketdatarequestapps/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/ > 0 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/fastmatch/ > 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/maven/ > 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/maven/com.dxtr.marketdatarequest/ > 0 Mon Mar 30 19:59:50 WIB 2020 META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/ > 1098 Mon Mar 30 19:58:34 WIB 2020 > com/dxtr/fastmatch/marketdatarequestapps/TestMarketdataRequest$1.class > 11666 Mon Mar 30 19:58:34 WIB 2020 > com/dxtr/fastmatch/marketdatarequestapps/TestMarketdataRequest.class > 749 Mon Mar 30 19:58:34 WIB 2020 com/dxtr/fastmatch/FastmatchMDRequest.class > 130005 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/fastmatch/FIX42.XML > 354 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/fastmatch/initiator.config > 354 Mon Mar 30 19:56:34 WIB 2020 com/dxtr/marketdatarequest/fastmatch/initiator.cfg > 120 Mon Mar 30 19:59:08 WIB 2020 > META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/pom.properties > 6469 Mon Mar 30 19:56:24 WIB 2020 > META-INF/maven/com.dxtr.marketdatarequest/fastmatchmarketdata/pom.xml > > i also attach my maven depedencies with have i add. so how to fix my problem ? > > Pada tanggal Sen, 30 Mar 2020 pukul 20.28 Christoph John <chr...@ma... > <mailto:chr...@ma...>> menulis: > > Are you sure your JAR contains all needed libraries? > Could you do a "jar tfv <jarfile> | grep MessageStoreFactory" on your JAR file? Is there any > output? > > > > On 30.03.20 15:13, Fuad Azhar wrote: >> first i build my apps in my local laptop my local environment is OpenJDK Runtime Environment >> (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08) in local i use eclipse for build this java >> apps jar >> after that i scp my jar to our staging server. and my staging server use aws server and i run >> my apps using java -jar xxxx.jar but when i run it i got error like that. >> so how to solved the problem ? thanks for your help christoph.john >> >> Pada tanggal Sen, 30 Mar 2020 pukul 20.01 Christoph John <chr...@ma... >> <mailto:chr...@ma...>> menulis: >> >> This has to be something special to your runtime environment and does not look like a >> QuickFIX/J. >> >> How do you run your application? Do you start it from the command line or do you deploy >> your application to some application server? >> >> >> On 30.03.20 14:45, Fuad Azhar wrote: >>> i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and all of required but >>> when i run i got that error again and again... how to fix it >>> >>> Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John <chr...@ma... >>> <mailto:chr...@ma...>> menulis: >>> >>> I guess the solution is the same as before, but probably you need to include another >>> JAR file. I guess quickfixj-core. >>> >>> >>> On 30.03.20 13:34, Fuad Azhar wrote: >>>> QuickFIX/J Documentation:http://www.quickfixj.org/documentation/ >>>> QuickFIX/J Support:http://www.quickfixj.org/support/ >>>> >>>> >>>> >>>> Hi thanks for answer that my problem about JNI... now i have different error from >>>> my apps. >>>> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my apps i have >>>> problem like this one >>>> >>>> Exception in thread "main" java.lang.NoClassDefFoundError: quickfix/MessageStoreFactory >>>> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>>> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>>> Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory >>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:418) >>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) >>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:351) >>>> ... 2 more >>>> >>>> how to solved my problem ? >>>> >>>> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley >>>> <an...@fi... <mailto:an...@fi...>> menulis: >>>> >>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >>>> http://www.quickfixj.org/support/ >>>> >>>> >>>> Hi, >>>> >>>> Take a look >>>> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips >>>> >>>> Thanks >>>> Aidan >>>> >>> >> >> -- >> Christoph John >> Software Engineering >> T +49 241 557080-28 >> chr...@ma... <mailto:chr...@ma...> >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germany >> www.macd.com <http://www.macd.com> >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald >> > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... <mailto:chr...@ma...> > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com <http://www.macd.com> > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Christoph J. <chr...@ma...> - 2020-03-30 13:28:37
|
Are you sure your JAR contains all needed libraries? Could you do a "jar tfv <jarfile> | grep MessageStoreFactory" on your JAR file? Is there any output? On 30.03.20 15:13, Fuad Azhar wrote: > first i build my apps in my local laptop my local environment is OpenJDK Runtime Environment > (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08) in local i use eclipse for build this java apps jar > after that i scp my jar to our staging server. and my staging server use aws server and i run my > apps using java -jar xxxx.jar but when i run it i got error like that. > so how to solved the problem ? thanks for your help christoph.john > > Pada tanggal Sen, 30 Mar 2020 pukul 20.01 Christoph John <chr...@ma... > <mailto:chr...@ma...>> menulis: > > This has to be something special to your runtime environment and does not look like a QuickFIX/J. > > How do you run your application? Do you start it from the command line or do you deploy your > application to some application server? > > > On 30.03.20 14:45, Fuad Azhar wrote: >> i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and all of required but when >> i run i got that error again and again... how to fix it >> >> Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John <chr...@ma... >> <mailto:chr...@ma...>> menulis: >> >> I guess the solution is the same as before, but probably you need to include another JAR >> file. I guess quickfixj-core. >> >> >> On 30.03.20 13:34, Fuad Azhar wrote: >>> QuickFIX/J Documentation:http://www.quickfixj.org/documentation/ >>> QuickFIX/J Support:http://www.quickfixj.org/support/ >>> >>> >>> >>> Hi thanks for answer that my problem about JNI... now i have different error from my apps. >>> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my apps i have problem >>> like this one >>> >>> Exception in thread "main" java.lang.NoClassDefFoundError: quickfix/MessageStoreFactory >>> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >>> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >>> Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:418) >>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:351) >>> ... 2 more >>> >>> how to solved my problem ? >>> >>> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley <an...@fi... >>> <mailto:an...@fi...>> menulis: >>> >>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >>> http://www.quickfixj.org/support/ >>> >>> >>> Hi, >>> >>> Take a look >>> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips >>> >>> Thanks >>> Aidan >>> >> > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... <mailto:chr...@ma...> > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com <http://www.macd.com> > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Fuad A. <fua...@gm...> - 2020-03-30 13:14:08
|
first i build my apps in my local laptop my local environment is OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08) in local i use eclipse for build this java apps jar after that i scp my jar to our staging server. and my staging server use aws server and i run my apps using java -jar xxxx.jar but when i run it i got error like that. so how to solved the problem ? thanks for your help christoph.john Pada tanggal Sen, 30 Mar 2020 pukul 20.01 Christoph John < chr...@ma...> menulis: > This has to be something special to your runtime environment and does not > look like a QuickFIX/J. > > How do you run your application? Do you start it from the command line or > do you deploy your application to some application server? > > > On 30.03.20 14:45, Fuad Azhar wrote: > > i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and all > of required but when i run i got that error again and again... how to fix > it > > Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John < > chr...@ma...> menulis: > >> I guess the solution is the same as before, but probably you need to >> include another JAR file. I guess quickfixj-core. >> >> >> On 30.03.20 13:34, Fuad Azhar wrote: >> >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> >> Hi thanks for answer that my problem about JNI... now i have different >> error from my apps. >> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my apps >> i have problem like this one >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> quickfix/MessageStoreFactory >> at >> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >> at >> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >> Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory >> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:418) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:351) >> ... 2 more >> >> how to solved my problem ? >> >> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley < >> an...@fi...> menulis: >> >>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >>> http://www.quickfixj.org/support/ >>> >>> >>> Hi, >>> >>> Take a look >>> >>> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips >>> >>> Thanks >>> Aidan >>> >> >> > -- > Christoph John > Software Engineering > T +49 241 557...@ma... > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germanywww.macd.com > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > > |
|
From: Christoph J. <chr...@ma...> - 2020-03-30 13:08:44
|
Please stop sending your code over and over again. You already did in the initial mail. The problem is most probably related to runtime. On 30.03.20 15:05, Fuad Azhar wrote: > i have add > quickfixj-messages-fix42-2.1.1.jar,quickfixj-core-2.1.1.jar,quickfixj-messages-all-2.1.1.jar and > slf4j and mina core but my error is same as > Application: TestMarketdataRequest > Exception in thread "main" java.lang.NoClassDefFoundError: quickfix/MessageStoreFactory > at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) > at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) > Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory > at java.net.URLClassLoader.findClass(URLClassLoader.java:382) > at java.lang.ClassLoader.loadClass(ClassLoader.java:418) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) > at java.lang.ClassLoader.loadClass(ClassLoader.java:351) > ... 2 more > > here my code > ... -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Fuad A. <fua...@gm...> - 2020-03-30 13:05:44
|
i have add
quickfixj-messages-fix42-2.1.1.jar,quickfixj-core-2.1.1.jar,quickfixj-messages-all-2.1.1.jar
and slf4j and mina core but my error is same as
Application: TestMarketdataRequest
Exception in thread "main" java.lang.NoClassDefFoundError:
quickfix/MessageStoreFactory
at
com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
at
com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 2 more
here my code
package com.dxtr.fastmatch;
import com.dxtr.fastmatch.marketdatarequestapps.TestMarketdataRequest;
/**
* Created by Fuad on 30/03/2020.
*/
public class FastmatchMDRequest {
public FastmatchMDRequest(String args[]){
System.out.println("Application: TestMarketdataRequest ");
new TestMarketdataRequest(args[0]);
}
public static void main(String args[]){
new FastmatchMDRequest(args);
}
}
and here my class application
package com.dxtr.fastmatch.marketdatarequestapps;
import quickfix.*;
import quickfix.Message.Header;
import quickfix.field.*;
import quickfix.fix42.*;
import quickfix.Application;
import quickfix.fix42.Message;
import quickfix.MessageFactory;
import quickfix.field.SenderCompID;
import quickfix.field.TargetCompID;
import quickfix.MessageStoreFactory;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.UUID;
public class TestMarketdataRequest {
private final DefaultMessageFactory messageFactory = new
DefaultMessageFactory();
private boolean isAvailable = true;
private boolean isMissingField;
private String symbols;
private String SenderCompID;
private String TargetCompID;
private static volatile SessionID sessionID;
public void fromAdmin(quickfix.Message message, SessionID sessionID)
throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon {
// TODO Auto-generated method stub
System.out.println("Successfully called fromAdmin for sessionId : "
+ message);
}
public void fromApp(quickfix.Message message, SessionID sessionID)
throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue,
UnsupportedMessageType {
try {
String symbol = message.getString(Symbol.FIELD);
System.out.println(" FromApp " + message);
message.getString(TransactTime.FIELD);
// String seqNo = message.getString(MsgSeqNum.FIELD);
double bid = message.getDouble(MDEntryPx.FIELD);
double ask = message.getDouble(MDEntryPx.FIELD);
// System.out.println(seqNo + " " + message);
} catch (FieldNotFound fieldNotFound) {
fieldNotFound.printStackTrace();
}
}
public void onCreate(SessionID sessionID) {
// TODO Auto-generated method stub
System.out.println("Successfully called onCreate for sessionId : "
+ sessionID);
}
public void onLogon(SessionID sessionID) {
// TODO Auto-generated method stub
TestMarketdataRequest.sessionID = sessionID;
Session s = Session.lookupSession(sessionID);
UUID uuid = UUID.randomUUID();
String randomUUIDString = uuid.toString();
Message message = new Message();
quickfix.fix42.MarketDataRequest.NoMDEntryTypes group =
new quickfix.fix42.MarketDataRequest.NoMDEntryTypes();
quickfix.fix42.MarketDataRequest.NoRelatedSym group1 =
new quickfix.fix42.MarketDataRequest.NoRelatedSym();
MarketDataRequest marketdatarequest = new MarketDataRequest();
Header header = marketdatarequest.getHeader();
header.setField(new BeginString("FIX.4.2"));
header.setField(new SenderCompID("MDValueTrade2UAT1"));
header.setField(new TargetCompID("Fastmatch1"));
header.setField(new MsgType("V"));
message.setField(new MDReqID(randomUUIDString));
message.setField(new SubscriptionRequestType((char) 1));
message.setField(new MarketDepth(1));
message.setField(new NoMDEntryTypes(1));
group.setField(new MDEntryType((char) 1));
message.addGroup(group);
group1.setField(new Symbol("ALL"));
message.addGroup(group1);
try
{
Session.sendToTarget(message);
System.out.println("message" + message);
}catch (Exception ex)
{
System.out.println("error" + ex);
}
}
public void onLogout(SessionID sessionID) {
// TODO Auto-generated method stub
System.out.println("Successfully logged out for sessionId : " + sessionID);
}
public void toAdmin(quickfix.Message message, SessionID sessionID) {
// TODO Auto-generated method stub
if (message instanceof quickfix.fix42.Logon) {
try {
System.out.println(" Login " + SenderCompID + " " +
TargetCompID);
message.setString(quickfix.field.SenderCompID.FIELD,
SenderCompID);
message.setString(quickfix.field.TargetCompID.FIELD,
TargetCompID);
System.out.println(" Logon " + message.toString());
}
catch (Exception ex) {
throw new RuntimeException();
}
}else if (message instanceof quickfix.fix42.MarketDataRequest) {
System.out.println(" Sent Market Data Request ");
}
}
public void toApp(quickfix.Message message, SessionID sessionID) throws
DoNotSend {
// TODO Auto-generated method stub
System.out.println("Message : " + message + " for sessionid : " +
sessionID);
}
public TestMarketdataRequest(String configFile) {
try {
System.out.println(" Config File " + configFile);
Properties props = new Properties();
try {
props.load(new FileInputStream(configFile));
} catch (IOException e) {
e.printStackTrace();
}
SenderCompID = props.getProperty("SenderCompID");
TargetCompID = props.getProperty("TargetCompID");
symbols = props.getProperty("Symbols");
System.out.println(" FIX Port " +
props.getProperty("SocketConnectPort"));
System.out.println(" FIX IP " +
props.getProperty("SocketConnectHost"));
System.out.println(" SenderCompID " + SenderCompID + "
TargetCompID " + TargetCompID);
SessionSettings settings = new SessionSettings(configFile);
MessageStoreFactory messageStoreFactory = new
FileStoreFactory(settings);
LogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
Initiator initiator = new SocketInitiator((Application) this,
messageStoreFactory, settings, logFactory, messageFactory);
initiator.start();
String serverIp = props.getProperty("SocketConnectHost");
String serverPort = props.getProperty("SocketConnectPort");
System.out.println(" Data Server IP " + serverIp);
System.out.println(" Data Server Port " + serverPort);
// root.setLevel(Level.DEBUG);
while (sessionID == null) {
Thread.sleep(1000);
}
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
public void run() {
System.out.print("Logout");
Session.lookupSession(sessionID).logout();
}
}));
}catch (Exception e){
e.printStackTrace();
}
}
public void MarketDataIncrementalRefresh (Message message, SessionID
sessionID) throws FieldNotFound{
try
{
MDReqID mdreqid = new MDReqID();
SendingTime sendingtime = new SendingTime();
NoMDEntries nomdentries = new NoMDEntries();
quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries group
= new
quickfix.fix42.MarketDataIncrementalRefresh.NoMDEntries();
MDUpdateAction mdupdateaction = new MDUpdateAction();
DeleteReason deletereason = new DeleteReason();
MDEntryType mdentrytype = new MDEntryType();
MDEntryID mdentryid = new MDEntryID();
Symbol symbol = new Symbol();
MDEntryOriginator mdentryoriginator = new
MDEntryOriginator();
MDEntryPx mdentrypx = new MDEntryPx();
Currency currency = new Currency();
MDEntrySize mdentrysize = new MDEntrySize();
ExpireDate expiredate = new ExpireDate();
ExpireTime expiretime = new ExpireTime();
NumberOfOrders numberoforders = new NumberOfOrders();
MDEntryPositionNo mdentrypositionno = new
MDEntryPositionNo();
message.getField(nomdentries);
message.getField(sendingtime);
message.getGroup(1, group);
int list = nomdentries.getValue();
for (int i = 0; i < list; i++)
{
message.getGroup(i + 1, group);
group.get(mdupdateaction);
if (mdupdateaction.getValue() == '2')
System.out.println("Enter");
group.get(deletereason);
group.get(mdentrytype);
group.get(mdentryid);
group.get(symbol);
group.get(mdentryoriginator);
if (mdupdateaction.getValue() == '0')
group.get(mdentrypx);
group.get(currency);
if (mdupdateaction.getValue() == '0')
group.get(mdentrysize);
}
System.out.printf("Got Symbol {0} Price {1}",
symbol.getValue(), mdentrypx.getValue());
}catch (Exception ex)
{
System.out.println("error" + ex);
}
}
public void MarketDataSnapshotFullRefresh (Message message, SessionID
sessionID) throws FieldNotFound{
String Symbol = message.getField(new Symbol()).getValue();
NoMDEntries noMDEntries = new NoMDEntries();
message.getField(noMDEntries);
quickfix.fix42.MarketDataSnapshotFullRefresh.NoMDEntries group =
new quickfix.fix42.MarketDataSnapshotFullRefresh.NoMDEntries();
MDEntryType MDEntryType = new MDEntryType();
MDEntryPx MDEntryPx = new MDEntryPx();
MDEntrySize MDEntrySize = new MDEntrySize();
SendingTime sendingTime = new SendingTime();
message.getField(sendingTime);
message.getGroup(1, group);
group.get(MDEntryType);
group.get(MDEntryPx);
group.get(MDEntrySize);
message.getGroup(2, group);
group.get(MDEntryType);
group.get(MDEntryPx);
group.get(MDEntrySize);
System.out.printf("Symbol {0} Price {1}", Symbol, MDEntryPx);
}
public static void main(String[] args){
String configFile = args[0];
new TestMarketdataRequest(configFile);
}
}
so what is problem in my code ? i have add all of depedency with must
include in fix application using quickfixj engine. please help me for fix
it.
best regards,
fuad
Pada tanggal Sen, 30 Mar 2020 pukul 19.45 Fuad Azhar <fua...@gm...>
menulis:
> i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and all
> of required but when i run i got that error again and again... how to fix
> it
>
> Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John <
> chr...@ma...> menulis:
>
>> I guess the solution is the same as before, but probably you need to
>> include another JAR file. I guess quickfixj-core.
>>
>>
>> On 30.03.20 13:34, Fuad Azhar wrote:
>>
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>
>> Hi thanks for answer that my problem about JNI... now i have different
>> error from my apps.
>> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my apps
>> i have problem like this one
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> quickfix/MessageStoreFactory
>> at
>> com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14)
>> at
>> com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19)
>> Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
>> ... 2 more
>>
>> how to solved my problem ?
>>
>> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley <
>> an...@fi...> menulis:
>>
>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support:
>>> http://www.quickfixj.org/support/
>>>
>>>
>>> Hi,
>>>
>>> Take a look
>>>
>>> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips
>>>
>>> Thanks
>>> Aidan
>>>
>>
>>
|
|
From: Christoph J. <chr...@ma...> - 2020-03-30 13:01:44
|
This has to be something special to your runtime environment and does not look like a QuickFIX/J. How do you run your application? Do you start it from the command line or do you deploy your application to some application server? On 30.03.20 14:45, Fuad Azhar wrote: > i have add quickfixj-message-fix42.2.1.1.jar also quickfixj-core and all of required but when i > run i got that error again and again... how to fix it > > Pada tanggal Sen, 30 Mar 2020 pukul 19.40 Christoph John <chr...@ma... > <mailto:chr...@ma...>> menulis: > > I guess the solution is the same as before, but probably you need to include another JAR file. > I guess quickfixj-core. > > > On 30.03.20 13:34, Fuad Azhar wrote: >> QuickFIX/J Documentation:http://www.quickfixj.org/documentation/ >> QuickFIX/J Support:http://www.quickfixj.org/support/ >> >> >> >> Hi thanks for answer that my problem about JNI... now i have different error from my apps. >> i have add quickfixj-messages-fix42.2.1.1.jar but when i try run my apps i have problem like >> this one >> >> Exception in thread "main" java.lang.NoClassDefFoundError: quickfix/MessageStoreFactory >> at com.dxtr.fastmatch.FastmatchMDRequest.<init>(FastmatchMDRequest.java:14) >> at com.dxtr.fastmatch.FastmatchMDRequest.main(FastmatchMDRequest.java:19) >> Caused by: java.lang.ClassNotFoundException: quickfix.MessageStoreFactory >> at java.net.URLClassLoader.findClass(URLClassLoader.java:382) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:418) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:351) >> ... 2 more >> >> how to solved my problem ? >> >> Pada tanggal Sen, 30 Mar 2020 pukul 18.04 Aidan Nutley <an...@fi... >> <mailto:an...@fi...>> menulis: >> >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >> http://www.quickfixj.org/support/ >> >> >> Hi, >> >> Take a look >> https://stackoverflow.com/questions/22381202/a-jni-error-has-occurred-please-check-your-installation-and-try-again-in-eclips >> >> Thanks >> Aidan >> > -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |