java.net.ConnectException: Connection refused}}] at org.springframework.beans.factory.support.ConstructorResolver.createA rgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.1.7.RELEASE.jar!/:4. 1.7.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowir eConstructor(ConstructorResolver.java:185) ~[spring-beans-4.1.7.RELEASE.jar!/:4. 1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) ~[spri ng-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) ~[sprin g-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans -4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4 .1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEA SE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe an(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEAS E] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory. preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1 .7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finish BeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context- 4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1. 7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.5.RELEASE.j ar!/:1.2.5.RELEASE]

GitHub | Samriddhi1 | 2 months ago
  1. 0

    GitHub comment 698#249355576

    GitHub | 2 months ago | Samriddhi1
    java.net.ConnectException: Connection refused}}] at org.springframework.beans.factory.support.ConstructorResolver.createA rgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.1.7.RELEASE.jar!/:4. 1.7.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowir eConstructor(ConstructorResolver.java:185) ~[spring-beans-4.1.7.RELEASE.jar!/:4. 1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) ~[spri ng-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) ~[sprin g-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans -4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4 .1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEA SE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe an(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEAS E] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory. preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1 .7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finish BeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context- 4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1. 7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.5.RELEASE.j ar!/:1.2.5.RELEASE]
  2. 0

    GitHub comment 698#249355576

    GitHub | 2 months ago | Samriddhi1
    java.net.ConnectException: Connection refused}}] at org.springframework.data.mongodb.core.MongoExceptionTranslator.transl ateExceptionIfPossible(MongoExceptionTranslator.java:75) ~[spring-data-mongodb-1 .8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.potentiallyConver tRuntimeException(MongoTemplate.java:2013) ~[spring-data-mongodb-1.8.0.RELEASE.j ar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.executeFindOneInt ernal(MongoTemplate.java:1843) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.doFindOne(MongoTe mplate.java:1656) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemp late.java:564) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery$ SingleEntityExecution.execute(AbstractMongoQuery.java:312) ~[spring-data-mongodb -1.8.0.RELEASE.jar!/:na] at org.springframework.data.mongodb.repository.query.AbstractMongoQuery. execute(AbstractMongoQuery.java:108) ~[spring-data-mongodb-1.8.0.RELEASE.jar!/:n a] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:454) ~[spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.data.repository.core.support.RepositoryFactorySup port$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:432) ~[ spring-data-commons-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.data.projection.DefaultMethodInvokingMethodInterc eptor.invoke(DefaultMethodInvokingMethodInterceptor.java:61) ~[spring-data-commo ns-1.11.0.RELEASE.jar!/:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok e(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RE LEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:179) ~[spring-aop-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE]
  3. 0

    Tomcat - User - how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

    nabble.com | 12 months ago
    java.net.ConnectException: Connection timed out > > (the whole stack trace is long, I'll post it at the end.) > > This error appeared over and over again for 2 hours and every MySQL > request failed.  After restarting Tomcat the app was able to connect > to > MySQL and functioned normally.  This is the first and only time I've > seen this happen. > > Assuming this was a brief network or MySQL outage (the sys admins > haven't said either way), I would expect the connection pool to > handle > the situation by destroying these dead connections and creating new > ones > automatically once database connectivity was restored.  That never > happened (until we restarted Tomcat.) > > So my thought was to turn up the logging on the connection pool and > try > to see what's going on.  I couldn't find any log output from the pool > in > my logs or in the Tomcat logs directory. > > My application uses Spring JDBC and Spring's @Transaction annotations > so > my code does not directly interact with the DataSource or the jdbc > Connections. > > I suspect a misconfiguration on my part but I need to know what is > actually failing before I can figure out what's wrong. > > Any advice greatly appreciated. > > Thanks, > Colin > > full stack trace: > 2012-03-16 18:25:18,248  ERROR [pool-3-thread-201] > c.l.c.s.e.EventServiceImpl failed to store event > [com.lim.cd.service.event.beans.SubscribeEvent@730c434d] > org.springframework.dao.RecoverableDataAccessException: > PreparedStatementCallback; SQL [insert into sessions (session_id, > username, uuid, created) values (?, ?, ?, ?)]; Communications link > failure > > The last packet sent successfully to the server was 0 milliseconds > ago. > The driver has not received any packets from the server.; nested > exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: > Communications link failure > > The last packet sent successfully to the server was 0 milliseconds > ago. > The driver has not received any packets from the server. at > org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:98) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:602) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:811) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:867) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:875) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] at > com.lim.cd.service.event.dao.MySqlEventDao.createSession(MySqlEventDao.java:201) > ~[MySqlEventDao.class:na] at > com.lim.cd.service.event.dao.MySqlEventDao.createOrUpdateSession(MySqlEventDao.java:191) > ~[MySqlEventDao.class:na]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wicket: Where to handle JDBC connection error

    Stack Overflow | 6 years ago | Ondra Žižka
    java.net.ConnectException: Connection refused at ... java.net stuff ... JDBC stuff ... Spring stuff ... DBCP and Pool stuff ... Hibernate stuff
  6. 0

    Kafka performance test failed

    apache.org | 1 year ago
    java.net.ConnectException: Connection refused] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.ConnectException

      Connection refused}}] at org.springframework.beans.factory.support.ConstructorResolver.createA rgumentArray(ConstructorResolver.java:749) ~[spring-beans-4.1.7.RELEASE.jar!/:4. 1.7.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowir eConstructor(ConstructorResolver.java:185) ~[spring-beans-4.1.7.RELEASE.jar!/:4. 1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1139) ~[spri ng-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042) ~[sprin g-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans -4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBean Factory.createBean(AbstractAutowireCapableBeanFactory.java:476) ~[spring-beans-4 .1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb ject(AbstractBeanFactory.java:303) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELE ASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr y.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.1.7.RELEA SE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe an(AbstractBeanFactory.java:299) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEAS E] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:194) ~[spring-beans-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory. preInstantiateSingletons(DefaultListableBeanFactory.java:755) ~[spring-beans-4.1 .7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finish BeanFactoryInitialization(AbstractApplicationContext.java:757) ~[spring-context- 4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:480) ~[spring-context-4.1.7.RELEASE.jar!/:4.1. 7.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.2.5.RELEASE.j ar!/:1.2.5.RELEASE]

      at org.springframework.boot.SpringApplication.refresh()
    2. Spring Boot
      SpringApplicationBuilder.run
      1. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
      2. org.springframework.boot.SpringApplication.run(SpringApplication.java:320)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
      3. org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)[spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
      3 frames
    3. com.capitalone.dashboard
      Application.main
      1. com.capitalone.dashboard.Application.main(Application.java:41)[api.jar!/:2.0.0-SNAPSHOT]
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_66]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_66]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_66]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_66]
      4 frames
    5. Spring Boot Loader
      MainMethodRunner.run
      1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)[api.jar!/:2.0.0-SNAPSHOT]
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_66]
      1 frame