{"record":{"id":"8c97d2e5cbcf4031","repo":"apache/hadoop","slug":"configuration-classname-not-defined-accessible","errorCode":null,"errorMessage":"Configuration  {className} not defined/accessible.","messagePattern":"Configuration  (.+?) not defined/accessible\\.","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java","lineNumber":255,"sourceCode":"   * configuration object is loaded to retrieve token configuration as specified\n   * is documentation.\n   *\n   * Custom token management takes the higher precedence during initialization.\n   *\n   * @param conf Configuration object\n   * @return null if the no custom {@link AzureADTokenProvider} token management\n   * is specified.\n   * @throws IOException if failed to initialize token provider.\n   */\n  protected synchronized AzureADTokenProvider getCustomAccessTokenProvider(\n      Configuration conf) throws IOException {\n    String className = getNonEmptyVal(conf, AZURE_AD_TOKEN_PROVIDER_CLASS_KEY);\n\n    Class<? extends AzureADTokenProvider> azureADTokenProviderClass =\n        conf.getClass(AZURE_AD_TOKEN_PROVIDER_CLASS_KEY, null,\n            AzureADTokenProvider.class);\n    if (azureADTokenProviderClass == null) {\n      throw new IllegalArgumentException(\n          \"Configuration  \" + className + \" \" + \"not defined/accessible.\");\n    }\n\n    azureTokenProvider = ReflectionUtils\n        .newInstance(azureADTokenProviderClass, conf);\n    if (azureTokenProvider == null) {\n      throw new IllegalArgumentException(\"Failed to initialize \" + className);\n    }\n\n    azureTokenProvider.initialize(conf);\n    return azureTokenProvider;\n  }\n\n  private AccessTokenProvider getAccessTokenProvider(Configuration config)\n      throws IOException {\n    Configuration conf = ProviderUtils.excludeIncompatibleCredentialProviders(\n        config, AdlFileSystem.class);\n    TokenProviderType type = conf.getEnum(","sourceCodeStart":237,"sourceCodeEnd":273,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure-datalake/src/main/java/org/apache/hadoop/fs/adl/AdlFileSystem.java#L237-L273","documentation":"Error \"Configuration  {className} not defined/accessible.\" thrown in apache/hadoop.","triggerScenarios":"ADL filesystem fails to load a configured class during initialization.","commonSituations":"See trigger scenarios.","solutions":["Ensure the named class is on the classpath and accessible (public constructor).","Check the configuration key naming the class for typos."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}