java.net.ConnectException: Connection refused

Terracotta | sppnew | 6 years ago
  1. 0

    ehcache 1.3 - cahce not initialized and listener is not working

    terracotta.org | 11 months ago
    java.net.ConnectException: Connection refused
  2. 0

    ehcache 1.3 - cahce not initialized and listener is not working

    Terracotta | 6 years ago | sppnew
    java.net.ConnectException: Connection refused
  3. 0

    When CAS sends the PGT back to a clustered client, that cluster must perform synchronous replication, as the client will retrieve the PGT from the storage within milliseconds. However, when one of the nodes (configured for manual peer discovery because multicast does not work at that site) goes down, Ehcache throws the following exception: SEVERE: Servlet.service() for servlet default threw exception net.sf.ehcache.distribution.RemoteCacheException: Error doing put to remote peer. Message was: Connection refused to host: AAA.BBB.CCC.DDD; nested exception is: java.net.ConnectException: Connection refused at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicatePutNotification(RMISynchronousCacheReplicator.java:136) at net.sf.ehcache.distribution.RMISynchronousCacheReplicator.notifyElementPut(RMISynchronousCacheReplicator.java:119) at net.sf.ehcache.event.RegisteredEventListeners.notifyElementPut(RegisteredEventListeners.java:102) at net.sf.ehcache.Cache.put(Cache.java:699) at net.sf.ehcache.Cache.put(Cache.java:632) at org.jasig.cas.client.proxy.EhcacheBackedProxyGrantingTicketStorageImpl.save(EhcacheBackedProxyGrantingTicketStorageImpl.java:34) at org.jasig.cas.client.util.CommonUtils.readAndRespondToProxyReceptorRequest(CommonUtils.java:184) at org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter.preFilter(Cas20ProxyReceivingTicketValidationFilter.java:160) at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:150) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) This exception propagates all the way to Tomcat (it's re-thrown in 3.1.12), which causes the application server to report HTTP result code 500. When CAS receives that code, it does not include the PGTIOU in the /serviceValidate response even though all the live client nodes have received the PGT. I think it should be OK for EhcacheBackedProxyGrantingTicketStorageImpl to catch the RemoteCacheException when replicating synchronously, log it, and NOT propagate it to allow CAS to operate normally. After all, one of the reasons to have a cluster is to be able to take down a node and continue operating the cluster.

    Apereo Issues | 6 years ago | Adam Rybicki
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    jbpm-console war deployment failed

    Google Groups | 3 weeks ago | Unknown author
    org.hibernate.exception.GenericJDBCException: Could not open connection
  6. 0

    jbpm-console war deployment failed

    Google Groups | 3 weeks ago | Unknown author
    javax.resource.ResourceException: IJ031084: Unable to create connection

    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 net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider.listRemoteCachePeers()
    2. Ehcache
      Cache.put
      1. net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider.listRemoteCachePeers(ManualRMICacheManagerPeerProvider.java:108)
      2. net.sf.ehcache.distribution.RMISynchronousCacheReplicator.listRemoteCachePeers(RMISynchronousCacheReplicator.java:313)
      3. net.sf.ehcache.distribution.RMISynchronousCacheReplicator.replicatePutNotification(RMISynchronousCacheReplicator.java:130)
      4. net.sf.ehcache.distribution.RMISynchronousCacheReplicator.notifyElementPut(RMISynchronousCacheReplicator.java:119)
      5. net.sf.ehcache.event.RegisteredEventListeners.notifyElementPut(RegisteredEventListeners.java:91)
      6. net.sf.ehcache.Cache.put(Cache.java:632)
      7. net.sf.ehcache.Cache.put(Cache.java:573)
      7 frames
    3. com.scb.cache
      ScbCacheManager.put
      1. com.scb.cache.ScbCacheManager.put(ScbCacheManager.java:133)
      1 frame
    4. com.sc.gis
      KeyValueServiceLocator.loadSsdpRuleDetails
      1. com.sc.gis.ssdp2.util.KeyValueServiceLocator.loadSsdpRuleDetails(KeyValueServiceLocator.java:53)
      1 frame