throw new AMQException(null, "No locales sent from server, passed: " + locales, null);
}
session.getStateManager().changeState(AMQState.CONNECTION_NOT_TUNED);
FieldTable clientProperties = FieldTableFactory.newFieldTable();
clientProperties.setString(ConnectionStartProperties.CLIENT_ID_0_8,
session.getClientID());
clientProperties.setString(ConnectionStartProperties.PRODUCT,
QpidProperties.getProductName());
clientProperties.setString(ConnectionStartProperties.VERSION_0_8,
QpidProperties.getReleaseVersion());
clientProperties.setString(ConnectionStartProperties.PLATFORM,
ConnectionStartProperties.getPlatformInfo());
clientProperties.setString(ConnectionStartProperties.PROCESS,
System.getProperty(ClientProperties.PROCESS_NAME, "Qpid Java Client"));
clientProperties.setInteger(ConnectionStartProperties.PID,
ConnectionStartProperties.getPID());
FieldTable serverProperties = body.getServerProperties();
ConnectionURL url = getConnectionURL(session);
_closeWhenNoRouteHelper.setClientProperties(clientProperties, url, serverProperties);
ConnectionStartOkBody connectionStartOkBody = session.getMethodRegistry().createConnectionStartOkBody(clientProperties,new AMQShortString(mechanism),saslResponse,new AMQShortString(locales));
// AMQP version change: Hardwire the version to 0-8 (major=8, minor=0)