Java.util.concurrent.TimeoutException after recompile project to java 8

connections

#1
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.playtika.data.DaoStorage com.playtika.configuration.beans.PlaytikaDataConfiguration.userSaveCouchbaseDaoStorage()] threw exception; nested exception is java.lang.RuntimeException: java.util.concurrent.TimeoutException
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:592)
    ... 175 more
Caused by: java.lang.RuntimeException: java.util.concurrent.TimeoutException
    at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:93)
    at com.couchbase.client.java.CouchbaseCluster.openBucket(CouchbaseCluster.java:108)
    at com.couchbase.client.java.CouchbaseCluster.openBucket(CouchbaseCluster.java:94)
    at com.playtika.data.configurations.sources.couchbase.CouchbaseDaoConfigurationManager.createDaoConfiguration(CouchbaseDaoConfigurationManager.java:45)
    at com.playtika.data.configurations.sources.couchbase.CouchbaseDaoConfigurationManager.createDaoConfiguration(CouchbaseDaoConfigurationManager.java:25)
    at com.playtika.data.PlaytikaDataFactory.provideDaoConfigurations(PlaytikaDataFactory.java:66)
    at com.playtika.data.PlaytikaDataFactory.getDaoManager(PlaytikaDataFactory.java:51)
    at com.playtika.configuration.beans.PlaytikaDataConfiguration.userSaveCouchbaseDaoStorage(PlaytikaDataConfiguration.java:240)
    at com.playtika.configuration.beans.PlaytikaDataConfiguration$$EnhancerBySpringCGLIB$$fd315047.CGLIB$userSaveCouchbaseDaoStorage$29(<generated>)
    at com.playtika.configuration.beans.PlaytikaDataConfiguration$$EnhancerBySpringCGLIB$$fd315047$$FastClassBySpringCGLIB$$919672b.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:293)
    at com.playtika.configuration.beans.PlaytikaDataConfiguration$$EnhancerBySpringCGLIB$$fd315047.userSaveCouchbaseDaoStorage(<generated>)
    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:483)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160)
    ... 176 more
Caused by: java.util.concurrent.TimeoutException
    ... 194 more

Unnable open bucket after migrating project to java 8. with recompiling using JDK 1.6 all works fine
I use java-client version 2.1.13


#2

Sorry about stupid question. This exception is just environment problem. Tomcat started more longer after recompile to java8.


#3

Glad you found the root cause of your problem (and that there’s no bug with the SDK) :smiley_cat: