{"record":{"id":"38897412292d18b7","repo":"skylot/jadx","slug":"class-not-found","errorCode":null,"errorMessage":"Class not found: {}","messagePattern":"Class not found: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"jadx-gui/src/main/java/jadx/gui/cache/code/disk/adapters/FieldNodeAdapter.java","lineNumber":32,"sourceCode":"\n\tpublic FieldNodeAdapter(RootNode root) {\n\t\tthis.root = root;\n\t}\n\n\t@Override\n\tpublic void write(DataOutput out, FieldNode value) throws IOException {\n\t\tFieldInfo fieldInfo = value.getFieldInfo();\n\t\tout.writeUTF(fieldInfo.getDeclClass().getRawName());\n\t\tout.writeUTF(fieldInfo.getShortId());\n\t}\n\n\t@Override\n\tpublic FieldNode read(DataInput in) throws IOException {\n\t\tString cls = in.readUTF();\n\t\tString sign = in.readUTF();\n\t\tClassNode clsNode = root.resolveRawClass(cls);\n\t\tif (clsNode == null) {\n\t\t\tthrow new RuntimeException(\"Class not found: \" + cls);\n\t\t}\n\t\tFieldNode fieldNode = clsNode.searchFieldByShortId(sign);\n\t\tif (fieldNode == null) {\n\t\t\tthrow new RuntimeException(\"Field not found: \" + cls + \".\" + sign);\n\t\t}\n\t\treturn fieldNode;\n\t}\n}\n","sourceCodeStart":14,"sourceCodeEnd":41,"githubUrl":"https://github.com/skylot/jadx/blob/e738a26571d02919f01df40de93bc9a44dee4e18/jadx-gui/src/main/java/jadx/gui/cache/code/disk/adapters/FieldNodeAdapter.java#L14-L41","documentation":"Error \"Class not found: {}\" thrown in skylot/jadx.","triggerScenarios":"Thrown at jadx-gui/src/main/java/jadx/gui/cache/code/disk/adapters/FieldNodeAdapter.java:32 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the code cache for the class before resolving the field's declaring class; if absent, rebuild or invalidate the cache entry instead of throwing.","Handle stale cache entries by catching the lookup failure and forcing a re-decompilation of the containing class."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e738a26571d02919f01df40de93bc9a44dee4e18","analyzedAt":"2026-08-14T00:10:24.238Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}