{"record":{"id":"3609b462828a1a10","repo":"hibernate/hibernate-orm","slug":"unrecognized-path-expression-type","errorCode":null,"errorMessage":"Unrecognized path expression type '{}'","messagePattern":"Unrecognized path expression type '(.+?)'","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/query/restriction/JakartaDataRestriction.java","lineNumber":429,"sourceCode":"\t\telse {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Unrecognized expression type '\" + expression.getClass().getName() + \"'\" );\n\t\t}\n\t}\n\n\t/**\n\t * Adapt the given {@linkplain jakarta.data.expression.NavigableExpression Jakarta Data path}\n\t * to a {@linkplain jakarta.persistence.criteria.Path JPA criteria path}.\n\t */\n\tprivate static jakarta.persistence.criteria.Path<?> path(NavigableExpression<?, ?> expression, Root<?> root) {\n\t\tif ( expression instanceof Attribute<?> attribute ) {\n\t\t\treturn root.get( attribute.name() );\n\t\t}\n\t\telse if ( expression instanceof Path<?, ?> path ) {\n\t\t\treturn path( path.expression(), root ).get( path.attribute().name() );\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Unrecognized path expression type '\" + expression.getClass().getName() + \"'\" );\n\t\t}\n\t}\n\n\t/**\n\t * Adapt the given {@linkplain TextFunctionExpression Jakarta Data text function}\n\t * to a {@linkplain Expression JPA criteria expression}.\n\t */\n\tprivate static Expression<?> textFunction(\n\t\t\tTextFunctionExpression<?> function,\n\t\t\tRoot<?> root,\n\t\t\tCriteriaBuilder builder) {\n\t\tfinal var arguments = function.arguments();\n\t\treturn switch ( function.name() ) {\n\t\t\tcase TextFunctionExpression.LOWER ->\n\t\t\t\t\tbuilder.lower( stringExpression( arguments.get( 0 ), root, builder ) );\n\t\t\tcase TextFunctionExpression.UPPER ->\n\t\t\t\t\tbuilder.upper( stringExpression( arguments.get( 0 ), root, builder ) );","sourceCodeStart":411,"sourceCodeEnd":447,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/query/restriction/JakartaDataRestriction.java#L411-L447","documentation":"Error \"Unrecognized path expression type '{}'\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate query API is violated: Unrecognized path expression type '<value>'","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 path expression type is not recognized. Use a supported path expression in the restriction."],"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"}