hazelcast / spring-data-hazelcast

Hazelcast Spring Data integration Project http://projects.spring.io/spring-data/
Apache License 2.0
84 stars 53 forks source link

Getting Error while running DSL query using spring data hazelcast #128

Closed logicatmidod closed 3 years ago

logicatmidod commented 3 years ago

Error running dynamic dsl query

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.3.5.RELEASE)

2020-11-24 20:09:15.521  INFO 10452 --- [           main] c.s.cccf.ace.admin.AceAdminApplication   : Starting AceAdminApplication v${build.version}-${build.number} on SGNPF0MAXW6 with PID 10452 (C:\Users\1527992\Documents\repository\ace\wave-3\cccf-svc-ace-admin\target\cccf-svc-ace-admin-${build.version}-${build.number}.jar started by 1527992 in C:\Users\1527992\Documents\repository\ace\wave-3\cccf-svc-ace-admin\target)
2020-11-24 20:09:15.549  INFO 10452 --- [           main] c.s.cccf.ace.admin.AceAdminApplication   : No active profile set, falling back to default profiles: default
2020-11-24 20:09:21.389  INFO 10452 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2020-11-24 20:09:21.392  INFO 10452 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Hazelcast repositories in DEFAULT mode.
2020-11-24 20:09:22.370  INFO 10452 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 885ms. Found 1 Hazelcast repository interfaces.
2020-11-24 20:09:23.407  INFO 10452 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2020-11-24 20:09:23.410  INFO 10452 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Reactive Cassandra repositories in DEFAULT mode.
2020-11-24 20:09:23.484  INFO 10452 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 73ms. Found 0 Reactive Cassandra repository interfaces.
2020-11-24 20:09:27.173  INFO 10452 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 9997 (http)
2020-11-24 20:09:27.198  INFO 10452 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-11-24 20:09:27.198  INFO 10452 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.39]
2020-11-24 20:09:27.722  INFO 10452 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-11-24 20:09:27.724  INFO 10452 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 11501 ms
2020-11-24 20:09:29.164  INFO 10452 --- [           main] com.hazelcast.client.HazelcastClient     : hz.client_1 [dev] [3.12.10] A non-empty group password is configured for the Hazelcast client. Starting with Hazelcast version 3.11, clients with the same group name, but with different group passwords (that do not use authentication) will be accepted to a cluster. The group password configuration will be removed completely in a future release.
2020-11-24 20:09:31.118  INFO 10452 --- [           main] c.h.client.spi.ClientInvocationService   : hz.client_1 [dev] [3.12.10] Running with 2 response threads, dynamic=false
2020-11-24 20:09:31.940  INFO 10452 --- [           main] com.hazelcast.core.LifecycleService      : hz.client_1 [dev] [3.12.10] HazelcastClient 3.12.10 (20201019 - b096a74) is STARTING
2020-11-24 20:09:31.942  INFO 10452 --- [           main] com.hazelcast.core.LifecycleService      : hz.client_1 [dev] [3.12.10] HazelcastClient 3.12.10 (20201019 - b096a74) is STARTED
2020-11-24 20:09:32.079  INFO 10452 --- [ient_1.cluster-] c.h.c.c.nio.ClusterConnectorService      : hz.client_1 [dev] [3.12.10] Trying to connect to cluster with name: dev
2020-11-24 20:09:32.085  INFO 10452 --- [ient_1.cluster-] c.h.c.c.nio.ClusterConnectorService      : hz.client_1 [dev] [3.12.10] Trying to connect to [10.198.205.62]:30212 as owner member
2020-11-24 20:09:32.507  INFO 10452 --- [nt_1.internal-1] c.h.c.c.ClientConnectionManager          : hz.client_1 [dev] [3.12.10] Setting ClientConnection{alive=true, connectionId=1, channel=NioChannel{/10.68.208.223:62102->/10.198.205.62:30212}, remoteEndpoint=[110.128.37.103]:5701, lastReadTime=2020-11-24 20:09:32.495, lastWriteTime=2020-11-24 20:09:32.312, closedTime=never, connected server version=3.11.4} as owner with principal ClientPrincipal{uuid='274520d3-e67f-42a2-8377-c7485b8c75a6', ownerUuid='987899a1-9074-4c61-b77f-989f296edee5'}
2020-11-24 20:09:32.508  INFO 10452 --- [nt_1.internal-1] c.h.c.c.ClientConnectionManager          : hz.client_1 [dev] [3.12.10] Authenticated with server [110.128.37.103]:5701, server version:3.11.4 Local address: /10.68.208.223:62102
2020-11-24 20:09:32.890  INFO 10452 --- [lient_1.event-2] c.h.c.spi.impl.ClientMembershipListener  : hz.client_1 [dev] [3.12.10]

Members [1] {
        Member [110.128.37.103]:5701 - 987899a1-9074-4c61-b77f-989f296edee5
}

2020-11-24 20:09:32.902  INFO 10452 --- [ient_1.cluster-] com.hazelcast.core.LifecycleService      : hz.client_1 [dev] [3.12.10] HazelcastClient 3.12.10 (20201019 - b096a74) is CLIENT_CONNECTED
2020-11-24 20:09:32.903  INFO 10452 --- [           main] c.h.internal.diagnostics.Diagnostics     : hz.client_1 [dev] [3.12.10] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments.
2020-11-24 20:09:36.352  INFO 10452 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2020-11-24 20:09:41.740  INFO 10452 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2020-11-24 20:09:41.915  INFO 10452 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 9997 (http) with context path ''
2020-11-24 20:09:41.986  INFO 10452 --- [           main] c.s.cccf.ace.admin.AceAdminApplication   : Started AceAdminApplication in 28.952 seconds (JVM running for 31.414)
2020-11-24 20:09:57.051  INFO 10452 --- [nio-9997-exec-3] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-11-24 20:09:57.052  INFO 10452 --- [nio-9997-exec-3] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2020-11-24 20:09:57.103  INFO 10452 --- [nio-9997-exec-3] o.s.web.servlet.DispatcherServlet        : Completed initialization in 49 ms
2020-11-24 20:09:57.686 ERROR 10452 --- [nio-9997-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause

java.lang.NullPointerException: null
        at com.mysema.codegen.JDKEvaluatorFactory.<init>(JDKEvaluatorFactory.java:55) ~[codegen-0.6.8.jar!/:na]
        at com.mysema.codegen.JDKEvaluatorFactory.<init>(JDKEvaluatorFactory.java:51) ~[codegen-0.6.8.jar!/:na]
        at com.querydsl.collections.DefaultEvaluatorFactory.<init>(DefaultEvaluatorFactory.java:72) ~[querydsl-collections-4.1.3.jar!/:na]
        at com.querydsl.collections.DefaultEvaluatorFactory.<init>(DefaultEvaluatorFactory.java:54) ~[querydsl-collections-4.1.3.jar!/:na]
        at com.querydsl.collections.DefaultQueryEngine.getDefault(DefaultQueryEngine.java:41) ~[querydsl-collections-4.1.3.jar!/:na]
        at com.querydsl.collections.CollQuery.<init>(CollQuery.java:35) ~[querydsl-collections-4.1.3.jar!/:na]
        at org.springframework.data.keyvalue.repository.support.QuerydslKeyValueRepository.prepareQuery(QuerydslKeyValueRepository.java:202) ~[spring-data-keyvalue-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.data.keyvalue.repository.support.QuerydslKeyValueRepository.findAll(QuerydslKeyValueRepository.java:144) ~[spring-data-keyvalue-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_74]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_74]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_74]
        at org.springframework.data.repository.core.support.ImplementationInvocationMetadata.invoke(ImplementationInvocationMetadata.java:72) ~[spring-data-commons-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.data.repository.core.support.RepositoryComposition$RepositoryFragments.invoke(RepositoryComposition.java:382) ~[spring-data-commons-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:205) ~[spring-data-commons-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.data.repository.core.support.RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java:550) ~[spring-data-commons-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.doInvoke(QueryExecutorMethodInterceptor.java:155) ~[spring-data-commons-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.invoke(QueryExecutorMethodInterceptor.java:130) ~[spring-data-commons-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at com.sun.proxy.$Proxy109.findAll(Unknown Source) ~[na:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_74]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_74]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_74]
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) ~[spring-tx-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) ~[spring-aop-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at com.sun.proxy.$Proxy109.findAll(Unknown Source) ~[na:na]
        at com.scb.cccf.ace.admin.service.AdminService.fetchAllUsers(AdminService.java:36) ~[classes!/:${build.version}-${build.number}]
        at com.scb.cccf.ace.admin.controller.AdminController.fetchAllUsers(AdminController.java:29) ~[classes!/:${build.version}-${build.number}]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_74]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_74]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_74]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_74]
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) ~[tomcat-embed-core-9.0.39.jar!/:4.0.FR]
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) ~[tomcat-embed-core-9.0.39.jar!/:4.0.FR]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:93) ~[spring-boot-actuator-2.3.5.RELEASE.jar!/:2.3.5.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) ~[spring-web-5.2.10.RELEASE.jar!/:5.2.10.RELEASE]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) ~[tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_74]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_74]
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.39.jar!/:9.0.39]
        at java.lang.Thread.run(Unknown Source) [na:1.8.0_74]
logicatmidod commented 3 years ago

Hi Looking at all the issues I faced Also raised issue https://github.com/querydsl/querydsl/issues/2697

looking for alternative option is there a way to support com.hazelcast.query.Predicate directly via spring data repository?

Thanks

leszko commented 3 years ago

You can use @Query as described here: https://github.com/hazelcast/spring-data-hazelcast#query-support

logicatmidod commented 3 years ago

You can use @Query as described here: https://github.com/hazelcast/spring-data-hazelcast#query-support

What I am trying to do is something like this : https://www.denismigol.com/posts/325/spring-data-hazelcast-querydsl-demo As the issue with query is lets say I am displaying a table of users on UI and allowing people to put filter on the tables dynamicaly. A user may choose to filter the tables either with 1 column or 2 columns or n columns if I use https://github.com/hazelcast/spring-data-hazelcast#query-support to support dynamic query for n columns I will have to create n!+1 methods i.e. 1 field = 1!+1 = 1 2 fields = 2!+1 = 3 3 fields = 3!+1 = 7 . . 6 fields = 6! +1 = 721 methods

Does not seem like a good approach and tomorrow if new field is added to dynamic filter list it means hell lot of changes.

pivovarit commented 3 years ago

Firstly, looks like the described error is related to QueryDSL and not Spring Data Hazelcast

looking for an alternative option is there a way to support com.hazelcast.query.Predicate directly via spring data repository?

Not really. There's no direct integration between Spring Data and Hazelcast's Predicate, but you could just use them directly on the desired data structure without relying on Spring Data Hazelcast which is dedicated to solving common scenarios.

Also, the next release of Hazelcast will feature production-ready SQL support which will make this task much easier.