quickfixj消息工厂使用QF 1.6.0和Java 1.8.0_45产生坏类型上操作数堆栈(q

2019-10-23 10:24发布

Jun 18, 2015 3:26:12 PM quickfix.mina.AbstractIoHandler exceptionCaught
SEVERE: java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    quickfix/fix44/Quote.get(Lquickfix/field/SettlType;)Lquickfix/field/SettlType; @2: invokevirtual
  Reason:
    Type 'quickfix/field/SettlType' (current frame, stack[1]) is not assignable to 'quickfix/CharField'
  Current Frame:
    bci: @2
    flags: { }
    locals: { 'quickfix/fix44/Quote', 'quickfix/field/SettlType' }
    stack: { 'quickfix/fix44/Quote', 'quickfix/field/SettlType' }
  Bytecode:
    0x0000000: 2a2b b600 8257 2bb0                    

有没有办法来处理这个错误,而不必重建quickFIXJ?

Answer 1:

在quickfix邮件列表, 它说的是this is a currently unresolved problem with the 1.6.0-SNAPSHOT version of QF/J. Maybe we will treat all fields with different data types throughout the FIX versions simply as StringField in any case. But this has not been finalized yet. this is a currently unresolved problem with the 1.6.0-SNAPSHOT version of QF/J. Maybe we will treat all fields with different data types throughout the FIX versions simply as StringField in any case. But this has not been finalized yet.

我通过返回的QuickFix 1.5.2解决了这个问题



文章来源: quickfixj message factory produces bad type on operand stack using qf 1.6.0 and java 1.8.0_45