版本: 7.7-8.9
简而言之,当Elasticsearch无法定位或访问XSD架构文件时,会出现此错误。这可能是由于文件路径不正确、权限不足,或者文件损坏或缺失所致。要解决此问题,您可以验证文件路径并确保其正确,检查文件权限以确保Elasticsearch具有访问权限,或者在文件损坏或缺失时替换该文件。如果文件是通过网络访问的,请确保网络连接稳定。
日志上下文 #
日志 “Could not load XSD schema file” 的类名是 SamlAuthnRequestValidator.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解的人参考:
private static final ThreadLocal<DocumentBuilder> THREAD_LOCAL_DOCUMENT_BUILDER = ThreadLocal.withInitial(() -> {
try {
return SamlFactory.getHardenedBuilder(XSD_FILES);
} catch (Exception e) {
throw new ElasticsearchSecurityException("Could not load XSD schema file", e);
}
});
public SamlAuthnRequestValidator(SamlFactory samlFactory, SamlIdentityProvider idp) {
SamlInit.initialize();





