You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Mikhail Petrov (Jira)" <ji...@apache.org> on 2022/08/14 09:43:00 UTC
[jira] [Created] (IGNITE-17525) [Extensions] Spring Data explicit queries with dynamic projection argument fails with NPE.
Mikhail Petrov created IGNITE-17525:
---------------------------------------
Summary: [Extensions] Spring Data explicit queries with dynamic projection argument fails with NPE.
Key: IGNITE-17525
URL: https://issues.apache.org/jira/browse/IGNITE-17525
Project: Ignite
Issue Type: Bug
Reporter: Mikhail Petrov
Invocation of the following method declared in Spring Data repository
{code:java}
@Query("SELECT * FROM Person WHERE secondName = ?")
public <P> P testQuery(Class<P> dynamicProjection, String val);
{code}
fails with NullPointerException.
{code:java}
java.lang.NullPointerException
at org.apache.ignite.springdata.repository.query.IgniteRepositoryQuery.extractBindableValues(IgniteRepositoryQuery.java:699)
at org.apache.ignite.springdata.repository.query.IgniteRepositoryQuery.prepareQuery(IgniteRepositoryQuery.java:727)
at org.apache.ignite.springdata.repository.query.IgniteRepositoryQuery.execute(IgniteRepositoryQuery.java:343)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:619)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:606)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy63.testQuery(Unknown Source)
at org.apache.ignite.springdata.IgniteSpringDataCrudSelfTest.test(IgniteSpringDataCrudSelfTest.java:382)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2423)
at java.lang.Thread.run(Thread.java:750)
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)