Hello!
Ubuntu 16, 18, 20 Tried:
- build
- jar
- docker
They are not working on stable ubuntu. Doing apt update, apt upgrade, apt install libssl, libssl-dev python-dev, python-pip (3), zlib1g-dev ; etc Installed aerospike, everything okay Installed aql, everything okay, aql connecting, i see the db. So I wanted to install rest client cd /home/rest/ wget rest_client-jar from aerospike apt install java and so on java -jar as-rest-client-1.5.0.jar
errors:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-06-23 12:36:17.675 ERROR 5019 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aerospikeOperateServiceV1' defined in URL [jar:file:/home/rest/aerospike-client-rest-1.5.0/as-rest-client-1.5.0.jar!/BOOT-INF/classes!/com/aerospike/restclient/service/AerospikeOperateServiceV1.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'getOperateHandler' defined in class path resource [com/aerospike/restclient/config/HandlerConfig.class]: Unsatisfied dependency expressed through method 'getOperateHandler' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ConfigAerospikeClient' defined in class path resource [com/aerospike/restclient/config/AerospikeClientConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.aerospike.client.AerospikeClient]: Factory method 'ConfigAerospikeClient' threw exception; nested exception is com.aerospike.client.AerospikeException$Connection: Error -8: Failed to connect to host(s):
172.17.0.5 3000 Error -8: java.net.SocketTimeoutException: Connect timed out
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:882) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878) ~[spring-context-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.6.RELEASE.jar!/:2.2.6.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.6.RELEASE.jar!/:2.2.6.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.6.RELEASE.jar!/:2.2.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.6.RELEASE.jar!/:2.2.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.6.RELEASE.jar!/:2.2.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.6.RELEASE.jar!/:2.2.6.RELEASE]
at com.aerospike.restclient.AerospikeRestClientApplication.main(AerospikeRestClientApplication.java:26) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[as-rest-client-1.5.0.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[as-rest-client-1.5.0.jar:na]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) ~[as-rest-client-1.5.0.jar:na]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) ~[as-rest-client-1.5.0.jar:na]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'getOperateHandler' defined in class path resource [com/aerospike/restclient/config/HandlerConfig.class]: Unsatisfied dependency expressed through method 'getOperateHandler' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ConfigAerospikeClient' defined in class path resource [com/aerospike/restclient/config/AerospikeClientConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.aerospike.client.AerospikeClient]: Factory method 'ConfigAerospikeClient' threw exception; nested exception is com.aerospike.client.AerospikeException$Connection: Error -8: Failed to connect to host(s):
172.17.0.5 3000 Error -8: java.net.SocketTimeoutException: Connect timed out
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:539) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1290) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:885) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
... 27 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ConfigAerospikeClient' defined in class path resource [com/aerospike/restclient/config/AerospikeClientConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.aerospike.client.AerospikeClient]: Factory method 'ConfigAerospikeClient' threw exception; nested exception is com.aerospike.client.AerospikeException$Connection: Error -8: Failed to connect to host(s):
172.17.0.5 3000 Error -8: java.net.SocketTimeoutException: Connect timed out
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:656) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:484) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1290) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:885) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
... 41 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.aerospike.client.AerospikeClient]: Factory method 'ConfigAerospikeClient' threw exception; nested exception is com.aerospike.client.AerospikeException$Connection: Error -8: Failed to connect to host(s):
172.17.0.5 3000 Error -8: java.net.SocketTimeoutException: Connect timed out
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:651) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
... 55 common frames omitted
Caused by: com.aerospike.client.AerospikeException$Connection: Error -8: Failed to connect to host(s):
172.17.0.5 3000 Error -8: java.net.SocketTimeoutException: Connect timed out
at com.aerospike.client.cluster.Cluster.seedNode(Cluster.java:596) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.client.cluster.Cluster.tend(Cluster.java:462) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.client.cluster.Cluster.waitTillStabilized(Cluster.java:417) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.client.cluster.Cluster.initTendThread(Cluster.java:339) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.client.cluster.Cluster.<init>(Cluster.java:297) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.client.AerospikeClient.<init>(AerospikeClient.java:241) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.client.AerospikeClient.<init>(AerospikeClient.java:205) ~[aerospike-client-4.4.12.jar!/:na]
at com.aerospike.restclient.config.AerospikeClientConfig.ConfigAerospikeClient(AerospikeClientConfig.java:51) ~[classes!/:na]
at com.aerospike.restclient.config.AerospikeClientConfig$$EnhancerBySpringCGLIB$$9c3552de.CGLIB$ConfigAerospikeClient$0(<generated>) ~[classes!/:na]
at com.aerospike.restclient.config.AerospikeClientConfig$$EnhancerBySpringCGLIB$$9c3552de$$FastClassBySpringCGLIB$$445e604.invoke(<generated>) ~[classes!/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
at com.aerospike.restclient.config.AerospikeClientConfig$$EnhancerBySpringCGLIB$$9c3552de.ConfigAerospikeClient(<generated>) ~[classes!/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
... 56 common frames omitted
okay lets wget from github cd /home/rest_git/ ./gradlew build
Task :compileTestJava /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:152: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:164: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:177: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:191: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:211: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:224: error: reference to Record is ambiguous Record record = client.get(null, this.intKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:236: error: reference to Record is ambiguous Record record = client.get(null, this.bytesKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:248: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:264: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match /home/rest/aerospike-client-rest-master/src/test/java/com/aerospike/restclient/RecordPostCorrectTests.java:280: error: reference to Record is ambiguous Record record = client.get(null, this.testKey); ^ both class com.aerospike.client.Record in com.aerospike.client and class java.lang.Record in java.lang match 10 errors
> Task :compileTestJava FAILED
FAILURE: Build failed with an exception.