0 Replies Latest reply on Sep 6, 2005 12:02 PM by m m

    Ejb over HTTP and connection timed out

    m m Newbie

      Hello,
      i'm using ejbs over http in our application. Users connect to the server using a VPN, then access jboss on port 8080.
      Working fine for most of them, but some have the following errors:


      java.net.ConnectException: Connection timed out: connect
      -- Connection timed out: connectjava.net.ConnectException: Connection timed out: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
      Source)
      at org.jboss.invocation.http.interfaces.Util.invoke(Util.java:116)
      at
      org.jboss.invocation.http.interfaces.HttpInvokerProxy.invoke(HttpInvokerProxy.java:102)
      at
      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
      at
      org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
      at $Proxy2.putFile(Unknown Source)
      .... my classes here


      or


      java.net.SocketTimeoutException: Read timed out -- Read
      timed outjava.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
      at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:548)
      at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:486)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:652)
      at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:289)

      ...
      ...
      ...

      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
      at
      org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at
      org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
      at
      org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
      at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
      at java.lang.Thread.run(Thread.java:534)


      I found an attribute "connectionTimeout" in jboss-service.xml under jbossweb-tomcat41.sar, but application still works for me evn with a timeout of "1". I cannot make tests with users.

      Any help will be really apreciated,
      thanks