2 Replies Latest reply on Aug 15, 2002 2:01 PM by gsanil

    Connection reset by peer

    gsanil

      After jBoss is idle for a long time, when I try to shutdown, I am getting this error.

      14:04:11,340 INFO [STDOUT] 14 Aug 2002 14:04:11 - org.apache.slide.common.Names
      pace - INFO - Shutting down service rxHubJDBC(org.apache.slide.store.StandardSto
      re)
      14:04:11,340 INFO [STDOUT] 14 Aug 2002 14:04:11 - net.rxhub.webdav.slidestore.r
      eference.RxHubJDBCDescriptorsStore - INFO - Disconnecting
      14:06:20,358 ERROR [LocalTxConnectionManager$LocalConnectionEventListener] Resou
      rceException while closing connection handle!
      javax.resource.ResourceException: Could not cleanup: java.sql.SQLException: Io e
      xception: Connection reset by peer: JVM_recv in socket input stream read
      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.cleanup(
      LocalManagedConnection.java:198)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.unregiste
      rAssociation(BaseConnectionManager2.java:666)
      at org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalCo
      nnectionEventListener.connectionClosed(LocalTxConnectionManager.java:381)
      at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.closeHan
      dle(LocalManagedConnection.java:338)
      at org.jboss.resource.adapter.jdbc.local.LocalConnection.close(LocalConn
      ection.java:97)
      at net.rxhub.webdav.slidestore.reference.RxHubJDBCDescriptorsStore.disco
      nnect(Unknown Source)
      at org.apache.slide.store.AbstractStore.disconnect(AbstractStore.java:25
      1)
      at org.apache.slide.common.Namespace.disconnectServices(Namespace.java:5
      19)
      at org.apache.slide.common.NamespaceAccessTokenImpl.disconnect(Namespace
      AccessTokenImpl.java:345)
      at org.apache.slide.common.Domain.closeNamespace(Domain.java:302)
      at org.apache.slide.webdav.WebdavServlet.destroy(WebdavServlet.java:437)

      at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:
      1079)
      at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:12
      87)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
      :984)
      at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:877
      )
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:226)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:155)
      at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1151)
      at org.apache.catalina.core.StandardContext.stop(StandardContext.java:34
      51)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
      :984)
      at org.apache.catalina.core.StandardHost.remove(StandardHost.java:791)
      at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performUndeploy(Embe
      ddedCatalinaServiceSX.java:261)
      at org.jboss.web.AbstractWebContainer.stop(AbstractWebContainer.java:344
      )
      at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:370)
      at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:345)
      at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:293)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
      at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(S
      erverImpl.java:673)
      at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:6
      56)
      14:06:20,438 INFO [STDOUT] 14 Aug 2002 14:06:20 - net.rxhub.webdav.slidestore.r
      eference.RxHubJDBCContentStore - INFO - Disconnecting

        • 1. Re: Connection reset by peer
          davidjencks

          Maybe your idle timeout is set too long?

          It's really hard to produce correct error handling for a jdbc driver. With such a situation, obviously the connection is dead and should be destroyed... however there is no standard way to distinguish between these fatal errors and say a unique index violation that perhaps you are using for business logic.

          • 2. Re: Connection reset by peer
            gsanil

            Here is what I have set. Please let me know what is the ideal idletimeout for Oracle.

            5000
            15

            Thanks.