[QFJ-13] Exception when initiating a session using mina-core-0.9.3.jar Created: 24/May/06  Updated: 15/Nov/12  Resolved: 25/May/06

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: 1.0.0 Final
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Tom Dilatush Assignee: Steve Bate
Resolution: Not a bug Votes: 0
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...



 Comments   
Comment by Steve Bate [ 24/May/06 ]

Yes, the class indicated doesn't exist in MINA 0.9.3. If you provide a more complete stack trace, it might give some hints about the problem. Is it possible that you accidently have a previous version of QFJ in the class path?

Comment by Steve Bate [ 25/May/06 ]

Tom verified that using an old QF JAR file was the problem.

Generated at Sat Nov 23 10:59:07 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.