/** * Returns the msg type specified in a FIX message string. * * @param message the FIX message string * @return the message type * @throws MessageParseError (QF JNI compatibility) */ public static MsgType identifyType(String message) throws MessageParseError { try { return new MsgType(MessageUtils.getMessageType(message)); } catch (final InvalidMessage e) { throw new MessageParseError(e.getMessage(), e); } }
/** * Returns the msg type specified in a FIX message string. * * @param message the FIX message string * @return the message type * @throws MessageParseError (QF JNI compatibility) */ public static MsgType identifyType(String message) throws MessageParseError { try { return new MsgType(MessageUtils.getMessageType(message)); } catch (final InvalidMessage e) { throw new MessageParseError(e.getMessage(), e); } }
/** * Returns the msg type specified in a FIX message string. * * @param message the FIX message string * @return the message type * @throws MessageParseError (QF JNI compatibility) */ public static MsgType identifyType(String message) throws MessageParseError { try { return new MsgType(MessageUtils.getMessageType(message)); } catch (final InvalidMessage e) { throw new MessageParseError(e.getMessage(), e); } }
} catch (InvalidMessage e) { Messages.ERROR_JMS_MESSAGE_CONVERSION.error(this, e.getMessage()); throw new MessageConversionException(Messages.ERROR_JMS_MESSAGE_CONVERSION.getText(e.getMessage()), e);
@Override public void messageReceived(IoSession ioSession, Object message) throws Exception { String messageString = (String) message; SessionID remoteSessionID = MessageUtils.getReverseSessionID(messageString); Session quickFixSession = findQFSession(ioSession, remoteSessionID); if (quickFixSession != null) { final Log sessionLog = quickFixSession.getLog(); sessionLog.onIncoming(messageString); try { Message fixMessage = parse(quickFixSession, messageString); processMessage(ioSession, fixMessage); } catch (InvalidMessage e) { if (MsgType.LOGON.equals(MessageUtils.getMessageType(messageString))) { sessionLog.onErrorEvent("Invalid LOGON message, disconnecting: " + e.getMessage()); ioSession.closeNow(); } else { sessionLog.onErrorEvent("Invalid message: " + e.getMessage()); } } } else { log.error("Disconnecting; received message for unknown session: " + messageString); ioSession.closeNow(); } }
final Message fixMessage = e.getFixMessage(); if ( fixMessage != null ) { sessionLog.onErrorEvent("Processing garbled message: " + e.getMessage()); processMessage(ioSession, fixMessage); return; sessionLog.onErrorEvent("Invalid LOGON message, disconnecting: " + e.getMessage()); ioSession.closeNow(); } else { sessionLog.onErrorEvent("Invalid message: " + e.getMessage());
final Message fixMessage = e.getFixMessage(); if ( fixMessage != null ) { sessionLog.onErrorEvent("Processing garbled message: " + e.getMessage()); processMessage(ioSession, fixMessage); return; sessionLog.onErrorEvent("Invalid LOGON message, disconnecting: " + e.getMessage()); ioSession.closeNow(); } else { sessionLog.onErrorEvent("Invalid message: " + e.getMessage());
throw new AxisFault(e.getMessage());
getLog().onErrorEvent("Processing garbled message: " + e.getMessage()); generateReject(message, "Message failed basic validity check"); } else {
getLog().onErrorEvent("Processing garbled message: " + e.getMessage()); generateReject(message, "Message failed basic validity check"); } else {