{"record":{"id":"4f8ac629e1e7c955","repo":"gradle/gradle","slug":"failed-to-normalize-content-of-s","errorCode":null,"errorMessage":"Failed to normalize content of '%s'.","messagePattern":"Failed to normalize content of '(.+?)'\\.","errorType":"exception","errorClass":"UncheckedIOException","httpStatus":null,"severity":"error","filePath":"platforms/core-execution/normalization-java/src/main/java/org/gradle/internal/fingerprint/classpath/impl/ClasspathFingerprintingStrategy.java","lineNumber":235,"sourceCode":"        }\n\n        /**\n         * Returns either the normalized content hash of the given regular file,\n         * or {@code null} if a resource filter has filtered the file out.\n         */\n        @Nullable\n        private HashCode hashContent(RegularFileSnapshot fileSnapshot, RelativePathSupplier relativePath) {\n            RegularFileSnapshotContext fileSnapshotContext = new DefaultRegularFileSnapshotContext(() -> Iterables.toArray(relativePath.getSegments(), String.class), fileSnapshot);\n            try {\n                if (ZipHasher.isZipFile(fileSnapshotContext.getSnapshot().getName())) {\n                    return cacheService.hashFile(fileSnapshotContext, zipHasher, zipHasherConfigurationHash);\n                } else if (relativePath.isRoot()) {\n                    return nonZipFingerprintingStrategy.determineNonJarFingerprint(fileSnapshot.getHash());\n                } else {\n                    return classpathResourceHasher.hash(fileSnapshotContext);\n                }\n            } catch (IOException e) {\n                throw new UncheckedIOException(failedToNormalize(fileSnapshot), e);\n            } catch (UncheckedIOException e) {\n                throw new UncheckedIOException(failedToNormalize(fileSnapshot), e.getCause());\n            }\n        }\n\n        private String failedToNormalize(RegularFileSnapshot snapshot) {\n            return String.format(\"Failed to normalize content of '%s'.\", snapshot.getAbsolutePath());\n        }\n    }\n\n    @Override\n    public FingerprintHashingStrategy getHashingStrategy() {\n        return FingerprintHashingStrategy.KEEP_ORDER;\n    }\n}\n","sourceCodeStart":217,"sourceCodeEnd":251,"githubUrl":"https://github.com/gradle/gradle/blob/534f27719b66953f95cc907aae7f2c1b12f5482d/platforms/core-execution/normalization-java/src/main/java/org/gradle/internal/fingerprint/classpath/impl/ClasspathFingerprintingStrategy.java#L217-L251","documentation":"Error \"Failed to normalize content of '%s'.\" thrown in gradle/gradle.","triggerScenarios":"Thrown at platforms/core-execution/normalization-java/src/main/java/org/gradle/internal/fingerprint/classpath/impl/ClasspathFingerprintingStrategy.java:235 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Normalizing the classpath entry content failed. Check that the jar file is valid and readable; see the nested cause."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"534f27719b66953f95cc907aae7f2c1b12f5482d","analyzedAt":"2026-08-22T08:09:12.375Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}