[QFJ-126] Unhelpful Error message Created: 17/Jan/07  Updated: 15/Nov/12  Resolved: 11/Feb/07

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

Type: Bug Priority: Minor
Reporter: Christopher Hurst Assignee: Steve Bate
Resolution: Not a bug Votes: 0
Labels: None
Environment:

Windows \ Quick fix 1.5 (was in 1.4 also)



 Description   

When the mina IO session fails in certain circumstances you get the error message (the simplest way to reproduce is to use incompatiable mina jars but I think I have seen it can on other cartain socket errors, problem was I needed to be in the degugger to catch it before I added the new error message )

Connection failed: null

which isn't very useful in quickfix.mina.initiator.IOSessionInitiator I changed the code

} catch (Throwable e)

{ quickfixSession.getLog().onEvent("Connection failed: " + e.getMessage()); }

to

catch (IncompatibleClassChangeError e) {
quickfixSession.getLog().onEvent("Libs incompatiable check jar/zip versions. " + e);
} catch (Throwable e) {
// CH e.getMessage returns null unfortunately
quickfixSession.getLog().onEvent("Connection failed: " + e);
e.printStackTrace();
}



 Comments   
Comment by Steve Bate [ 11/Feb/07 ]

The connection failures are printed differently in 1.1.0. I'm not planning to patch the 1.0.x branch since 1.1.x will soon replace it. Thanks for the report.

Generated at Sat Nov 23 00:11:31 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.