in the middle of the tests start second node to join the first one
after node initialization and joining cluster, but before Schema initialization complete the test throws exception:
...
Caused by: com.hazelcast.client.UndefinedErrorCodeException: Class name : com.bagri.core.api.BagriException , Message :java.util.concurrent.ExecutionException: com.hazelcast.nio.serialization.HazelcastSerializationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.bagri.server.hazelcast.task.doc.DocumentCleaner': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.bagri.server.hazelcast.task.doc.DocumentCleaner.setRepository(com.bagri.server.hazelcast.impl.SchemaRepositoryImpl); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xdmRepo' defined in URL [file:src/main/resources/spring/cache-schema-context.xml]: Cannot resolve reference to bean 'queryManager' while setting bean property 'queryManagement'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryManager' defined in URL [file:src/main/resources/spring/cache-schema-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'repository' threw exception; nested exception is java.lang.NullPointerException
at com.bagri.server.hazelcast.impl.TransactionManagementImpl.cleanAffectedDocuments(TransactionManagementImpl.java:253) ~[na:na]
at com.bagri.server.hazelcast.impl.TransactionManagementImpl.rollbackTransaction(TransactionManagementImpl.java:198) ~[na:na]
at com.bagri.server.hazelcast.impl.TransactionManagementImpl.callInTransaction(TransactionManagementImpl.java:370) ~[na:na]
at com.bagri.server.hazelcast.task.query.QueryExecutor.call(QueryExecutor.java:53) ~[na:na]
at com.bagri.server.hazelcast.task.query.QueryExecutor.call(QueryExecutor.java:21) ~[na:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_74]
at com.hazelcast.executor.impl.DistributedExecutorService$CallableProcessor.run(DistributedExecutorService.java:241) ~[hazelcast-all-3.8.7.jar:3.8.7]
at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:227) ~[hazelcast-all-3.8.7.jar:3.8.7]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_74]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_74]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74]
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) ~[hazelcast-all-3.8.7.jar:3.8.7]
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) ~[hazelcast-all-3.8.7.jar:3.8.7]
at ------ submitted from ------.(Unknown Source) ~[na:na]
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:114) ~[hazelcast-all-3.8.7.jar:3.8.7]
at com.hazelcast.spi.impl.AbstractInvocationFuture$1.run(AbstractInvocationFuture.java:243) ~[hazelcast-all-3.8.7.jar:3.8.7]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_74]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_74]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_74]
at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64) ~[hazelcast-all-3.8.7.jar:3.8.7]
at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80) ~[hazelcast-all-3.8.7.jar:3.8.7]