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

Exception when initiating a session using mina-core-0.9.3.jar

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 1.0.0 Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows Server 2003, Java 1.5

      Description

      When executing this code:

      // make sure we have no ongoing efforts...
      m_session = null;
      m_initiator = null;

      // now set up our QuickFIX application and initiator...
      try {
      SessionSettings v_settings = new SessionSettings( m_settings );
      m_settings.reset(); // so we can use them again as needed...
      MessageStoreFactory v_store = new JdbcStoreFactory( v_settings );
      LogFactory v_log = new JdbcLogFactory( v_settings );
      MessageFactory v_msg = new DefaultMessageFactory();
      >>>>>> m_initiator = new ThreadedSocketInitiator( m_app, v_store, v_settings, v_log, v_msg );
      m_initiator.start();
      ArrayList v_sessions = m_initiator.getSessions();
      if( v_sessions.size() > 0 )

      { m_session = Session.lookupSession(( SessionID) v_sessions.get( 0 ) ); }

      else

      { log.error( "No sessions exist after starting initiator!" ); }

      m_sm.onInitiatorStarted();
      }

      I get this exception:

      java.lang.NoClassDefFoundError: org/apache/mina/protocol/ProtocolProvider

      On the line of code indicated. When I substitute mina-0.8.2.jar in the classpath, this code works.

      Tom...

        Attachments

          Activity

            People

            • Assignee:
              admin Steve Bate
              Reporter:
              slightlyloony Tom Dilatush
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: