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

Occasional NPE in block method during acceptor start.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.0.1, 1.0.2
    • Fix Version/s: 1.0.3
    • Component/s: Networking
    • Labels:
      None

      Description

      From Toli Kuznets...

      I have a basic app that uses QFJ to communicate. I have a bunch of uni
      tests running continiously, and they've been passing with the app
      linked to 1.0.0-final of QuickFix/J.

      However, as soon as i tried switching to 1.0.2 i get the following error:
      Exception in thread "QFJ Socket Acceptor 126f75b" java.lang.NullPointerException
      at quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:131)
      at quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:70)
      at quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:86)
      at java.lang.Thread.run(Unknown Source)

      There's no nested exception, and it's a thread created by QFJ and not my app.

      Switching the code back to using 1.0.0-final fixes the problem. I
      never used 1.0.1 so i can't tell if the problem manifests itself there
      as well.

      Any ideas on what could be causing this?
      This is happening both on Ubuntu Linux and MacOSX. Not even sure how
      to debug this since the exception is coming from a QFJ/mina code.

      -------------------------------------------------------------------------------------------------------------------------------
      From Joerg Thoennes...

      Steve, the same happened to me. Today I got with version 1.0.1 this error:

      [2006-08-15 17:41:47,472] [INFO ] [quickfix.mina.acceptor.AcceptorIoHandler] (SocketAcceptor-0) MINA
      session created: /192.168.1.8:57611
      [2006-08-15 17:41:47,573] [DEBUG] [FixLogFactory] (AnonymousIoService-1-2)
      FIX.4.2:FixGateway->FixClient: incoming:
      8=FIX.4.2|9=62|35=5|34=1|49=FixClient|52=20060815-15:41:47.540|56=FixGateway|10=091|
      Exception in thread "QFJ Socket Acceptor 992bae" java.lang.NullPointerException
      at
      quickfix.mina.SingleThreadedEventHandlingStrategy$SessionMessageEvent.processMessage(SingleThreadedEventHandlingStrategy.java:131)
      at
      quickfix.mina.SingleThreadedEventHandlingStrategy.block(SingleThreadedEventHandlingStrategy.java:70)
      at
      quickfix.mina.SingleThreadedEventHandlingStrategy$1.run(SingleThreadedEventHandlingStrategy.java:86)
      at java.lang.Thread.run(Thread.java:595)

      If I can reproduce this error tomorrow, I will send you more details.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: