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

acceptor.getSessions() returning empty ArrayList

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Java 7, Windows 7 - x64

      Description

      In QFJ 1.5.2 acceptor.getSessions() is returning an empty array list when previous version (at least 1.4.0, but I'm pretty sure this was working in 1.5.1 as well) are returning non-empty lists.

      For example, the following little code segment (as part of an application)

      Acceptor acceptor = null;
      String configFileName = null;
      try

      { configFileName = args[0]; final SessionSettings sessionSettings = new SessionSettings(new FileInputStream(configFileName)); final MessageStoreFactory storeFactory = new FileStoreFactory(sessionSettings); final LogFactory logFactory = new FileLogFactory(sessionSettings); final MessageFactory messageFactory = new DefaultMessageFactory(); acceptor = new SocketAcceptor(app, storeFactory, sessionSettings, logFactory, messageFactory); log.info("version " + org.quickfixj.Version.getVersion() + ", size " + acceptor.getSessions().size()); }

      given the same config file (describing two acceptor sessions), produces different output with 1.5.2 than with 1.4.0

      DropCopy 20:06:55,087 INFO [main] (DropCopy.java:285) - version Version: 1.5.2, size 0
      DropCopy 20:07:39,103 INFO [main] (DropCopy.java:285) - version Version: 1.4.0, size 2

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dan_marques Dan Marques
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: