Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1521

Mail Client lose connection with James server(IMAP) after few hours.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0-beta4
    • Fix Version/s: 3.0.0
    • Component/s: IMAPServer
    • Labels:
      None

      Description

      When Mail client works with James server ,it works fine for few hours(4-5 hrs) after that it lose connection with James(IMAP Server).it doesn't allow any user to login. But when I restart the server everything works fine for next 4-5 hours. What could be the reason please suggest.

      I got the following exception:

      Exception:Unable to authenticate user: abc@xyz.com
      javax.mail.MessagingException: Read timed out;
      nested exception is:
      java.net.SocketTimeoutException: Read timed out
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665)
      at javax.mail.Service.connect(Service.java:295)
      at com.gsihealth.messages.server.InMemoryIMAPStoreCache.get(InMemoryIMAPStoreCache.java:135)
      at com.gsihealth.messages.server.InMemoryIMAPStoreCache.get(InMemoryIMAPStoreCache.java:91)
      at com.gsihealth.messages.server.handler.LoginUserHandler.execute(LoginUserHandler.java:123)
      at com.gsihealth.messages.server.handler.LoginUserHandler.execute(LoginUserHandler.java:55)
      at net.customware.gwt.dispatch.server.AbstractDispatch.doExecute(AbstractDispatch.java:81)
      at net.customware.gwt.dispatch.server.AbstractDispatch.execute(AbstractDispatch.java:68)
      at net.customware.gwt.dispatch.server.standard.AbstractStandardDispatchServlet.execute(AbstractStandardDispatchServlet.java:22)
      at com.gsihealth.messages.server.servlet.HupaDispatchServlet.execute(HupaDispatchServlet.java:54)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
      at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
      at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
      at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
      at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
      at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
      at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
      at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
      at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
      at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:150)
      at java.net.SocketInputStream.read(SocketInputStream.java:121)
      at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
      at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:95)
      at com.sun.mail.iap.Response.<init>(Response.java:95)
      at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:60)
      at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:134)
      at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:267)
      at com.sun.mail.iap.Protocol.<init>(Protocol.java:120)
      at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:110)
      at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:632)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chetank chetan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: