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

IoSessionInitiator sometimes tries to log null messages in case of IOExceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Description

      If there's an IOException in IoSessionInitator that's actually a java.net.ConnectionException, sometimes QFJ gets in a situation when it's trying to log an exception with NULL message.
      If you have JDBC log configured you end up having with JDBC errors since the log tables aren't nullable.

      This usually happens when you pull a network plug out from the server, and the intiator can't connect to it.

      Stack trace:
      com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'text' cannot be null
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
      <snip>
      at quickfix.JdbcLog.insert(JdbcLog.java:90)
      at quickfix.JdbcLog.onEvent(JdbcLog.java:52)
      at quickfix.CompositeLog.onEvent(CompositeLog.java:79)
      at quickfix.mina.initiator.IoSessionInitiator$ConnectTask.connect(IoSessionInitiator.java:136)

        Attachments

          Activity

            People

            • Assignee:
              toli Toli Kuznets
              Reporter:
              toli Toli Kuznets
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: