|
From: Fuadazhar73 <fua...@gm...> - 2020-03-30 03:56:05
|
Good Morning All of member quickFixj i am new here for quickfixj.
i have quickfixj project for market data request. but when i try to run my
application there is error about [ec2-user fastmatch_server_new]$ java -jar
fastmatchmarketdata-0.0.1-SNAPSHOT.jar
Error: A JNI error has occurred, please check your installation and try
again
Exception in thread "main" java.lang.NoClassDefFoundError:
quickfix/SessionNotFound
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at
sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: quickfix.SessionNotFound
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)
... 7 more
this is my main class for this application
package com.dxtr.marketdatarequest.fastmatchmarketdata;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.UUID;
import quickfix.Initiator;
import quickfix.*;
import quickfix.fix42.*;
import quickfix.LogFactory;
import quickfix.Application;
import quickfix.ConfigError;
import quickfix.DefaultMessageFactory;
import quickfix.FileLogFactory;
import quickfix.FileStoreFactory;
import quickfix.Message.Header;
import quickfix.MessageFactory;
import quickfix.Session;
import quickfix.SessionID;
import quickfix.SessionNotFound;
import quickfix.SessionSettings;
import quickfix.SocketInitiator;
import quickfix.field.BeginString;
import quickfix.field.HeartBtInt;
import quickfix.field.MDEntryType;
import quickfix.field.MDReqID;
import quickfix.field.MarketDepth;
import quickfix.field.MsgType;
import quickfix.field.NoMDEntryTypes;
import quickfix.field.ResetSeqNumFlag;
import quickfix.field.SenderCompID;
import quickfix.field.SubscriptionRequestType;
import quickfix.field.Symbol;
import quickfix.field.TargetCompID;
import quickfix.fix42.Message;
public class FastmatchMDRequest {
public static void main(String[] args) {
SocketInitiator socketInitiator = null;
try {
SessionSettings sessionSettings = new
SessionSettings("/home/ec2-user/fastmatch_server_new/FIXQuote2.cfg");
Application application = new TestMarketdataRequest();
FileStoreFactory fileStoreFactory = new
FileStoreFactory(sessionSettings);
FileLogFactory logFactory = new FileLogFactory(sessionSettings);
MessageFactory messageFactory = new DefaultMessageFactory();
socketInitiator = new SocketInitiator(application,
fileStoreFactory, sessionSettings, logFactory,
messageFactory);
socketInitiator.start();
SessionID sessionId = socketInitiator.getSessions().get(0);
sendMarkeDataRequest(sessionId);
int i = 0;
do {
try {
Thread.sleep(1000);
System.out.println(socketInitiator.isLoggedOn());
} catch (InterruptedException e) {
e.printStackTrace();
}
i++;
} while ((!socketInitiator.isLoggedOn()) && (i < 30));
} catch (ConfigError e) {
e.printStackTrace();
} catch (SessionNotFound e) {
e.printStackTrace();
} catch (Exception exp) {
exp.printStackTrace();
} finally {
if (socketInitiator != null) {
socketInitiator.stop(true);
}
}
}
private static void sendMarkeDataRequest(SessionID sessionId)
throws SessionNotFound {
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);
}
}
}
and this is my application for quickfixj
package com.dxtr.marketdatarequest.fastmatchmarketdata;
import quickfix.*;
import quickfix.Message.Header;
import quickfix.field.*;
import quickfix.fix42.*;
import quickfix.fix42.Message;
import quickfix.MessageFactory;
public class TestMarketdataRequest implements Application {
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 {
// TODO Auto-generated method stub
System.out.println("Successfully called fromApp for sessionId : "
+ message);
}
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
System.out.println("Successfully logged on for sessionId : " + sessionID);
}
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
System.out.println("Inside toAdmin");
}
public void toApp(quickfix.Message message, SessionID sessionID) throws
DoNotSend {
// TODO Auto-generated method stub
System.out.println("Message : " + message + " for sessionid : " +
sessionID);
}
public void onMessage(MarketDataIncrementalRefresh message, SessionID
sessionID)
throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue
{
System.out.println("Inside onMessage for New Order Single" + message
+ sessionID);
}
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);
}
}
so how to fix my problem ? please help me for fix my problem. your help very
appreciate
best regards,
Fuad
--
Sent from: http://quickfix-j.364392.n2.nabble.com/
|
|
From: Aidan N. <an...@fi...> - 2020-03-30 11:02:09
|
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 -----Original Message----- From: Fuadazhar73 <fua...@gm...> Sent: 30 March 2020 04:56 To: qui...@li... Subject: [Quickfixj-users] Problem with my quickfixj application for send market data request QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ QuickFIX/J Support: http://www.quickfixj.org/support/ Good Morning All of member quickFixj i am new here for quickfixj. i have quickfixj project for market data request. but when i try to run my application there is error about [ec2-user fastmatch_server_new]$ java -jar fastmatchmarketdata-0.0.1-SNAPSHOT.jar Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: quickfix/SessionNotFound at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) Caused by: java.lang.ClassNotFoundException: quickfix.SessionNotFound 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) ... 7 more this is my main class for this application package com.dxtr.marketdatarequest.fastmatchmarketdata; import java.io.FileInputStream; import java.io.InputStream; import java.util.UUID; import quickfix.Initiator; import quickfix.*; import quickfix.fix42.*; import quickfix.LogFactory; import quickfix.Application; import quickfix.ConfigError; import quickfix.DefaultMessageFactory; import quickfix.FileLogFactory; import quickfix.FileStoreFactory; import quickfix.Message.Header; import quickfix.MessageFactory; import quickfix.Session; import quickfix.SessionID; import quickfix.SessionNotFound; import quickfix.SessionSettings; import quickfix.SocketInitiator; import quickfix.field.BeginString; import quickfix.field.HeartBtInt; import quickfix.field.MDEntryType; import quickfix.field.MDReqID; import quickfix.field.MarketDepth; import quickfix.field.MsgType; import quickfix.field.NoMDEntryTypes; import quickfix.field.ResetSeqNumFlag; import quickfix.field.SenderCompID; import quickfix.field.SubscriptionRequestType; import quickfix.field.Symbol; import quickfix.field.TargetCompID; import quickfix.fix42.Message; public class FastmatchMDRequest { public static void main(String[] args) { SocketInitiator socketInitiator = null; try { SessionSettings sessionSettings = new SessionSettings("/home/ec2-user/fastmatch_server_new/FIXQuote2.cfg"); Application application = new TestMarketdataRequest(); FileStoreFactory fileStoreFactory = new FileStoreFactory(sessionSettings); FileLogFactory logFactory = new FileLogFactory(sessionSettings); MessageFactory messageFactory = new DefaultMessageFactory(); socketInitiator = new SocketInitiator(application, fileStoreFactory, sessionSettings, logFactory, messageFactory); socketInitiator.start(); SessionID sessionId = socketInitiator.getSessions().get(0); sendMarkeDataRequest(sessionId); int i = 0; do { try { Thread.sleep(1000); System.out.println(socketInitiator.isLoggedOn()); } catch (InterruptedException e) { e.printStackTrace(); } i++; } while ((!socketInitiator.isLoggedOn()) && (i < 30)); } catch (ConfigError e) { e.printStackTrace(); } catch (SessionNotFound e) { e.printStackTrace(); } catch (Exception exp) { exp.printStackTrace(); } finally { if (socketInitiator != null) { socketInitiator.stop(true); } } } private static void sendMarkeDataRequest(SessionID sessionId) throws SessionNotFound { 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); } } } and this is my application for quickfixj package com.dxtr.marketdatarequest.fastmatchmarketdata; import quickfix.*; import quickfix.Message.Header; import quickfix.field.*; import quickfix.fix42.*; import quickfix.fix42.Message; import quickfix.MessageFactory; public class TestMarketdataRequest implements Application { 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 { // TODO Auto-generated method stub System.out.println("Successfully called fromApp for sessionId : " + message); } 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 System.out.println("Successfully logged on for sessionId : " + sessionID); } 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 System.out.println("Inside toAdmin"); } public void toApp(quickfix.Message message, SessionID sessionID) throws DoNotSend { // TODO Auto-generated method stub System.out.println("Message : " + message + " for sessionid : " + sessionID); } public void onMessage(MarketDataIncrementalRefresh message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue { System.out.println("Inside onMessage for New Order Single" + message + sessionID); } 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); } } so how to fix my problem ? please help me for fix my problem. your help very appreciate 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 *********************************************************************************************************************************************************************** This email, its contents and any files attached are a confidential communication and are intended only for the named addressees indicated in the message. If you are not the named addressee or if you have received this email in error, you may not, without the consent of First Derivatives, copy, use or rely on any information or attachments in any way. Please notify the sender by return email and delete it from your email system. Unless separately agreed, First Derivatives does not accept any responsibility for the accuracy or completeness of the contents of this email or its attachments. Please note that any views, opinion or advice contained in this communication are those of the sending individual and not those of First Derivatives and First Derivatives shall have no liability whatsoever in relation to this communication (or its content) unless separately agreed. *********************************************************************************************************************************************************************** |
|
From: Fuad A. <fua...@gm...> - 2020-03-30 11:34:37
|
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
>
> -----Original Message-----
> From: Fuadazhar73 <fua...@gm...>
> Sent: 30 March 2020 04:56
> To: qui...@li...
> Subject: [Quickfixj-users] Problem with my quickfixj application for send
> market data request
>
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support:
> http://www.quickfixj.org/support/
>
>
> Good Morning All of member quickFixj i am new here for quickfixj.
>
> i have quickfixj project for market data request. but when i try to run my
> application there is error about [ec2-user fastmatch_server_new]$ java -jar
> fastmatchmarketdata-0.0.1-SNAPSHOT.jar
> Error: A JNI error has occurred, please check your installation and try
> again Exception in thread "main" java.lang.NoClassDefFoundError:
> quickfix/SessionNotFound
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
> at java.lang.Class.getMethod0(Class.java:3018)
> at java.lang.Class.getMethod(Class.java:1784)
> at
> sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
> at
> sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
> Caused by: java.lang.ClassNotFoundException: quickfix.SessionNotFound
> 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)
> ... 7 more
>
> this is my main class for this application
>
> package com.dxtr.marketdatarequest.fastmatchmarketdata;
>
> import java.io.FileInputStream;
> import java.io.InputStream;
> import java.util.UUID;
>
> import quickfix.Initiator;
> import quickfix.*;
> import quickfix.fix42.*;
> import quickfix.LogFactory;
> import quickfix.Application;
> import quickfix.ConfigError;
> import quickfix.DefaultMessageFactory;
> import quickfix.FileLogFactory;
> import quickfix.FileStoreFactory;
> import quickfix.Message.Header;
> import quickfix.MessageFactory;
> import quickfix.Session;
> import quickfix.SessionID;
> import quickfix.SessionNotFound;
> import quickfix.SessionSettings;
> import quickfix.SocketInitiator;
> import quickfix.field.BeginString;
> import quickfix.field.HeartBtInt;
> import quickfix.field.MDEntryType;
> import quickfix.field.MDReqID;
> import quickfix.field.MarketDepth;
> import quickfix.field.MsgType;
> import quickfix.field.NoMDEntryTypes;
> import quickfix.field.ResetSeqNumFlag;
> import quickfix.field.SenderCompID;
> import quickfix.field.SubscriptionRequestType;
> import quickfix.field.Symbol;
> import quickfix.field.TargetCompID;
> import quickfix.fix42.Message;
>
> public class FastmatchMDRequest {
> public static void main(String[] args) {
> SocketInitiator socketInitiator = null;
> try {
> SessionSettings sessionSettings = new
> SessionSettings("/home/ec2-user/fastmatch_server_new/FIXQuote2.cfg");
> Application application = new TestMarketdataRequest();
> FileStoreFactory fileStoreFactory = new
> FileStoreFactory(sessionSettings);
> FileLogFactory logFactory = new
> FileLogFactory(sessionSettings);
> MessageFactory messageFactory = new DefaultMessageFactory();
> socketInitiator = new SocketInitiator(application,
> fileStoreFactory, sessionSettings, logFactory,
> messageFactory);
> socketInitiator.start();
> SessionID sessionId = socketInitiator.getSessions().get(0);
> sendMarkeDataRequest(sessionId);
> int i = 0;
> do {
> try {
> Thread.sleep(1000);
> System.out.println(socketInitiator.isLoggedOn());
> } catch (InterruptedException e) {
> e.printStackTrace();
> }
> i++;
> } while ((!socketInitiator.isLoggedOn()) && (i < 30));
> } catch (ConfigError e) {
> e.printStackTrace();
> } catch (SessionNotFound e) {
> e.printStackTrace();
> } catch (Exception exp) {
> exp.printStackTrace();
> } finally {
> if (socketInitiator != null) {
> socketInitiator.stop(true);
> }
> }
> }
> private static void sendMarkeDataRequest(SessionID sessionId)
> throws SessionNotFound {
> 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);
> }
> }
> }
>
>
> and this is my application for quickfixj
>
> package com.dxtr.marketdatarequest.fastmatchmarketdata;
>
> import quickfix.*;
> import quickfix.Message.Header;
> import quickfix.field.*;
> import quickfix.fix42.*;
> import quickfix.fix42.Message;
> import quickfix.MessageFactory;
>
> public class TestMarketdataRequest implements Application {
>
> 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 {
> // TODO Auto-generated method stub
> System.out.println("Successfully called fromApp for sessionId : "
> + message);
> }
> 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
> System.out.println("Successfully logged on for sessionId : " + sessionID);
> }
>
> 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
> System.out.println("Inside toAdmin");
> }
>
> public void toApp(quickfix.Message message, SessionID sessionID) throws
> DoNotSend {
> // TODO Auto-generated method stub
> System.out.println("Message : " + message + " for sessionid : " +
> sessionID);
> }
>
> public void onMessage(MarketDataIncrementalRefresh message, SessionID
> sessionID)
> throws FieldNotFound, UnsupportedMessageType,
> IncorrectTagValue {
> System.out.println("Inside onMessage for New Order Single" +
> message
> + sessionID);
> }
> 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);
> }
>
> }
>
> so how to fix my problem ? please help me for fix my problem. your help
> very appreciate
>
> 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
>
> ***********************************************************************************************************************************************************************
> This email, its contents and any files attached are a confidential
> communication and are intended only for the named addressees indicated in
> the message. If you are not the named addressee or if you have received
> this email in error, you may not, without the consent of First Derivatives,
> copy, use or rely on any information or attachments in any way. Please
> notify the sender by return email and delete it from your email system.
> Unless separately agreed, First Derivatives does not accept any
> responsibility for the accuracy or completeness of the contents of this
> email or its attachments. Please note that any views, opinion or advice
> contained in this communication are those of the sending individual and not
> those of First Derivatives and First Derivatives shall have no liability
> whatsoever in relation to this communication (or its content) unless
> separately agreed.
>
> ***********************************************************************************************************************************************************************
>
>
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
|
|
From: Christoph J. <chr...@ma...> - 2020-03-30 12:55:43
|
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 > |
|
From: Fuad A. <fua...@gm...> - 2020-03-30 12:46:14
|
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 |
|
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: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: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: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: 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: 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: 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: 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 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: 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: 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: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: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: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 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-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: 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
>
>
|