$ git clone https://github.com/spring-projects/spring-data-examples
$ cd spring-data-examples/jpa/jpa21
$ git checkout hibernate-521
$ mvn clean test
…
Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 3.727 sec <<< FAILURE! - in example.springdata.jpa.storedprocedures.UserRepositoryIntegrationTests
invokeDerivedStoredProcedure(example.springdata.jpa.storedprocedures.UserRepositoryIntegrationTests) Time elapsed: 0.064 sec <<< ERROR!
java.lang.NullPointerException: null
at org.hibernate.query.internal.AbstractProducedQuery.getParameters(AbstractProducedQuery.java:620)
at org.springframework.data.jpa.repository.query.QueryUtils.hasNamedParameter(QueryUtils.java:405)
at org.springframework.data.jpa.repository.query.ParameterBinder.hasNamedParameter(ParameterBinder.java:155)
at org.springframework.data.jpa.repository.query.ParameterBinder.bind(ParameterBinder.java:137)
at org.springframework.data.jpa.repository.query.ParameterBinder.bind(ParameterBinder.java:100)
at org.springframework.data.jpa.repository.query.StoredProcedureJpaQuery.doCreateQuery(StoredProcedureJpaQuery.java:89)
at org.springframework.data.jpa.repository.query.StoredProcedureJpaQuery.createQuery(StoredProcedureJpaQuery.java:80)
at org.springframework.data.jpa.repository.query.JpaQueryExecution$ProcedureExecution.doExecute(JpaQueryExecution.java:299)
at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:78)
at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:102)
at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:92)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:482)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:460)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:136)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy71.plus1inout(Unknown Source)
at example.springdata.jpa.storedprocedures.UserRepositoryIntegrationTests.invokeDerivedStoredProcedure(UserRepositoryIntegrationTests.java:58)
…