{"record":{"id":"918d0b6626e76fdb","repo":"hibernate/hibernate-orm","slug":"no-path-or-attribute","errorCode":null,"errorMessage":"No path or attribute","messagePattern":"No path or attribute","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/query/specification/internal/SimpleProjectionSpecificationImpl.java","lineNumber":118,"sourceCode":"\t}\n\n\t@Override\n\t@Nullable\n\tpublic String getName() {\n\t\treturn null;\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic Class<X> getResultType() {\n\t\tif ( path != null ) {\n\t\t\treturn path.getType();\n\t\t}\n\t\telse if ( attribute != null ) {\n\t\t\treturn attribute.getJavaType();\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalStateException( \"No path or attribute\" );\n\t\t}\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic Map<String, Object> getHints() {\n\t\treturn Collections.emptyMap();\n\t}\n\n\t@Override\n\t@Nullable\n\tpublic Timeout getTimeout() {\n\t\treturn null;\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic String getEntityGraphName() {","sourceCodeStart":100,"sourceCodeEnd":136,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/query/specification/internal/SimpleProjectionSpecificationImpl.java#L100-L136","documentation":"Error \"No path or attribute\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate query API is violated: No path or attribute","commonSituations":"Application code or configuration calls the query API in a way that violates its documented contract; the interpolated values in the message identify the offending input.","solutions":["No path or attribute was supplied for the projection. Provide an attribute path to project."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}