Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-47

no sample config file for sample code

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Not a bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The sample code on http://www.quickfixj.org/quickfixj/usermanual/usage/application.html does not include the configuration file.

      Using the configuration file found on http://www.quickfixj.org/quickfixj/usermanual/usage/configuration.html returns the following errors when executing the sample code:

      Exception in thread "main" quickfix.ConfigError: No acceptor sessions found in settings.
      at quickfix.mina.acceptor.AbstractSocketAcceptor.createSessions(AbstractSocketAcceptor.java:135)
      at quickfix.mina.acceptor.AbstractSocketAcceptor.<init>(AbstractSocketAcceptor.java:62)
      at quickfix.mina.acceptor.AbstractSocketAcceptor.<init>(AbstractSocketAcceptor.java:78)
      at quickfix.SocketAcceptor.<init>(SocketAcceptor.java:36)
      at xxx.Brook.mainAcceptor(Brook.java:228)
      at xxx.Brook.main(Brook.java:169)

      {{{
      public static void main(String args[]) throws Exception {
      if(args.length != 1) return;
      String fileName = args[0];

      Application application = new Application();
      Settings settings = new Settings(new FileInputStream(fileName));
      MessageStoreFactory storeFactory = new FileStoreFactory(settings);
      LogFactory logFactory = new FileLogFactory(settings);
      MessageFactory messageFactory = new DefaultMessageFactory();

      // ERROR occurs on following line
      Acceptor acceptor = new SocketAcceptor (application, storeFactory, settings, logFactory, messageFactory);
      acceptor.start();
      // while( condition == true )

      { do something; }

      acceptor.stop();
      }
      }}}

        Attachments

          Activity

            People

            • Assignee:
              admin Steve Bate
              Reporter:
              markuskhouri Markus Khouri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: