Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Data query method containing both "In" and "Or" keyword expressions throws exception #4

Open
andidev opened this issue May 10, 2016 · 0 comments

Comments

@andidev
Copy link

andidev commented May 10, 2016

Given the Space Class

public class Person {

    String name;
    Integer age;

    @Id
    @SpaceId
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{\n" +
            "  name='" + name + "',\n" +
            "  age=" + age + "\n" +
            '}';
    }
}

...and the Xap Spring Data Repository

public interface PersonRepository extends CrudRepository<Person, String> {

    List<InvoicePremium> findByNameInOrAge(List<String> names, Integer age);

    @Query("name in (?) OR age = ?")
    List<InvoicePremium> findByCustomQuery(List<String> names, Integer age);

}

...and the tests

    @Test
    public void find_by_custom_query_annotation() throws Exception {
        // Given
        Person person1 = new Person();
        person1.setName("Adam");
        person1.setAge(22);
        personRepository.save(person1);

        Person person2 = new Person();
        person2.setName("Eva");
        person2.setAge(20);
        personRepository.save(person2);

        // When
        List<InvoicePremium> premiums = personRepository.findByCustomQuery(Arrays.asList("Abraham", "Moses"), 20);

        // Then
        System.out.println(premiums);
    }

    @Test
    public void find_by_method_name() throws Exception {
        // Given
        Person person1 = new Person();
        person1.setName("Adam");
        person1.setAge(22);
        personRepository.save(person1);

        Person person2 = new Person();
        person2.setName("Eva");
        person2.setAge(20);
        personRepository.save(person2);

        // When
        List<InvoicePremium> premiums = personRepository.findByNameInOrAge(Arrays.asList("Abraham", "Moses"), 20);

        // Then
        System.out.println(premiums);
    }

...both repository methods should return the same result, though this is not true.

Method findByCustomQuery(Arrays.asList("Abraham", "Moses"), 20) correctly returns

[Person{
  name='Eva',
  age=20
}]

... while method findByNameInOrAge(Arrays.asList("Abraham", "Moses"), 20) throws the following exception

org.openspaces.core.ReadMultipleException: Success:0, errors:1, [class com.j_spaces.core.client.sql.SQLQueryException:1
StackTrace: com.j_spaces.core.client.sql.SQLQueryException: Failed to execute SQLQuery : [name in (?, ?) OR age = ?]
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:187)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Select failed; Cause: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:292)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    ... 46 more
Caused by: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:229)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    ... 47 more
Caused by: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.gigaspaces.internal.server.space.ReadMultipleContext.onException(ReadMultipleContext.java:41)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2843)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    ... 53 more
 ]; nested exception is com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class com.j_spaces.core.client.sql.SQLQueryException:1
StackTrace: com.j_spaces.core.client.sql.SQLQueryException: Failed to execute SQLQuery : [name in (?, ?) OR age = ?]
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:187)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Select failed; Cause: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:292)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    ... 46 more
Caused by: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:229)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    ... 47 more
Caused by: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.gigaspaces.internal.server.space.ReadMultipleContext.onException(ReadMultipleContext.java:41)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2843)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    ... 53 more
 ]

    at org.openspaces.core.exception.DefaultExceptionTranslator.internalTranslate(DefaultExceptionTranslator.java:141)
    at org.openspaces.core.exception.DefaultExceptionTranslator.translate(DefaultExceptionTranslator.java:51)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:794)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class com.j_spaces.core.client.sql.SQLQueryException:1
StackTrace: com.j_spaces.core.client.sql.SQLQueryException: Failed to execute SQLQuery : [name in (?, ?) OR age = ?]
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:187)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Select failed; Cause: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:292)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    ... 46 more
Caused by: java.sql.SQLException: Failed to execute readMultiple: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:229)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    ... 47 more
Caused by: com.gigaspaces.client.ReadMultipleException: Success:0, errors:1, [class net.jini.space.InternalSpaceException:1
StackTrace: net.jini.space.InternalSpaceException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:53)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.getPreparedExpectedValue(ScalarSpacePredicate.java:68)
    at com.gigaspaces.internal.query.predicate.comparison.ScalarSpacePredicate.execute(ScalarSpacePredicate.java:78)
    at com.j_spaces.jdbc.builder.range.Range.matches(Range.java:72)
    at com.gigaspaces.internal.query.CompoundOrCustomQuery.matches(CompoundOrCustomQuery.java:45)
    at com.gigaspaces.internal.server.storage.TemplateEntryData.match(TemplateEntryData.java:268)
    at com.gigaspaces.internal.server.storage.TemplateHolder.match(TemplateHolder.java:748)
    at com.gigaspaces.internal.server.space.TemplateScanner.match(TemplateScanner.java:437)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Entry(SpaceEngine.java:4311)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Scan(SpaceEngine.java:4237)
    at com.gigaspaces.internal.server.space.SpaceEngine.getMatchedEntriesAndOperateSA_Type(SpaceEngine.java:4367)
    at com.gigaspaces.internal.server.space.SpaceEngine.executeOnMatchingEntries(SpaceEngine.java:4196)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2839)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:52)
    at com.j_spaces.jdbc.parser.OrNode.accept(OrNode.java:74)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.traverseExpressionTree(AbstractQueryExecutor.java:182)
    at com.j_spaces.jdbc.executor.QueryExecutor.execute(QueryExecutor.java:253)
    at com.j_spaces.jdbc.SelectQuery.executeQuery(SelectQuery.java:365)
    at com.j_spaces.jdbc.SelectQuery.executeOnSpace(SelectQuery.java:228)
    at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:181)
    at com.j_spaces.core.client.sql.QueryManager.readTakeMultiple(QueryManager.java:148)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:85)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:786)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:782)
    at org.springframework.data.xap.repository.query.PartTreeXapRepositoryQuery.execute(PartTreeXapRepositoryQuery.java:61)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:413)
    at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:391)
    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.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
    at com.sun.proxy.$Proxy20.findByNameInOrAge(Unknown Source)
    at se.avanzabank.tjp.invoice.premium.domain.PersonRepositoryTest.find_by_method_name(PersonRepositoryTest.java:40)
    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:497)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    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:497)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.sql.SQLException: Failed converting [%[Abraham, Moses]%] from 'java.lang.String' to 'java.lang.Integer'.
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:48)
    at com.gigaspaces.internal.query.ConvertedObjectWrapper.create(ConvertedObjectWrapper.java:48)
    ... 84 more
Caused by: java.lang.NumberFormatException: For input string: "%[Abraham, Moses]%"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:569)
    at java.lang.Integer.valueOf(Integer.java:766)
    at com.gigaspaces.internal.utils.parsers.IntegerParser.parse(IntegerParser.java:21)
    at com.gigaspaces.internal.utils.ObjectConverter.convert(ObjectConverter.java:43)
    ... 85 more
 ]
    at com.gigaspaces.internal.server.space.ReadMultipleContext.onException(ReadMultipleContext.java:41)
    at com.j_spaces.core.server.processor.Processor.executeBatchSearchAndProcessing(Processor.java:2843)
    at com.j_spaces.core.server.processor.Processor.handleDirectMultipleReadTakeSA(Processor.java:2621)
    at com.gigaspaces.internal.server.space.SpaceEngine.readMultiple(SpaceEngine.java:2073)
    at com.gigaspaces.internal.server.space.SpaceImpl.readMultiple(SpaceImpl.java:2393)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:33)
    at com.gigaspaces.internal.server.space.operations.ReadTakeEntriesSpaceOperation.execute(ReadTakeEntriesSpaceOperation.java:23)
    at com.gigaspaces.internal.server.space.operations.SpaceOperationsExecutor.executeOperation(SpaceOperationsExecutor.java:78)
    at com.gigaspaces.internal.server.space.SpaceImpl.executeOperation(SpaceImpl.java:1954)
    at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.executeOperation(LRMISpaceImpl.java:855)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.executeImpl(EmbeddedRemoteOperationRouter.java:75)
    at com.gigaspaces.internal.remoting.routing.embedded.EmbeddedRemoteOperationRouter.execute(EmbeddedRemoteOperationRouter.java:60)
    at com.gigaspaces.internal.client.spaceproxy.router.SpaceProxyRouter.execute(SpaceProxyRouter.java:233)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.newReadTakeMultiple(SpaceProxyImplReadTakeMultipleAction.java:97)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:36)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:818)
    at com.j_spaces.jdbc.builder.QueryTemplatePacket.read(QueryTemplatePacket.java:785)
    at com.j_spaces.jdbc.executor.AbstractQueryExecutor.executeTemplate(AbstractQueryExecutor.java:215)
    ... 53 more
 ]
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:45)
    at com.gigaspaces.internal.client.spaceproxy.actions.SpaceProxyImplReadTakeMultipleAction.readMultiple(SpaceProxyImplReadTakeMultipleAction.java:26)
    at com.gigaspaces.internal.client.spaceproxy.actions.AbstractSpaceProxyActionManager.readMultiple(AbstractSpaceProxyActionManager.java:235)
    at com.gigaspaces.internal.client.spaceproxy.AbstractSpaceProxy.readMultiple(AbstractSpaceProxy.java:288)
    at org.openspaces.core.DefaultGigaSpace.readMultiple(DefaultGigaSpace.java:792)
    ... 39 more

Using And instead of the Or operand, e.g.

personRepository.findByNameInAndAge(Arrays.asList("Eva", "Moses"), 20);

...does not throw an exception, though it does not return the correct result either (always return an empty list).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant