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

17th
Mar 2016
Dreampie
@Dreampie
Mar 17 2016 03:05
2016-03-17 11:04:27.097 ERROR 36485 --- [  XNIO-2 task-3] io.undertow.request                      : UT005023: Exception handling request to /limits/1

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981) ~[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860) ~[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[javax.servlet-api-3.1.0.jar:3.1.0]
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845) ~[spring-webmvc-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[javax.servlet-api-3.1.0.jar:3.1.0]
    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextHeaderFilter.doFilterInternal(EndpointWebMvcAutoConfiguration.java:237) ~[spring-boot-actuator-1.3.2.RELEASE.jar:1.3.2.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at tv.acfun.cloud.common.filter.JsonReturnFilter.doFilterInternal(JsonReturnFilter.java:19) ~[service-common-1.0-SNAPSHOT.jar:na]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:111) ~[spring-boot-actuator-1.3.2.RELEASE.jar:1.3.2.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Final]
    at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103) ~[spring-boot-actuator-1.3.2.RELEASE.jar:1.3.2.RELEASE]
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) ~[undertow-servlet-1.3.14.Final.jar:1.3.14.Fina
somebody help,mongo repository use transaction error.
@dsyer
@EnableDiscoveryClient
@EnableMongoRepositories
@SpringBootApplication
@EnableHystrix
@EnableTransactionManagement
@EnableCaching
@ComponentScan
public class LimitServiceApplication {
  public static void main(String[] args) {
    SpringApplication.run(LimitServiceApplication.class, args);
  }
}
@RestController
@CacheConfig(cacheNames = LimitConstants.LIMITS_CACHE)
public class LimitController implements LimitService {
  @Transactional(readOnly = true)
  @Cacheable
  public LimitEntity findByIdV10(@PathVariable Long id) {
    LimitEntity result = limitRepository.findByIdAndDeletedAtNull(id);
    if (result.getExpiredAt() != null && result.getExpiredAt().before(new Date())) {
      result = null;
    }
    return result;
  }
}
@FeignClient(LimitConstants.LIMIT_SERVICE_ID)
public interface LimitService {
  @RequestMapping(value = LimitConstants.LIMITS_ID_PATH, method = 
RequestMethod.GET, headers = {ApiVersion.HEADER_API_VERSION_10})
  LimitEntity findByIdV10(@PathVariable("id") Long id);

}
      springDependencyManagementVersion = "0.5.4.RELEASE"
      springBootGradlePluginVersion = "1.3.2.RELEASE"
      springCloudStarterParentVersion = “Brixton.M5"
@spencergibb
Spencer Gibb
@spencergibb
Mar 17 2016 03:11
We don't do anything with mongo, might try the spring boot room
Dreampie
@Dreampie
Mar 17 2016 03:44
nobody help, 😓
Raj
@rajjaiswalsaumya
Mar 17 2016 03:47
Spring boot starter mongo in classpath ?
Springbootstarterweb and spring boot starter mongo should be in classpath
yes,
java
//dependencies

compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: "spring-boot-starter-tomcat"
}
compile("org.springframework.boot:spring-boot-starter-undertow")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
testCompile("org.springframework.boot:spring-boot-starter-test")
compile("org.springframework.boot:spring-boot-starter-redis")

compile("org.springframework.cloud:spring-cloud-starter-hystrix")
compile("org.springframework.cloud:spring-cloud-starter-config")
compile("org.springframework.cloud:spring-cloud-starter-eureka")
compile("org.springframework.cloud:spring-cloud-starter-feign")
compile("org.springframework.cloud:spring-cloud-starter-bus-amqp")
Raj
@rajjaiswalsaumya
Mar 17 2016 03:55
Strange, I created demo app a week before then everything was fine.
Force update yours dependencies. It looks good and should work.
Dreampie
@Dreampie
Mar 17 2016 04:04
but i use milestone
Raj
@rajjaiswalsaumya
Mar 17 2016 04:06
Share ur project pls can u ?
Dreampie
@Dreampie
Mar 17 2016 04:16
but i use compony nexus, you need to change
Dreampie
@Dreampie
Mar 17 2016 04:24
@rajjaiswalsaumya
Fairuz Wan Ismail
@wmfairuz
Mar 17 2016 04:24
@dwelch2344 @spencergibb ah only 2-3 seconds? Can I know which timeout you are talking about? I see we can have these timeouts:
zuul:
  routes:
    media: /media/**
  host:
    connect-timeout-millis: 600000
    socket-timeout-millis: 600000

ribbon:
  ReadTimeout: 600000
  ConnectTimout: 120000

hystrix:
  command:
    default:
      execution:
        isolation:
          strategy: THREAD
          thread:
            timeoutInMilliseconds: 600000
Marcos Barbero
@marcosbarbero
Mar 17 2016 15:37
Hi guys, Spring Cloud Config Server docs has a topic about serving plain text. Is there anything else to do to make it work? When I request my plain text file through configserver it gives to me http status 406 (Not Acceptable).
Spencer Gibb
@spencergibb
Mar 17 2016 16:01
@marcosbarbero only in Brixton
Marcos Barbero
@marcosbarbero
Mar 17 2016 16:02
Hi @spencergibb I’m using Brixton.M5
pradeepkusingh
@pradeepkusingh
Mar 17 2016 17:11
@spencergibb : seeing this error in my apigateway zuul ..
Thu Mar 17 11:08:15 MDT 2016 WARN [APP:null TRACKING_ID:null ACCOUNT_NUM:null] org.apache.catalina.loader.WebappClassLoaderBase - The web application [ROOT] appears to have started a thread named [expiringMap-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
I am trying to use Asynch mongo driver in my app..
This is a show stopper as this is shutting down apps and not allowing us to move forward.
pradeepkusingh
@pradeepkusingh
Mar 17 2016 17:20
my bad it is not stopping app. but causing lot of concern
pradeepkusingh
@pradeepkusingh
Mar 17 2016 21:06
now error disappear but when I am shutting down apps again error comes
Dave Syer
@dsyer
Mar 17 2016 21:55
You're using Tomcat as a standalone container?
pradeepkusingh
@pradeepkusingh
Mar 17 2016 21:56
yes.. jsut stand alone eclipse and running as spring boot app
using spring boot tomcat container
Dave Syer
@dsyer
Mar 17 2016 22:14
I don't understand why it's a concern then
There's a warning from tomcat about a possible memory leak, but the process is just about to die, so it can't affect anything
pradeepkusingh
@pradeepkusingh
Mar 17 2016 23:04
but there is no leak as far as I see.. only thing is I am using mongdb async call and jsut sending one request..and this is not consistent .