Hi , The issue is with the char – in the query string if we remove that it is able to get the parameters, i think the query parser has an issue with --, that was not the case in version 5.0.0, the test case will be to add character like – in your native query, that will make the findParameterRegistration(BaseQueryImpl.java:501) thrown because of the parameterRegistrations is null in this case. @SuppressWarnings("unchecked") protected <X> ParameterRegistration<X> findParameterRegistration(int parameterPosition) { if ( parameterRegistrations != null ) {// will met in case of query have – in its text for ( ParameterRegistration<?> param : parameterRegistrations ) { if ( param.getPosition() == null ) { continue; } if ( parameterPosition == param.getPosition() ) { return (ParameterRegistration<X>) param; } } } throw new IllegalArgumentException( "Parameter with that position [" + parameterPosition + "] did not exist" ); } |