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

"Dangling meta character '*' near index 0" Exception when trying to use new ReconnectInterval syntax from QFJ-419

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.5.3
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Solaris x86

      Description

      I set ReconnectInterval in the DEFAULT section to the same string as the example in QFJ-419
      ReconnectInterval=6*5;5*15;60

      When I run the program I get the following stack trace

      quickfix.ConfigError: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
      *
      ^
      at quickfix.DefaultSessionFactory.getLogonIntervalsInSeconds(DefaultSessionFactory.java:339)
      at quickfix.DefaultSessionFactory.create(DefaultSessionFactory.java:176)
      at quickfix.mina.SessionConnector.createSession(SessionConnector.java:140)
      at quickfix.mina.initiator.AbstractSocketInitiator.createSessions(AbstractSocketInitiator.java:160)
      at quickfix.mina.initiator.AbstractSocketInitiator.createSessionInitiators(AbstractSocketInitiator.java:81)
      at quickfix.SocketInitiator.initialize(SocketInitiator.java:85)
      at quickfix.SocketInitiator.start(SocketInitiator.java:65)
      at com.cboe.driver.LogonDOSApplication.main(LogonDOSApplication.java:104)
      Caused by: java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
      *
      ^
      at java.util.regex.Pattern.error(Pattern.java:1713)
      at java.util.regex.Pattern.sequence(Pattern.java:1878)
      at java.util.regex.Pattern.expr(Pattern.java:1752)
      at java.util.regex.Pattern.compile(Pattern.java:1460)
      at java.util.regex.Pattern.<init>(Pattern.java:1133)
      at java.util.regex.Pattern.compile(Pattern.java:823)
      at java.lang.String.split(String.java:2292)
      at java.lang.String.split(String.java:2334)
      at quickfix.SessionSettings.parseSettingReconnectInterval(SessionSettings.java:742)
      at quickfix.DefaultSessionFactory.getLogonIntervalsInSeconds(DefaultSessionFactory.java:336)
      ... 7 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chrjohn Christoph John
                Reporter:
                andyf Andy Faibishenko
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: