Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2458

Google Mail Component - Import of message throws sometimes SocketTimeoutException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • Future
    • jboss-fuse-6.2
    • Camel
    • None
    • % %

    Description

      Import of message throws the following exception if the operation send was called before.

      ...
      Caused by: java.net.SocketTimeoutException: Read timed out
      	at java.net.SocketInputStream.socketRead0(Native Method)
      	at java.net.SocketInputStream.read(SocketInputStream.java:152)
      	at java.net.SocketInputStream.read(SocketInputStream.java:122)
      	at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
      	at sun.security.ssl.InputRecord.read(InputRecord.java:480)
      	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
      	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
      	at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
      	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
      	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
      	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
      	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323)
      	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
      	at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:36)
      ...
      

      If we try to sleep between these operations at least for 15 seconds (10 seconds is not enough) it works.

      Thread.sleep(15000);
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbasovni Martin Basovnik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: