java - Implementing a FIX client through QuickFixJ throws NoSuchMethodError -
i relatively new fix , first time trying connect. attempting use quickfixj library connect uat environment have been provided with. using quickfixj-all-1.6.0.jar
i have implemented sample code here , works until socketacceptor.start()
.
here full code sample:
socketacceptor socketacceptor = null; try { sessionsettings executorsettings = new sessionsettings( "quickfixtester/acceptorsettings.txt"); application application = new testtradeappexecutor(); filestorefactory filestorefactory = new filestorefactory( executorsettings); messagefactory messagefactory = new defaultmessagefactory(); filelogfactory filelogfactory = new filelogfactory(executorsettings); socketacceptor = new socketacceptor(application, filestorefactory, executorsettings, filelogfactory, messagefactory); socketacceptor.start(); } catch (configerror e) { e.printstacktrace(); }
the error getting
2312 [main] info quickfix.sessionschedule - [fix.4.4:[sendercompid]->[targetcompid]] weekly, sun 00:00:00-utc - fri 00:00:00-utc executor session created sessionid = fix.4.4:[sendercompid]->[targetcompid] 2327 [main] info quickfix.socketacceptor - sessiontimer started 2371 [main] info quickfix.mina.networkingoptions - socket option: sockettcpnodelay=true 2371 [main] info quickfix.mina.networkingoptions - socket option: socketsynchronouswrites=false 2371 [main] info quickfix.mina.networkingoptions - socket option: socketsynchronouswritetimeout=30000 exception in thread "main" java.lang.nosuchmethoderror: quickfix.mina.message.fixprotocolcodecfactory.addmessagedecoder(ljava/lang/class;)v @ quickfix.mina.message.fixprotocolcodecfactory.<init>(fixprotocolcodecfactory.java:31) @ quickfix.mina.acceptor.abstractsocketacceptor.startacceptingconnections(abstractsocketacceptor.java:109) @ quickfix.socketacceptor.initialize(socketacceptor.java:86) @ quickfix.socketacceptor.start(socketacceptor.java:80) @ quickfixtester.testtradeappexecutorapp.main(testtradeappexecutorapp.java:38)
the "sendercompid->targetcompid" variables provided have been removed sample here.
quickfix.mina.message.fixprotocolcodecfactory.addmessagedecoder(ljava/lang/class;)v thrown within socketacceptor.start method. cant see cause have changed config examples point towards fix uat environment
i cannot understand why method contained in jar throw error, not trying send message @ stage trying open connection. example seems have worked others.
i exact same error using fix client example found here well
have referenced mina-core jar well? in lib directory...
what mina ssl filter? per comment, nosuchmethoderror quickfix.mina implies library not referenced.
Comments
Post a Comment