These are chat archives for spring-cloud/spring-cloud

11th
May 2016
Donovan Muller
@donovanmuller
May 11 2016 03:29
Thanks for lazybones, looks interesting...
Does spring-cloud/spring-cloud-dataflow-ui#50 mean that Flo now has an OSS option (inside dataflow-ui)?
Dave Syer
@dsyer
May 11 2016 05:44
Yes
Donovan Muller
@donovanmuller
May 11 2016 06:03
Great, thanks!
Leon Radley
@leon
May 11 2016 08:32

@dsyer It seems that when using

dependencyManagement {
    imports { 
        mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.RC2" 
    }
}

spring boot starts up as version 1.3.3 even though 1.3.5 is set in the buildscript

I’ve had this problem earlier, but that was when I was using the spring-cloud-parent
Dave Syer
@dsyer
May 11 2016 08:33
Does it work with Brixton.BUILD-SNAPSHOT?
Leon Radley
@leon
May 11 2016 08:34
I’ll check
Dave Syer
@dsyer
May 11 2016 08:34
(or Brixton.RELEASE - you could be the first person to try that since it just hit artifactory)?
If you try the release version, be prepared to purge it from your caches if we find a bug
Leon Radley
@leon
May 11 2016 08:35
it worked with the SNAPSHOT
I’ll try release now
Dave Syer
@dsyer
May 11 2016 08:35
I think we can call it fixed then
We did change the BOM since RC2
Stéphane Nicoll
@snicoll
May 11 2016 08:36
Dave, that simple build is a good test to validate things work as expected.
maybe we should try to automate that?
Leon Radley
@leon
May 11 2016 08:36
Brixton.RELEASE doesn’t seem to be available yet
Stéphane Nicoll
@snicoll
May 11 2016 08:37
you need to add repo.spring.io/release
Leon Radley
@leon
May 11 2016 08:37
yes I saw that
now it works
thanks :)
Tommy Ludwig
@shakuzen
May 11 2016 08:38
@snicoll @dsyer big +1 for such an automated test as I feel like this has been fixed and broken a couple times (though it could just be a combination of other issues... nonetheless, would be great)
Dave Syer
@dsyer
May 11 2016 08:38
There's a tiny bug in the brixton BOM
I'm going to fix it and re-push
We have automated tests
But the process is still somewhat manual because of the range of versions in a release train.
@marcingrzejszczak is going to do some more fancy stuff with Jenkins
Marcin Grzejszczak
@marcingrzejszczak
May 11 2016 08:40
:+1:
Tommy Ludwig
@shakuzen
May 11 2016 08:41
:+1:
nurgasemetey
@nurgasemetey
May 11 2016 09:35
Hello.
Yesterday Spring Cloud Stream release was announced. I have a question about it.
I read reference guide. There was Consumer Groups chapter which can be implemented through tap in Spring Data Flow imho(I can be wrong). In another words, what can Spring Cloud Stream do that Spring Data Flow can't?
Also, I noticed that Spring Cloud Stream is more advanced than Spring Cloud Data Flow shell commands. What is best practice when using Spring Cloud Data Flow and Spring Cloud Stream?
Dave Syer
@dsyer
May 11 2016 09:38
I don't think consumer groups and taps are necessarily related.
What do you mean by "more advanced"?
In general the relationship is that Spring Cloud Dataflow can manage and orchestrate Spring Cloud Stream apps for you if they follow some simple rules. In other words, not all Stream apps are Dataflow apps. Maybe that's what you mean?
nurgasemetey
@nurgasemetey
May 11 2016 09:43
That is it. Can I only use Spring DataFlow and create streams like old Spring XD?
Dave Syer
@dsyer
May 11 2016 09:44
Basically, yes, they are equivalent with some evolution.
@sabbyanandan will be able to answer better when he wakes up
nurgasemetey
@nurgasemetey
May 11 2016 09:44
Ok. Thank you
Niklas Herder
@herder
May 11 2016 11:10
Congrats on the Brixton release! :balloon: :)
I'm wondering about the recommended way of configuring Ribbon to try the next service instance as soon as possible if the one it tries does not respond?
Our stage env has had a lot of instances registering and deregistering in Eureka, which has caused Eureka to enter self-preservation mode and not expire instances. This could be fixed by rebooting the Eureka servers, I guess, but I'd rather like Ribbon to quickly try the next server in the list instead of causing a ZuulException due to timeout.
Jose Armesto
@fiunchinho
May 11 2016 11:41

I’m about to lose all hope. Trying to run a really simple app, I get Circular reference involving containing bean ‘org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration’

This is my build.gradle

buildscript {
    ext {
        springBootVersion = '1.3.3.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
    maven { url "https://repo.spring.io/release" }
}

dependencies {
    compile 'org.springframework.cloud:spring-cloud-starter-eureka'
    compile('org.springframework.cloud:spring-cloud-starter-hystrix:1.0.0.RELEASE')
    compile("org.springframework:spring-jdbc")
    compile('org.postgresql:postgresql:9.4.+')
    compile('com.zaxxer:HikariCP:2.4.3')

    compile('net.rakugakibox.springbootext:spring-boot-ext-logback-access:1.+')

    testCompile('com.netflix.feign:feign-core:8.16.+')
    testCompile('com.netflix.feign:feign-jackson:8.16.+')
    testCompile('com.netflix.feign:feign-jaxrs:8.16.+')
    testCompile('junit:junit:4.12')
    testCompile("org.assertj:assertj-core:3.4.1")
}

dependencyManagement {
    imports {
        mavenBom 'org.springframework.cloud:spring-cloud-starter-parent:Brixton.RELEASE'
    }
}
can anybody help me?
Tommy Ludwig
@shakuzen
May 11 2016 12:11
@fiunchinho Not sure if it will help, but you could try changing spring-cloud-starter-parent to spring-cloud-dependencies
Jose Armesto
@fiunchinho
May 11 2016 12:13
same error :(
Tommy Ludwig
@shakuzen
May 11 2016 12:14
Is there a reason you're specifying the version of spring-cloud-starter-hystrix instead of letting the dependency management take care of it? That could be the culprit
Jose Armesto
@fiunchinho
May 11 2016 12:15
not really, but I’ve also tried removing it
seems like now it’s working, after adding the following dependency compile('commons-lang:commons-lang:2.3’)
WTF?
Koizumi85
@Koizumi85
May 11 2016 12:17
please double check if it is failing if you remove this again... would be really weird...
(and after all commons-lang:2.3 is really old and you should use compile 'org.apache.commons:commons-lang3:3.4' instead... )
Jose Armesto
@fiunchinho
May 11 2016 12:20
yep
if I remove it, it fails again
I added that dependency because the message says
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
Koizumi85
@Koizumi85
May 11 2016 12:22
hmm... really strange...
I would assume that one of these dependencies is doing something strange:
    compile('com.zaxxer:HikariCP:2.4.3')

    compile('net.rakugakibox.springbootext:spring-boot-ext-logback-access:1.+')

    testCompile('com.netflix.feign:feign-core:8.16.+')
    testCompile('com.netflix.feign:feign-jackson:8.16.+')
    testCompile('com.netflix.feign:feign-jaxrs:8.16.+')
or maybe you have some mistake in your configuration...
Jose Armesto
@fiunchinho
May 11 2016 13:47
I’ve removed all those dependencies
still same problem unless I add commons-lang
what could be the problem then?
what should I check?
Spencer Gibb
@spencergibb
May 11 2016 14:58
@fiunchinho this build.gradle builds for me
buildscript {
    ext {
        springBootVersion = '1.3.3.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'

jar {
    baseName = 'demobrixtonreleasegradle'
    version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
    maven { url "https://repo.spring.io/release" }
}


dependencies {
    compile('org.springframework.cloud:spring-cloud-starter-eureka')
    compile('org.springframework.cloud:spring-cloud-starter-hystrix')
    compile('org.springframework.boot:spring-boot-starter-web')

    compile("org.springframework:spring-jdbc")
    compile('org.postgresql:postgresql:9.4.+')
    compile('com.zaxxer:HikariCP:2.4.3')

    compile('net.rakugakibox.springbootext:spring-boot-ext-logback-access:1.+')

    testCompile('com.netflix.feign:feign-core:8.16.+')
    testCompile('com.netflix.feign:feign-jackson:8.16.+')
    testCompile('com.netflix.feign:feign-jaxrs:8.16.+')
    testCompile('junit:junit:4.12')
    testCompile("org.assertj:assertj-core:3.4.1")

//    testCompile('org.springframework.boot:spring-boot-starter-test')
}

dependencyManagement {
    imports { 
        mavenBom "org.springframework.cloud:spring-cloud-dependencies:Brixton.RELEASE"
    }
}
It must be something else in your project. If you have a project to share, that would be helpful
Marius Bogoevici
@mbogoevici
May 11 2016 15:37
@nurgasemetey @dsyer has answered this, but the story is that Spring Cloud Stream is the application development framework and Spring Cloud Data Flow is the orchestration and deployment layer. In terms of experience it will be very similar to Spring XD - shell, UI and so on remain similar (although the syntax will change to reflect the new capabilities)
nurgasemetey
@nurgasemetey
May 11 2016 15:42
@mbogoevici, thank you. I feel that that many newcomers will ask the same questions. I hope that the blog series with tutorials will be written or the aim of project will not be clear for them :smile:
Marius Bogoevici
@mbogoevici
May 11 2016 15:51
sure, thanks for the suggestion !there is a tutorial (albeit out of date since we’ve moved away from the Redis binder) from @joshlong that illustrates how the two work together https://spring.io/blog/2016/04/05/1-stream-2-applications-and-3-dependencies-for-spring-cloud-data-flow - I guess we need to write a new one
nurgasemetey
@nurgasemetey
May 11 2016 15:53
Very good tutorial!
theoptimiste
@theoptimiste
May 11 2016 16:05
Hi , can someone give me an example or a link github of Message Driven Microservice with rabbitMq ? thank you
Jose Armesto
@fiunchinho
May 11 2016 16:55
it builds, but it doesn’t start the app unless I add the commons-lang
Spencer Gibb
@spencergibb
May 11 2016 17:01
@fiunchinho which app are you trying to start?
Jose Armesto
@fiunchinho
May 11 2016 17:01
the jdbc folder, sorry
Spencer Gibb
@spencergibb
May 11 2016 17:10
This works for me
group 'com.scmspain'
version '1.0-SNAPSHOT'


buildscript {
    ext {
        springBootVersion = '1.3.3.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
    maven { url "https://repo.spring.io/release" }
}

dependencies {
    compile 'org.springframework.cloud:spring-cloud-starter-eureka'
    compile('org.springframework.cloud:spring-cloud-starter-hystrix')
    compile("org.springframework:spring-jdbc")
    compile('org.postgresql:postgresql:9.4.+')
    compile('com.zaxxer:HikariCP:2.4.3')

    compile('net.rakugakibox.springbootext:spring-boot-ext-logback-access:1.0')
}

dependencyManagement {
    imports {
        mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Brixton.RELEASE'
    }
}
you don’t need both the plugins, the spring-boot plugin does what io.spring.dependency-management does.
Jose Armesto
@fiunchinho
May 11 2016 17:18
the app is able to start?
Spencer Gibb
@spencergibb
May 11 2016 17:18
yes
|    +--- com.netflix.eureka:eureka-client:1.4.6
|    |    +--- org.codehaus.jettison:jettison:1.3.7
|    |    |    \--- stax:stax-api:1.0.1
|    |    +--- com.netflix.netflix-commons:netflix-eventbus:0.3.0
|    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.16
|    |    |    +--- com.netflix.servo:servo-core:0.5.3 -> 0.10.1
|    |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.16
|    |    |    |    +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    \--- com.netflix.servo:servo-internal:0.10.1
|    |    |    |         +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.16
|    |    |    |         \--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    \--- com.netflix.archaius:archaius-core:0.3.3 -> 0.7.4
|    |    |         +--- commons-configuration:commons-configuration:1.8
|    |    |         |    +--- commons-lang:commons-lang:2.6
Jose Armesto
@fiunchinho
May 11 2016 17:26
it seems to work now! probably the recursive dependency was due the plugin + de bom?
thank you @spencergibb , this was driving me crazy
Spencer Gibb
@spencergibb
May 11 2016 17:26
I think both plugins was the problem.
Jose Armesto
@fiunchinho
May 11 2016 17:28
no sorry! I didn’t remove the common-lang dependency
if I remove it, doesn’t work
group 'com.scmspain'
version '1.0-SNAPSHOT'


buildscript {
    ext {
        springBootVersion = '1.3.3.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
    mavenCentral()
    maven { url "https://repo.spring.io/release" }
}

dependencies {
    compile 'org.springframework.cloud:spring-cloud-starter-eureka'
    compile('org.springframework.cloud:spring-cloud-starter-hystrix')
    compile("org.springframework:spring-jdbc")
    compile('org.postgresql:postgresql:9.4.+')
    compile('com.zaxxer:HikariCP:2.4.3')

    compile('net.rakugakibox.springbootext:spring-boot-ext-logback-access:1.0')
}

dependencyManagement {
    imports {
        mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Brixton.RELEASE'
    }
}
this is my build.gradle
Spencer Gibb
@spencergibb
May 11 2016 17:30
and mine
Jose Armesto
@fiunchinho
May 11 2016 17:30
7616 [main] ERROR org.springframework.boot.SpringApplication.handleRunFailure - [11/05/2016:19:29:26.755 +0200] Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.List org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration.externalConfigurations; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurableEnvironmentConfiguration' defined in class path resource [org/springframework/cloud/netflix/archaius/ArchaiusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.netflix.archaius.ConfigurableEnvironmentConfiguration]: Circular reference involving containing bean 'org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration' - consider declaring the factory method as static for independence from its containing instance. Factory method 'configurableEnvironmentConfiguration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
        at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
        at com.scmspain.howtospring.jdbc.Application.main(Application.java:12)
        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.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
        at java.lang.Thread.run(Thread.java:745)
Spencer Gibb
@spencergibb
May 11 2016 17:31
That’s a different error
not a No Class Error
Jose Armesto
@fiunchinho
May 11 2016 17:32
actually not, it’s the same Circular reference
down the stack trace, I see
Spencer Gibb
@spencergibb
May 11 2016 17:32
ah, didn’t scroll far enought right ;-)
What does ./gradlew dependencies say
Jose Armesto
@fiunchinho
May 11 2016 17:32
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.netflix.archaius.ConfigurableEnvironmentConfiguration]: Circular reference involving containing bean 'org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration' - consider declaring the factory method as static for independence from its containing instance. Factory method 'configurableEnvironmentConfiguration' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
        ... 37 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:170)
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
        at org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:170)
        at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:142)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration.configurableEnvironmentConfiguration(ArchaiusAutoConfiguration.java:89)
        at org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration$$EnhancerBySpringCGLIB$$b430bfb7.CGLIB$configurableEnvironmentConfiguration$1(<generated>)
        at org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration$$EnhancerBySpringCGLIB$$b430bfb7$$FastClassBySpringCGLIB$$9651b48c.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
        at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:355)
        at org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration$$EnhancerBySpringCGLIB$$b430bfb7.configurableEnvironmentConfiguration(<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:497)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiati
you want the whole thing?
Spencer Gibb
@spencergibb
May 11 2016 17:34
search for commons-lang
from the jdbc snapshot
Jose Armesto
@fiunchinho
May 11 2016 17:37
+--- com.netflix.eureka:eureka-client:1.4.6
|    |    +--- org.codehaus.jettison:jettison:1.3.7
|    |    |    \--- stax:stax-api:1.0.1
|    |    +--- com.netflix.netflix-commons:netflix-eventbus:0.3.0
|    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.16
|    |    |    +--- com.netflix.servo:servo-core:0.5.3 -> 0.10.1
|    |    |    |    +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.16
|    |    |    |    +--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    |    \--- com.netflix.servo:servo-internal:0.10.1
|    |    |    |         +--- org.slf4j:slf4j-api:1.7.12 -> 1.7.16
|    |    |    |         \--- com.google.guava:guava:16.0.1 -> 18.0
|    |    |    \--- com.netflix.archaius:archaius-core:0.3.3 -> 0.7.4
|    |    |         +--- commons-configuration:commons-configuration:1.8
|    |    |         |    +--- commons-lang:commons-lang:2.6
|    |    |         |    \--- commons-logging:commons-logging:1.1.1 -> 1.2
in the section default - Configuration for default artifacts.
+--- org.springframework.cloud:spring-cloud-starter-ribbon:1.1.0.RELEASE
|    |    +--- org.springframework.cloud:spring-cloud-starter:1.1.0.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-netflix-core:1.1.0.RELEASE (*)
|    |    +--- org.springframework.cloud:spring-cloud-starter-archaius:1.1.0.RELEASE (*)
|    |    +--- com.netflix.ribbon:ribbon:2.1.5
|    |    |    +--- com.netflix.ribbon:ribbon-core:2.1.5
|    |    |    |    +--- org.slf4j:slf4j-api:1.6.4 -> 1.7.16
|    |    |    |    +--- com.google.guava:guava:14.0.1 -> 18.0
|    |    |    |    +--- commons-configuration:commons-configuration:1.8 (*)
|    |    |    |    +--- commons-lang:commons-lang:2.6
+--- org.springframework.cloud:spring-cloud-starter-hystrix: -> 1.1.0.RELEASE
|    +--- org.springframework.cloud:spring-cloud-starter:1.1.0.RELEASE (*)
|    +--- org.springframework.cloud:spring-cloud-netflix-core:1.1.0.RELEASE (*)
|    +--- org.springframework.cloud:spring-cloud-starter-archaius:1.1.0.RELEASE (*)
|    +--- com.netflix.hystrix:hystrix-core:1.5.2 (*)
|    +--- com.netflix.hystrix:hystrix-metrics-event-stream:1.5.2
|    |    +--- com.netflix.hystrix:hystrix-core:1.5.2 (*)
|    |    \--- com.fasterxml.jackson.core:jackson-core:2.5.2 -> 2.6.5
|    \--- com.netflix.hystrix:hystrix-javanica:1.5.2
|         +--- com.netflix.hystrix:hystrix-core:1.5.2 (*)
|         +--- org.aspectj:aspectjweaver:1.8.6 -> 1.8.4
|         +--- com.google.guava:guava:15.0 -> 18.0
|         +--- commons-collections:commons-collections:3.2.2
|         +--- org.apache.commons:commons-lang3:3.1
it appears these 3 times in the default section
Spencer Gibb
@spencergibb
May 11 2016 17:38
so how are you missing NestableRuntimeException?
Jose Armesto
@fiunchinho
May 11 2016 17:39
I don’t know :/
to build, I execute ./gradlew clean build
and then execute java -jar build/libs/generated-jar-file
is that correct?
Spencer Gibb
@spencergibb
May 11 2016 17:43
yup, I run with java -jar build/libs/jdbc-1.0-SNAPSHOT.jar --spring.profiles.active=test because I don’t have your database
jar tvf build/libs/jdbc-1.0-SNAPSHOT.jar | grep commons-lang?
Jose Armesto
@fiunchinho
May 11 2016 17:44
oh
don’t use test, otherwise it won’t use the JDBC object
use qa profile
Spencer Gibb
@spencergibb
May 11 2016 17:45
% jar tvf build/libs/jdbc-1.0-SNAPSHOT.jar | grep commons-lang
315805 Wed Nov 09 23:00:26 MST 2011 lib/commons-lang3-3.1.jar
284220 Thu Jan 13 23:06:50 MST 2011 lib/commons-lang-2.6.jar
with qa I get No qualifying bean of type [com.scmspain.howtospring.jdbc.UserRepository]
Jose Armesto
@fiunchinho
May 11 2016 17:46
$ jar tvf build/libs/jdbc-1.0-SNAPSHOT.jar | grep commons-lang
315805 Wed Nov 09 23:00:26 CET 2011 lib/commons-lang3-3.1.jar
seems like I’m missing the 2.6
Spencer Gibb
@spencergibb
May 11 2016 17:46
that’s your problem.
Jose Armesto
@fiunchinho
May 11 2016 17:46
how come?
Spencer Gibb
@spencergibb
May 11 2016 17:46
I have no idea
Jose Armesto
@fiunchinho
May 11 2016 17:47
but shouldn’t this dependency be downloaded by some of my declared dependencies in my build.gradle?
Spencer Gibb
@spencergibb
May 11 2016 17:48
yes, mine is
your gradle wrapper is 2.5. It’s a little old.
Jose Armesto
@fiunchinho
May 11 2016 17:56
updating it and re-building..
seems like now it’s working
wtf?
Spencer Gibb
@spencergibb
May 11 2016 17:58
I wonder if you had a gradle cache problem. I bet if you went back to 2.5 and killed it’s cache it would work.
Jose Armesto
@fiunchinho
May 11 2016 17:58
$ jar tvf build/libs/jdbc-1.0-SNAPSHOT.jar | grep commons-lang            
315805 Wed Nov 09 23:00:26 CET 2011 lib/commons-lang3-3.1.jar
284220 Thu Jan 13 23:06:50 CET 2011 lib/commons-lang-2.6.jar
Spencer Gibb
@spencergibb
May 11 2016 17:58
by moving to a new gradle version, you had an empty cache.
Jose Armesto
@fiunchinho
May 11 2016 17:59
I see, next time I will start removing gradle’s cache first
thank you for your time
Spencer Gibb
@spencergibb
May 11 2016 18:12
NP
Spencer Gibb
@spencergibb
May 11 2016 18:23
@/all Spring Cloud Brixton has been released! https://twitter.com/SpringCloudOSS/status/730461980608225280
Matt Benson
@mbenson
May 11 2016 18:25
@spencergibb ulation
Spencer Gibb
@spencergibb
May 11 2016 18:25
:laughing:
Mark Corkery
@KramKroc
May 11 2016 18:55
:clap: awesome!
Marcos Barbero
@marcosbarbero
May 11 2016 18:58
Congratulations!
Johannes Edmeier
@joshiste
May 11 2016 19:27
wooohooo! congrats!
Niklas Herder
@herder
May 11 2016 20:42
🎆🎉🍾
Ignacio Ocampo
@nafiux
May 11 2016 23:43
Hello Team! I’ve problems with Zuul and AWS API Gateway (HTTPS/SSL) connection
I’m trying to test a simple route to an Lambda Endpoint, and I got: CloudFront attempted to establish a connection with the origin, but either the attempt failed or the origin closed the connection.