Details

      Description

      The following error occurs if a search or an exports takes a long time.
      It is getting me every day unhappy.
      Can please investigate this and fix it?

      • TimeOut occurred
        javax.naming.NamingException: TimeOut occurred
        at org.apache.directory.studio.connection.core.io.api.CursorStudioNamingEnumeration.hasMore(CursorStudioNamingEnumeration.java:247)
        at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:321)
        at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.run(SearchRunnable.java:192)
        at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      TimeOut occurred

        Issue Links

          Activity

          Hide
          seelmann Stefan Seelmann added a comment -

          Fixed in DIRAPI-190.

          Show
          seelmann Stefan Seelmann added a comment - Fixed in DIRAPI-190 .
          Hide
          elecharny Emmanuel Lecharny added a comment -

          Go ahead, Stefan.

          Show
          elecharny Emmanuel Lecharny added a comment - Go ahead, Stefan.
          Hide
          seelmann Stefan Seelmann added a comment - - edited

          A easy fix is to call LdapNetworkConnection.setTimeOut( 0L ) in Studio when opening the connection.

          In LdapNetworkConnection the "timeout" propertiy is initialized with 30 seconds. Then when a search request with no time limit (0) is started the "getTimeout(long clientTimeout)" method return the default value. I think the "getTimeout(long clientTimeout)" is not fully correct, see following matrix:

          connection timeout client timeout (search time limit) resulting timeout expected timeout
          -∞..-1 -∞..-1 Long.MAX_VALUE
          -∞..-1 0 Long.MAX_VALUE
          -∞..-1 1..∞ client timeout
          0 -∞..-1 Long.MAX_VALUE
          0 0 Long.MAX_VALUE
          0 1..∞ client timeout
          1..∞ -∞..-1 connection timeout (30) should be Long.MAX_VALUE
          1..∞ 0 connection timeout (30) should be Long.MAX_VALUE
          1..∞ 1..∞ min(connection timeout, client timeout) client timeout

          After thinking a bit longer, I wonder if client timeout (the search time limit specified in the search request) should always override the connection timeout?

          Any comments? Otherwise I'll try to change the method and add some tests.

          Show
          seelmann Stefan Seelmann added a comment - - edited A easy fix is to call LdapNetworkConnection.setTimeOut( 0L ) in Studio when opening the connection. In LdapNetworkConnection the "timeout" propertiy is initialized with 30 seconds. Then when a search request with no time limit (0) is started the "getTimeout(long clientTimeout)" method return the default value. I think the "getTimeout(long clientTimeout)" is not fully correct, see following matrix: connection timeout client timeout (search time limit) resulting timeout expected timeout -∞..-1 -∞..-1 Long.MAX_VALUE -∞..-1 0 Long.MAX_VALUE -∞..-1 1..∞ client timeout 0 -∞..-1 Long.MAX_VALUE 0 0 Long.MAX_VALUE 0 1..∞ client timeout 1..∞ -∞..-1 connection timeout (30) should be Long.MAX_VALUE 1..∞ 0 connection timeout (30) should be Long.MAX_VALUE 1..∞ 1..∞ min(connection timeout, client timeout) client timeout After thinking a bit longer, I wonder if client timeout (the search time limit specified in the search request) should always override the connection timeout? Any comments? Otherwise I'll try to change the method and add some tests.
          Hide
          riederer Martin Greck-Riederer added a comment -

          Ok. Thanks.
          So I guess that I will get along with this solution.
          I will do some more tests during the next days.

          Best regards,
          Martin

          Boehringer Ingelheim Pharma GmbH & Co. KG
          Dev. Infrastructure Services
          Tel.: +49 (7351) 54-97953
          Fax: +49 (7351) 54-2653
          martin.greck-riederer@boehringer-ingelheim.com

          Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260

          Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.

          Show
          riederer Martin Greck-Riederer added a comment - Ok. Thanks. So I guess that I will get along with this solution. I will do some more tests during the next days. Best regards, Martin Boehringer Ingelheim Pharma GmbH & Co. KG Dev. Infrastructure Services Tel.: +49 (7351) 54-97953 Fax: +49 (7351) 54-2653 martin.greck-riederer@boehringer-ingelheim.com Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260 Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.
          Hide
          elecharny Emmanuel Lecharny added a comment -

          No, it's totally transparent.

          We anticipated some issues with the new LDAP API, this is why we kept the JNDI provider, just in case.

          Show
          elecharny Emmanuel Lecharny added a comment - No, it's totally transparent. We anticipated some issues with the new LDAP API, this is why we kept the JNDI provider, just in case.
          Hide
          riederer Martin Greck-Riederer added a comment -

          Hi,

          changing the provider seems to help.
          Thanks.
          Does the change of the provider have another impact?

          Best regards,
          Martin

          Boehringer Ingelheim Pharma GmbH & Co. KG
          Dev. Infrastructure Services
          Tel.: +49 (7351) 54-97953
          Fax: +49 (7351) 54-2653
          martin.greck-riederer@boehringer-ingelheim.com

          Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260

          Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.

          Show
          riederer Martin Greck-Riederer added a comment - Hi, changing the provider seems to help. Thanks. Does the change of the provider have another impact? Best regards, Martin Boehringer Ingelheim Pharma GmbH & Co. KG Dev. Infrastructure Services Tel.: +49 (7351) 54-97953 Fax: +49 (7351) 54-2653 martin.greck-riederer@boehringer-ingelheim.com Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260 Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.
          Hide
          elecharny Emmanuel Lecharny added a comment -

          30 seconds sounds like a magic number...

          The connection has a 30 seconds timeout. What I don't understand is why it is triggered, as we are supposed to received data for more than 30 secondes.

          First, a workaround : in the preferences, Apache Directory Studio, connections, select the JNDI default network provider. That should solve your issue.

          Now, can you tell me how long it takes to get back all your data on both your computers ?

          The pb might be in the LDAP API...

          Show
          elecharny Emmanuel Lecharny added a comment - 30 seconds sounds like a magic number... The connection has a 30 seconds timeout. What I don't understand is why it is triggered, as we are supposed to received data for more than 30 secondes. First, a workaround : in the preferences, Apache Directory Studio, connections, select the JNDI default network provider. That should solve your issue. Now, can you tell me how long it takes to get back all your data on both your computers ? The pb might be in the LDAP API...
          Hide
          elecharny Emmanuel Lecharny added a comment -

          Reopenning the issue, wrongly closed it.

          Show
          elecharny Emmanuel Lecharny added a comment - Reopenning the issue, wrongly closed it.
          Hide
          riederer Martin Greck-Riederer added a comment -

          It is after 30 seconds.
          The maximum search time oft he search and the connection is 0 (unlimited)

          Best regards,
          Martin

          Boehringer Ingelheim Pharma GmbH & Co. KG
          Dev. Infrastructure Services
          Tel.: +49 (7351) 54-97953
          Fax: +49 (7351) 54-2653
          martin.greck-riederer@boehringer-ingelheim.com

          Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260

          Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.

          Show
          riederer Martin Greck-Riederer added a comment - It is after 30 seconds. The maximum search time oft he search and the connection is 0 (unlimited) Best regards, Martin Boehringer Ingelheim Pharma GmbH & Co. KG Dev. Infrastructure Services Tel.: +49 (7351) 54-97953 Fax: +49 (7351) 54-2653 martin.greck-riederer@boehringer-ingelheim.com Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260 Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.
          Hide
          elecharny Emmanuel Lecharny added a comment -

          Can you qualify "a long time" ? Are you talking about minutes ?

          In Studio, the connection is seen as closed by the remote peer, and this could occur for many different reasons, but in any case, Studio is not closing the connection itself, AFAICT.

          Show
          elecharny Emmanuel Lecharny added a comment - Can you qualify "a long time" ? Are you talking about minutes ? In Studio, the connection is seen as closed by the remote peer, and this could occur for many different reasons, but in any case, Studio is not closing the connection itself, AFAICT.
          Hide
          riederer Martin Greck-Riederer added a comment -

          Dear Emmanuel,

          thank you very much for your fast response.
          But I have running Apache Directory Studio 1.5.3.v20100330 on a Windows XP machine doing the same query against the same server without timeouts. So it can't be a problem of the server. What else could it be?

          Best regards,
          Martin

          Boehringer Ingelheim Pharma GmbH & Co. KG
          Dev. Infrastructure Services
          Tel.: +49 (7351) 54-97953
          Fax: +49 (7351) 54-2653
          martin.greck-riederer@boehringer-ingelheim.com

          Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260

          Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.

          Show
          riederer Martin Greck-Riederer added a comment - Dear Emmanuel, thank you very much for your fast response. But I have running Apache Directory Studio 1.5.3.v20100330 on a Windows XP machine doing the same query against the same server without timeouts. So it can't be a problem of the server. What else could it be? Best regards, Martin Boehringer Ingelheim Pharma GmbH & Co. KG Dev. Infrastructure Services Tel.: +49 (7351) 54-97953 Fax: +49 (7351) 54-2653 martin.greck-riederer@boehringer-ingelheim.com Boehringer Ingelheim Pharma GmbH & Co. KG, Sitz: Ingelheim am Rhein; Registergericht Mainz: HR A 22206; Komplementär Boehringer Ingelheim Deutschland GmbH; Geschäftsführung: Dr. Engelbert Günster (Vorsitzender), Ursula Fuggis-Hahn, Ralf Gorniak, Michael Klein, Dr. Martin Wanning; Vorsitzender des Aufsichtsrates: Dr. Joachim Hasenmaier; Sitz: Ingelheim am Rhein; Registergericht Mainz: HR B 23260 Diese E-Mail ist vertraulich zu behandeln. Sie kann besonderem rechtlichem Schutz unterliegen. Wenn Sie nicht der richtige Adressat sind, senden Sie bitte diese E-Mail an den Absender zurück, löschen die eingegangene E-Mail und geben den Inhalt der E-Mail nicht weiter. Jegliche unbefugte Bearbeitung, Nutzung, Vervielfältigung oder Verbreitung ist verboten. / This e-mail is confidential and may also be legally privileged. If you are not the intended recipient please reply to sender, delete the e-mail and do not disclose its contents to any person. Any unauthorized review, use, disclosure, copying or distribution is strictly prohibited.
          Hide
          elecharny Emmanuel Lecharny added a comment -

          This is not a Studio problem. Your server most certainly closed the connection because you have reached the configured time out.
          Check your server configuration for this parameter

          Show
          elecharny Emmanuel Lecharny added a comment - This is not a Studio problem. Your server most certainly closed the connection because you have reached the configured time out. Check your server configuration for this parameter

            People

            • Assignee:
              seelmann Stefan Seelmann
              Reporter:
              riederer Martin Greck-Riederer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development