{"record":{"id":"0d6e1b26bdd331c1","repo":"hibernate/hibernate-orm","slug":"illegal-domain-path-ctx-gettext","errorCode":null,"errorMessage":"Illegal domain path '\" + ctx.getText() + \"'","messagePattern":"Illegal domain path '\" \\+ ctx\\.getText\\(\\) \\+ \"'","errorType":"exception","errorClass":"ParsingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java","lineNumber":5826,"sourceCode":"\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tnew SqmLiteral<>(\n\t\t\t\t\t\t\t\t\t\t\t\t1,\n\t\t\t\t\t\t\t\t\t\t\t\tnodeBuilder().getIntegerType(),\n\t\t\t\t\t\t\t\t\t\t\t\tnodeBuilder()\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tnodeBuilder()\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t),\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\tqueryEngine()\n\t\t\t\t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new SemanticException( \"Slice operator applied to expression which is not a string or SQL array\", query );\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ParsingException( \"Illegal domain path '\" + ctx.getText() + \"'\" );\n\t\t}\n\t}\n\n\tprivate SemanticPathPart visitIndexedPathAccessFragment(\n\t\t\tSemanticPathPart pathPart,\n\t\t\tHqlParser.IndexedPathAccessFragmentContext idxCtx) {\n\t\tif ( idxCtx == null ) {\n\t\t\treturn pathPart;\n\t\t}\n\n\t\tfinal var indexExpression = (SqmExpression<?>) idxCtx.expression().accept(this );\n\t\tfinal boolean hasIndexContinuation = idxCtx.DOT() != null;\n\t\tfinal var indexedPath =\n\t\t\t\tpathPart.resolveIndexedAccess( indexExpression, !hasIndexContinuation, this );\n\t\tif ( hasIndexContinuation ) {\n\t\t\tdotIdentifierConsumerStack.push(\n\t\t\t\t\tnew BasicDotIdentifierConsumer( indexedPath, this ) {\n\t\t\t\t\t\t@Override","sourceCodeStart":5808,"sourceCodeEnd":5844,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/query/hql/internal/SemanticQueryBuilder.java#L5808-L5844","documentation":"Error \"Illegal domain path '\" + ctx.getText() + \"'\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate query API is violated: Illegal domain path '\" + ctx.getText() + \"'","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":["The domain path is illegal. Check that each path step exists on the previous type and that the root is a valid entity or identification variable."],"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"}