{"record":{"id":"76042d74b1e0a1c5","repo":"HMCL-dev/HMCL","slug":"mcbbsmodpackmanifest-manifesttype-must-be-minecra","errorCode":null,"errorMessage":"McbbsModpackManifest.manifestType must be 'minecraftModpack'","messagePattern":"McbbsModpackManifest\\.manifestType must be 'minecraftModpack'","errorType":"validation","errorClass":"JsonParseException","httpStatus":null,"severity":"error","filePath":"HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackManifest.java","lineNumber":159,"sourceCode":"@Override\npublic void validate() throws JsonParseException, TolerableValidationException {\n    if (!MANIFEST_TYPE.equals(manifestType))\n        throw new JsonParseException(\"McbbsModpackManifest.manifestType must be 'minecraftModpack'\");\n    if (files == null)\n        throw new JsonParseException(\"McbbsModpackManifest.files cannot be null\");\n    if (addons == null)\n        throw new JsonParseException(\"McbbsModpackManifest.addons cannot be null\");\n}","sourceCodeStart":141,"sourceCodeEnd":177,"githubUrl":"https://github.com/HMCL-dev/HMCL/blob/24702dc5a0214034f4c27166d5fd30cad08cec19/HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackManifest.java#L141-L177","documentation":"Post-deserialization validation of an MCBBS modpack manifest: the manifestType field must equal 'minecraftModpack'. A different value means the archive is either not an MCBBS Minecraft modpack or a different manifest kind, so import is aborted.","triggerScenarios":"Thrown at HMCLCore/src/main/java/org/jackhuang/hmcl/modpack/mcbbs/McbbsModpackManifest.java:159 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the archive is a valid MCBBS Minecraft modpack (mcbbs.packmeta with manifestType minecraftModpack)","Check that the manifest file is not truncated or edited incorrectly"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24702dc5a0214034f4c27166d5fd30cad08cec19","analyzedAt":"2026-09-10T12:36:46.680Z","contentChangedAt":"2026-09-10T12:36:46.680Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}