You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::cerr << "Sometimes some ETP server require a trailing slash at the end of their URL" << std::endl;
157
+
std::cerr << "Sometimes some ETP server require a trailing slash at the end of their URL. Did you also check your optional \"data-partition-id\" additional Header Field?" << std::endl;
std::cerr << "Received a message with id " << receivedMh.messageId << " for which non protocol handlers is associated. Protocol " << receivedMh.protocol << std::endl;
130
-
send(ETP_NS::EtpHelpers::buildSingleMessageProtocolException(4, "The agent does not support the protocol " + std::to_string(receivedMh.protocol) + " identified in a message header."), receivedMh.messageId, 0x02);
130
+
std::cerr << "Received a message with id " << receivedMh.messageId << " for which non protocol handlers is associated. Protocol " << receivedMhProtocol << std::endl;
131
+
send(ETP_NS::EtpHelpers::buildSingleMessageProtocolException(4, "The agent does not support the protocol " + std::to_string(receivedMhProtocol) + " identified in a message header."), receivedMh.messageId, 0x02);
throwstd::logic_error("You did not register any transaction protocol handlers.");
312
313
}
313
314
if (handlers->isInAnActiveTransaction()) {
314
-
throwstd::logic_error("You cannot start a transaction before the current transaction is rolled back or committed. ETP1.2 intentionally supports a single open transaction on a session.");
315
+
throwstd::logic_error("You cannot start a transaction before the current transaction is rolled back or committed. ETP1.2 intentionally supports a single opened transaction on a session.");
std::cerr << "Request Session message must be received on a server session." << std::endl;
123
-
}
124
-
125
-
// Check format
126
-
if (std::find(rs.supportedFormats.begin(), rs.supportedFormats.end(), "xml") == rs.supportedFormats.end()) {
127
-
session->send(ETP_NS::EtpHelpers::buildSingleMessageProtocolException(21, "Per the ETP1.2 official specification, \"xml\" format MUST BE supported."), correlationId, 0x02);
128
-
session->close();
129
-
return;
130
-
}
131
-
132
-
// Check requested protocols
133
-
auto supportedProtocols = serverInitializationParams->makeSupportedProtocols();
session->send(ETP_NS::EtpHelpers::buildSingleMessageProtocolException(2, "The server does not support any of the requested protocols."), correlationId, 0x02);
153
-
session->close();
154
-
return;
155
-
}
156
-
157
-
// Check requested dataobjects
158
-
auto supportedDataobjects = serverInitializationParams->makeSupportedDataObjects();
0 commit comments